Question: Please make available for copy Problem 2 of 2: Write a CH program which will ask the user to input three integer numbers and then
Problem 2 of 2: Write a CH program which will ask the user to input three integer numbers and then output which number is the largest, which is the second largest and which is the smallest. We will not worry about any ties where two numbers are the same. Make sure your code works for any three input numbers, not just the test cases. Your code will be tested on other test cases not listed here. Please properly comment your code before submission. For this part of the assignment, name your source file at Ordered_WSUID.cpp. For example, if your user ID is A999B999 name your file as Ordered_A9991999.cpp. CS211 Homework - 1 Sample Test cases: Test case 1: Test case 2: Enter the first number:15 Enter the first number: 91 Enter the second number: 9 Enter the second number: 44 Enter the third number: 21 Enter the third number: 19 The largest number is 21 The largest number is 91 The next largest number is 15 The next largest number is 44 The smallest number of 9 The smallest number of 19 Test case 3: Test case 4: Enter the first number:9 Enter the first number:-37 Enter the second number: 73 Enter the second number: -77 Enter the third number: 72 Enter the third number: 5 The largest number is 73 The next largest number is 72 The smallest number of 9 The largest number is 5 The next largest number is -37 The smallest number of 27
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
