Programming Homework Help

American InterContinental University Boolean Variable Fund Raiser Program Worksheet

Get Your Custom Essay Written From Scratch
We have worked on a similar problem. If you need help click order now button and submit your assignment instructions.
Just from $13/Page
Order Now

You are responsible for tracking the progress of a junior-high fundraiser. You decide to write a program which will help you with the task.

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 help 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.
  • You should format your output to look like the following:
  • Please enter the grade of the contributor (6, 7, or 8)