Question: Please use simple C++ language as my class is just starting strings and has not done much with them yet. (order_fruits.cpp) Write an algorithm and
Please use simple C++ language as my class is just starting strings and has not done much with them yet.
(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
Get step-by-step solutions from verified subject matter experts
