Question: Write a C++ program named hwl_2_1ast_name. cpp that prompts the user to enter three numbers. Then, it calls a function named in_order () which takes

 Write a C++ program named hwl_2_1ast_name. cpp that prompts the user

Write a C++ program named hwl_2_1ast_name. cpp that prompts the user to enter three numbers. Then, it calls a function named in_order () which takes three arguments of type int. The function returns true if the three arguments are in ascending order. Otherwise, it returns false. Note, the function shouldn't contain any output statements. For example, in_order (1, 2, 3) would return true, but in_order (1, 3, 2) would return false. Back in the main, depending on whether the function returned a true or a false, you will print out a message letting the user know' the numbers were in order, or that they were not in order

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 Databases Questions!