Answer:
Following are the program in the C++ Programming Language.
#include <iostream>
using namespace std;
//define function for swapping
void SwapValues(int* userVal1,int* userVal2){
//set integer variable to store the value
int z = *userVal1;
//interchange their value
*userVal1 = *userVal2;
//interchange their value
*userVal2 = z;
}
//define main method
int main()
{
//declare variables
int x,y;
//get input from the user
cin>>x>>y;
//Call the method to swap the values
SwapValues(&x,&y);
//print their values
cout<<x<<" "<<y;
return 0;
}
<u>Output</u>:
3 8
8 3
Explanation:
<u>Following are the description of the program</u>.
- Firstly, we define required header file and function 'SwapValues()', pass two pointer type integer variables in argument that is 'userVal1' and 'userVal2'.
- Set integer data type variable 'z' and initialize the value of 'userVal1' in it, then initialize the value of 'userVal2' in 'userVal1' and then initialize the value of 'z' in 'userVal2'.
- Finally, define the main method in which we set two integer type variables and get input from the user in it then, call and pass those variables and print it.
Answer:
D
Explanation:
The answer is D because if you're looking for lightweight materials, you'll be dealing with chemistry, and chemistry is sience.
Answer:
The correct answer to the following question will be "Application program".
Explanation:
- Applications include database programs, word processors, browsers, development tools, picture editors, and platforms for communication.
- It use the OS (Operating System) of the computer and many other assisting programs, frequently system software, to work.
- An application program is a detailed, body-contained program that directly works a given function for just the user.
There are some examples of application programs such as:
- Includes various bundled software.
- Addresses an organization's data management and application requirements, covering all divisions.
- It allows users can create and manage information.
- Used primarily to get content access without editing.