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, 23.06.2019 09:30
Given a link with a maximum transmission rate of 32.8 mbps. only two computers, x and y, wish to transmit starting at time t = 0 seconds. computer x sends filex (4 mib) and computer y sends filey (244 kib), both starting at time t = 0. statistical multiplexing is used, with details as follows packet payload size = 1000 bytes packet header size = 24 bytes (overhead) ignore processing and queueing delays assume partial packets (packets consisting of less than 1000 bytes of data) are padded so that they are the same size as full packets. assume continuous alternating-packet transmission. computer x gets the transmission medium first. at what time (t = ? ) would filey finish transmitting? give answer in milliseconds, without units, and round to one decimal places (e.g. for an answer of 0.013777 seconds you would enter "13.8" without the quotes)
Answers: 3
question
Computers and Technology, 23.06.2019 16:00
An english teacher would like to divide 8 boys and 10 girls into groups, each with the same combination of boys and girls and nobody left out. what is the greatest number of groups that can be formed?
Answers: 2
question
Computers and Technology, 24.06.2019 15:00
Who introduced the concept of combining artificial and natural light in the studio
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
If you want to delete an entire word at a time, which key should you press along with the backspace or delete key?
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
English, 13.11.2020 01:50
question
Mathematics, 13.11.2020 01:50
question
Chemistry, 13.11.2020 01:50
question
Mathematics, 13.11.2020 01:50
question
Advanced Placement (AP), 13.11.2020 01:50
question
History, 13.11.2020 01:50
Questions on the website: 13722361