In this exercise, you will create a program that displays both the smallest and largest of three

Question:

In this exercise, you will create a program that displays both the smallest and largest of three integers entered by the user. For example, if the user enters the numbers 3, 5, and 9, the program should display the messages “Smallest number is 3.” and “Largest number is 9.” on the computer screen.

a. Create an IPO chart for the problem, and then desk-check the algorithm four times. For the first desk-check, use the numbers 3, 5, and 9. For the second desk-check, use 7, 10, and 2. For the third desk-check, use 8, 4, and 6. For the fourth desk-check, use 1, 9, and 1.

b. List the input, processing, and output items, as well as the algorithm, in a chart similar to the one shown earlier in Figure 6-27. Then code the algorithm into a program.

c. Desk-check the program using the same data used to desk-check the algorithm.

d. If necessary, create a new project named Intermediate16 Project, and save it in the Cpp8\Chap06 folder. Enter your C++ instructions into a source file named Intermediate16.cpp. Also enter appropriate comments and any additional instructions required by the compiler.

e. Save and run the program. Test the program using the same data used to desk-check the program.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: