Question: In C++ Write a program that asks the user to enter the number of pancakes eaten for breakfast by 10 different people (Person 1, Person
In C++ Write a program that asks the user to enter the number of pancakes eaten for
breakfast by 10 different people (Person 1, Person 2, ..., Person 10). Once the data
has been entered the program must analyze the data and output which person ate
the most pancakes for breakfast, the least number of pancakes for breakfast,
and outputs a list in order of number of pancakes eaten of all 10 people (from
greatest to smallest).
i.e.
Person 4: ate 10 pancakes
Person 3: ate 7 pancakes
Person 8: ate 4 pancakes
...
Person 5: ate 0 pancakes
1. Be sure the the user only enters no more than 10
Pancakes and no less than 1 pancake.
2. Do not accept any negative numbers.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
