Question: I C++ ..write a program IF , ELSE IF , andELSE statements thats will sort three numbers in thedescending order (largest to smallest) . Ask

I C++ ..write a program IF , ELSE IF , andELSE statements thats will sort three numbers in thedescending order (largest to smallest) . Ask the user to input thethree numbers , then ultimately outtput the same three numbers inthe correct order 2, modify this program to sort letters ,instead of numbers and display them in alphabetical order IWROTE THIS FOR NUMBERS HOW DO I GO ABOUT THAT OF LETTERS""""urce.cpp ConsoleApplication75 #include using namespace std; int main() { double num1, num2,

urce.cpp ConsoleApplication75 #include using namespace std; int main() { double num1, num2, num3; (Global Scope) cout < < "enter the three non digits number accordigly and press enter after each "; cin >> num1 >> num2 >> num3; if (num1 > num2 && num1 > num3 && num2 > num3) { 00% cout < < num1 < num2 && num1 > num3 && num3 > num2) { cout < < num1 < < endl < < num3 < num1 && num2 > num3 && num3 > num1) { cout < < num2 < < endl < < num3 < num1 && num2 > num3 && num1 > num3) { cout < < num2 < < endl < < num1 < num1 && num3 > num2 && num1 > num2) { cout < < num3 < < endl < < num1 < < endl < < endl < < num2; } else if (num3 > num1 && num3 > num2 && num2 > num1) { cout < < num3 < < endl; cout < < num2 < < endl; cout < < num1 < < endl; } else if (num1 == num2 == num3) { cout < < "all your number are the same vaule please try again" } } main()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!