SlideShare a Scribd company logo
Define a function named SwapValues that takes four integers as parameters and swaps the first
with the second, and the third with the fourth values. Then write a main program that reads four
integers from input, calls function SwapValues() to swap the values, and prints the swapped
values on a single line separated with spaces. Ex: If the input is: 3 8 2 4 function SwapValues()
returns and the main program outputs: 8 3 42 The program must define and call a function: void
SwapValues(int& userval1, int& userval2, int& userval3, int& userval4) Function
SwapValues() swaps the values referenced by the parameters.

More Related Content

More from Jake3sTAveryn

Define the terms from the Types of Evidence lecture- Provide an exampl.pdf
Define the terms from the Types of Evidence lecture- Provide an exampl.pdfDefine the terms from the Types of Evidence lecture- Provide an exampl.pdf
Define the terms from the Types of Evidence lecture- Provide an exampl.pdf
Jake3sTAveryn
 
Definition Derby- Explain the meaning of the following ethics traps-.pdf
Definition Derby-  Explain the meaning of the following ethics traps-.pdfDefinition Derby-  Explain the meaning of the following ethics traps-.pdf
Definition Derby- Explain the meaning of the following ethics traps-.pdf
Jake3sTAveryn
 
Draw a proper circuit diagram on multisim and share screenshot Q1-.pdf
Draw a proper circuit diagram on multisim and share screenshot     Q1-.pdfDraw a proper circuit diagram on multisim and share screenshot     Q1-.pdf
Draw a proper circuit diagram on multisim and share screenshot Q1-.pdf
Jake3sTAveryn
 
draw a pikachu in java package arreyreview- import java-awt--- import.pdf
draw a pikachu in java package arreyreview- import java-awt--- import.pdfdraw a pikachu in java package arreyreview- import java-awt--- import.pdf
draw a pikachu in java package arreyreview- import java-awt--- import.pdf
Jake3sTAveryn
 
Draw a context diagram and a diagram 0 DFD that represents the informa.pdf
Draw a context diagram and a diagram 0 DFD that represents the informa.pdfDraw a context diagram and a diagram 0 DFD that represents the informa.pdf
Draw a context diagram and a diagram 0 DFD that represents the informa.pdf
Jake3sTAveryn
 
Drag the steps to the correct locations in the way gas exchange occurs.pdf
Drag the steps to the correct locations in the way gas exchange occurs.pdfDrag the steps to the correct locations in the way gas exchange occurs.pdf
Drag the steps to the correct locations in the way gas exchange occurs.pdf
Jake3sTAveryn
 
