This program is for a class and I am having trouble even starting it the question is....
Create a complete C++ program that prompts the user for 5 salary values. Your program should find and print the total of these 5 salaries, and the average of these 5 salaries.
Break your project down into smaller steps and solve each one before moving on to the subsequent step.
Here, you could say the steps are:
- Gather user input
- Calculate and print the total of those salary values (which you collected in step
1): Research arithmetic operators
- Get the average of these 5 salaries (how would you calculate an average in regular math? Same here!)
Let me know if you need any more help,
Joe
Concord Spark Tutor
sparkprogrammer@gmail.com
So I have created this or "found" this but i was told by instructer to use-
(cout << fixed << showpoint;) (cout << setprecision(2);) (ofstream myOutFile;)
(myOutFile.open("lab3output.txt");)