The auxiliary port I think
Answer:
Following are the program in C++ language :
#include <iostream> // header file
using namespace std; // using namespace
int main() // main method
{
int amount,total=0; // two int variable declaration
cout<<" enter amount:";
cin>>amount; // read input amount first time
total=total+amount; // first calculation
cout<<" enter amount:";
cin>>amount; //read input amount second time
total=total+amount;// second calculation
cout<<" enter amount:";
cin>>amount;// read input amount third time
total=total+amount;// third calculation
cout<<"total:"<<total; // display total
return 0;
}
Output:
enter amount:12
enter amount:12
enter amount:12
total:36
Explanation:
Following are the explanation of program which is mention above
- Declared the two variable total and amount of int type .
- Initialize the variable total to "0".
- Read the 3 input in "amount" variable in one by one by using cin function and adding their value to the "total "variable .
- Finally display the total.
Answer: Flyer
Explanation: A flyer is a type of advertisement that is used to give out information about a certain product, event, or business. This can help communicate with potential customers.
Answer:
input.open("rawdata");
input>>datum;
input.close();
Explanation:
ifstream objects maintain a filebuf object as their internal stream buffer, and perform operations like input/output on the available associated files.
In above statements.
input.open("rawdata");
- The associated file named rawdata is opened.
input>>datum;
- The integer from the file is read into already declared variable datum.
input.close();