Draw (and label) a section of a cell MEMBRANE (NOT a whole cell- JUST.pdf
Draw (and label) a section of a cell MEMBRANE (NOT a whole cell- JUST.pdfDraw (and label) a section of a cell MEMBRANE (NOT a whole cell- JUST.pdf
Draw (and label) a section of a cell MEMBRANE (NOT a whole cell- JUST.pdf
Jake3sTAveryn
 
Draft a factual scenario demonstrating each of the following legal or.pdf
Draft a factual scenario demonstrating each of the following legal or.pdfDraft a factual scenario demonstrating each of the following legal or.pdf
Draft a factual scenario demonstrating each of the following legal or.pdf
Jake3sTAveryn
 
Dr- Martin suggests that not only do invasive species have unique trai.pdf
Dr- Martin suggests that not only do invasive species have unique trai.pdfDr- Martin suggests that not only do invasive species have unique trai.pdf
Dr- Martin suggests that not only do invasive species have unique trai.pdf
Jake3sTAveryn
 
Draw a context diagram and a diagram 0 DFD that represents the informa (1).pdf
Draw a context diagram and a diagram 0 DFD that represents the informa (1).pdfDraw a context diagram and a diagram 0 DFD that represents the informa (1).pdf
Draw a context diagram and a diagram 0 DFD that represents the informa (1).pdf
Jake3sTAveryn
 
Dr- Solomon and her team's research in Antarctica lead to what major o.pdf
Dr- Solomon and her team's research in Antarctica lead to what major o.pdfDr- Solomon and her team's research in Antarctica lead to what major o.pdf
Dr- Solomon and her team's research in Antarctica lead to what major o.pdf
Jake3sTAveryn
 
Dr- Stedman does not like to call RNA -single-stranded- for which of t.pdf
Dr- Stedman does not like to call RNA -single-stranded- for which of t.pdfDr- Stedman does not like to call RNA -single-stranded- for which of t.pdf
Dr- Stedman does not like to call RNA -single-stranded- for which of t.pdf
Jake3sTAveryn
 
Domestic labor undertaken through care activities can be placed within.pdf
Domestic labor undertaken through care activities can be placed within.pdfDomestic labor undertaken through care activities can be placed within.pdf
Domestic labor undertaken through care activities can be placed within.pdf
Jake3sTAveryn
 
Do you think the US should adopt IFRS- Why or why not- (I realize you.pdf
Do you think the US should adopt IFRS- Why or why not- (I realize you.pdfDo you think the US should adopt IFRS- Why or why not- (I realize you.pdf
Do you think the US should adopt IFRS- Why or why not- (I realize you.pdf
Jake3sTAveryn
 
Do you believe violence and-or corruption in policing are a problem in.pdf
Do you believe violence and-or corruption in policing are a problem in.pdfDo you believe violence and-or corruption in policing are a problem in.pdf
Do you believe violence and-or corruption in policing are a problem in.pdf
Jake3sTAveryn
 
Do you think we are keeping up with the ethical aspect of IT and the n.pdf
Do you think we are keeping up with the ethical aspect of IT and the n.pdfDo you think we are keeping up with the ethical aspect of IT and the n.pdf
Do you think we are keeping up with the ethical aspect of IT and the n.pdf
Jake3sTAveryn
 
djustment- and let Y denote the number of defective tires- (b) Compute.pdf
djustment- and let Y denote the number of defective tires- (b) Compute.pdfdjustment- and let Y denote the number of defective tires- (b) Compute.pdf
djustment- and let Y denote the number of defective tires- (b) Compute.pdf
Jake3sTAveryn
 
Discussion Prompt- Balanced Score Card suggests that we view organizat.pdf
Discussion Prompt- Balanced Score Card suggests that we view organizat.pdfDiscussion Prompt- Balanced Score Card suggests that we view organizat.pdf
Discussion Prompt- Balanced Score Card suggests that we view organizat.pdf
Jake3sTAveryn
 
Do human missions to Moon make sense- Note that even if we had not l.pdf
Do human missions to Moon make sense-   Note that even if we had not l.pdfDo human missions to Moon make sense-   Note that even if we had not l.pdf
Do human missions to Moon make sense- Note that even if we had not l.pdf
Jake3sTAveryn
 
Discussion Part 3 for Week 5- Part 3 begins with a very powerful sta.pdf
Discussion Part 3 for Week 5-   Part 3 begins with a very powerful sta.pdfDiscussion Part 3 for Week 5-   Part 3 begins with a very powerful sta.pdf
Discussion Part 3 for Week 5- Part 3 begins with a very powerful sta.pdf
Jake3sTAveryn
 

More from Jake3sTAveryn (20)

Define the terms from the Types of Evidence lecture- Provide an exampl.pdf
Define the terms from the Types of Evidence lecture- Provide an exampl.pdfDefine the terms from the Types of Evidence lecture- Provide an exampl.pdf
Define the terms from the Types of Evidence lecture- Provide an exampl.pdf
 
Definition Derby- Explain the meaning of the following ethics traps-.pdf
Definition Derby-  Explain the meaning of the following ethics traps-.pdfDefinition Derby-  Explain the meaning of the following ethics traps-.pdf
Definition Derby- Explain the meaning of the following ethics traps-.pdf
 
Draw a proper circuit diagram on multisim and share screenshot Q1-.pdf
Draw a proper circuit diagram on multisim and share screenshot     Q1-.pdfDraw a proper circuit diagram on multisim and share screenshot     Q1-.pdf
Draw a proper circuit diagram on multisim and share screenshot Q1-.pdf
 
draw a pikachu in java package arreyreview- import java-awt--- import.pdf
draw a pikachu in java package arreyreview- import java-awt--- import.pdfdraw a pikachu in java package arreyreview- import java-awt--- import.pdf
draw a pikachu in java package arreyreview- import java-awt--- import.pdf
 
Draw a context diagram and a diagram 0 DFD that represents the informa.pdf
Draw a context diagram and a diagram 0 DFD that represents the informa.pdfDraw a context diagram and a diagram 0 DFD that represents the informa.pdf
Draw a context diagram and a diagram 0 DFD that represents the informa.pdf
 
Drag the steps to the correct locations in the way gas exchange occurs.pdf
Drag the steps to the correct locations in the way gas exchange occurs.pdfDrag the steps to the correct locations in the way gas exchange occurs.pdf
Drag the steps to the correct locations in the way gas exchange occurs.pdf
 
Draw (and label) a section of a cell MEMBRANE (NOT a whole cell- JUST.pdf
Draw (and label) a section of a cell MEMBRANE (NOT a whole cell- JUST.pdfDraw (and label) a section of a cell MEMBRANE (NOT a whole cell- JUST.pdf
Draw (and label) a section of a cell MEMBRANE (NOT a whole cell- JUST.pdf
 
Draft a factual scenario demonstrating each of the following legal or.pdf
Draft a factual scenario demonstrating each of the following legal or.pdfDraft a factual scenario demonstrating each of the following legal or.pdf
Draft a factual scenario demonstrating each of the following legal or.pdf
 
Dr- Martin suggests that not only do invasive species have unique trai.pdf
Dr- Martin suggests that not only do invasive species have unique trai.pdfDr- Martin suggests that not only do invasive species have unique trai.pdf
Dr- Martin suggests that not only do invasive species have unique trai.pdf
 
Draw a context diagram and a diagram 0 DFD that represents the informa (1).pdf
Draw a context diagram and a diagram 0 DFD that represents the informa (1).pdfDraw a context diagram and a diagram 0 DFD that represents the informa (1).pdf
Draw a context diagram and a diagram 0 DFD that represents the informa (1).pdf
 
Dr- Solomon and her team's research in Antarctica lead to what major o.pdf
Dr- Solomon and her team's research in Antarctica lead to what major o.pdfDr- Solomon and her team's research in Antarctica lead to what major o.pdf
Dr- Solomon and her team's research in Antarctica lead to what major o.pdf
 
Dr- Stedman does not like to call RNA -single-stranded- for which of t.pdf
Dr- Stedman does not like to call RNA -single-stranded- for which of t.pdfDr- Stedman does not like to call RNA -single-stranded- for which of t.pdf
Dr- Stedman does not like to call RNA -single-stranded- for which of t.pdf
 
Domestic labor undertaken through care activities can be placed within.pdf
Domestic labor undertaken through care activities can be placed within.pdfDomestic labor undertaken through care activities can be placed within.pdf
Domestic labor undertaken through care activities can be placed within.pdf
 
Do you think the US should adopt IFRS- Why or why not- (I realize you.pdf
Do you think the US should adopt IFRS- Why or why not- (I realize you.pdfDo you think the US should adopt IFRS- Why or why not- (I realize you.pdf
Do you think the US should adopt IFRS- Why or why not- (I realize you.pdf
 
Do you believe violence and-or corruption in policing are a problem in.pdf
Do you believe violence and-or corruption in policing are a problem in.pdfDo you believe violence and-or corruption in policing are a problem in.pdf
Do you believe violence and-or corruption in policing are a problem in.pdf
 
Do you think we are keeping up with the ethical aspect of IT and the n.pdf
Do you think we are keeping up with the ethical aspect of IT and the n.pdfDo you think we are keeping up with the ethical aspect of IT and the n.pdf
Do you think we are keeping up with the ethical aspect of IT and the n.pdf
 
djustment- and let Y denote the number of defective tires- (b) Compute.pdf
djustment- and let Y denote the number of defective tires- (b) Compute.pdfdjustment- and let Y denote the number of defective tires- (b) Compute.pdf
djustment- and let Y denote the number of defective tires- (b) Compute.pdf
 
Discussion Prompt- Balanced Score Card suggests that we view organizat.pdf
Discussion Prompt- Balanced Score Card suggests that we view organizat.pdfDiscussion Prompt- Balanced Score Card suggests that we view organizat.pdf
Discussion Prompt- Balanced Score Card suggests that we view organizat.pdf
 
Do human missions to Moon make sense- Note that even if we had not l.pdf
Do human missions to Moon make sense-   Note that even if we had not l.pdfDo human missions to Moon make sense-   Note that even if we had not l.pdf
Do human missions to Moon make sense- Note that even if we had not l.pdf
 
Discussion Part 3 for Week 5- Part 3 begins with a very powerful sta.pdf
Discussion Part 3 for Week 5-   Part 3 begins with a very powerful sta.pdfDiscussion Part 3 for Week 5-   Part 3 begins with a very powerful sta.pdf
Discussion Part 3 for Week 5- Part 3 begins with a very powerful sta.pdf
 

Recently uploaded

The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 

Recently uploaded (20)

The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 

Define a function named SwapValues that takes four integers as paramet.pdf

  • 1. Define a function named SwapValues that takes four integers as parameters and swaps the first with the second, and the third with the fourth values. Then write a main program that reads four integers from input, calls function SwapValues() to swap the values, and prints the swapped values on a single line separated with spaces. Ex: If the input is: 3 8 2 4 function SwapValues() returns and the main program outputs: 8 3 42 The program must define and call a function: void SwapValues(int& userval1, int& userval2, int& userval3, int& userval4) Function SwapValues() swaps the values referenced by the parameters.