subject

Create a console program where you will implement variables that are needed for this program and will implement the code entirely within main. prompt the user for contributions. it should first ask for the contributor's grade. then it should ask how much the student is contributing. these prompts should be placed inside of a loop so that the program will continue to ask for contributions until a value of 999 is entered for the contributor's grade. once that value is entered, the program should calculate the average value of the contributions. display the results, with a congratulatory message for the class which collected the largest amount. use a boolean variable to control the while loop. use a switch statement to get the input into the proper variables. place the switch statement within the while loop and use the boolean variable to control the loop and set its value to false when the sentinel value (999) is detected. when calculating the averages you will need a selection statement for each grade contribution to either compute the individual grade contribution average or to set it to zero if there were no contributions for that grade.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
What is the worst-case complexity of the maxrepeats function? assume that the longest string in the names array is at most 25 characters wide (i.e., string comparison can be treated as o( class namecounter { private: int* counts; int nc; string* names; int nn; public: namecounter (int ncounts, int nnames); int maxrepeats() const; }; int namecounter: : maxrepeats () { int maxcount = 0; for (int i = 0; i < nc; ++i) { int count = 1; for (int j = i+1; j < nc; ++j) { if (names[i] == names[j]) ++count; } maxcount = max(count, maxcount); } return maxcount; }
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Best laptops for college [$100-$500 range]?
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
The option enables you to modify a slide element in most presentation applications.
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
If i wanted to include a built-in calendar in a document, what option could i select? draw table insert table insert chart quick tables
Answers: 1
You know the right answer?
Create a console program where you will implement variables that are needed for this program and wil...
Questions
question
Chemistry, 19.05.2020 02:09
question
Biology, 19.05.2020 02:09
question
Mathematics, 19.05.2020 02:09
question
Mathematics, 19.05.2020 02:09
Questions on the website: 13722359