Solved by verified expert:Please check the attach file for more details.
homework_5_c__.doc
Unformatted Attachment Preview
Use Word to process your homework. Directly copy the source code and paste into the Word
file. Screenshot of running result must be presented.
1. Grading system
—
—
—
—
—
90 and above, display “A”
80 to 89, display “B”
70 to 79, display “C”
60 to 69, display “D”
59 and below, display “F”
2. Write a program using while(cin>>x) to get several integer numbers, calculate the
average and display the result on the screen.
3. Write a program using while (cin>>x) to get several float numbers, calculate the
average and display the result on the screen. Use setprecision to display two digits
after decimal point. (Hint: std::cout << std::fixed;)
...
Purchase answer to see full
attachment