Question: (order_fruits.cpp) Write an algorithm and C++ program that prompts the user to enter three fruits and displays them in descending order. Here is a sample

(order_fruits.cpp) Write an algorithm and C++ program that prompts the user to enter three fruits and displays them in descending order. Here is a sample run: Enter the first fruit: Peach Enter the second fruit: Pear Enter the third fruit: Star Fruit The three fruits in alphabetical descending order are Star Fruit, Pear, Peach Hint: Transform the input names to capitalize the first letter of each string, and then compare them. If the words have more than 1 word, only the first letter of the first word needs to be capitalized. It will be a bit tricky to capitalize each word of the string (may need a for loop)
Step by Step Solution
There are 3 Steps involved in it
media pointerfileservicefile2B6AJ4j4ZU726Ud7WUfm1G Question orderfruitscpp Wri... View full answer
Get step-by-step solutions from verified subject matter experts
