Problem

Addison High School is holding a fundraiser. The freshmen, sophomores, juniors, and senior...

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 program that allows you to enter two numbers for each contribution as it comes in—the class of the contributor (1, 2, 3, or 4), and the amount contributed in dollars. For example, 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 contributor’s 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.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT