Question
6. Addison High School is holding a fundraiser. The freshmen, sophomores, juniors, and seniors hold a competition to see which class contributes the most money.
6. Addison High School is holding a fundraiser. The freshmen, sophomores, juniors, and seniors hold a competition to see which class contributes the most money. Write a pro- gram that allows you to enter two numbers for each contribution as it comes inthe class of the contributor (1, 2, 3, or 4), and the amount contributed in dollars. For exam- ple, perhaps a junior contributes $20. The user would enter a 3 and a 20. The program continues to accept data until the user types 999 for the contributors class. At that point, data entry is completed, so display the four class totals as well as the number of the class (1, 2, 3, or 4) that contributed the most. Name the file FundRaiser2.cpp
Any coding assignments will have to be submitted in .cpp format and a Word document with the code copy/pasted and screenshots of the output.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started