Question: 1. Write a program that reads three different (i.e., ask to the user to enter) numbers, and prints the greatest. 2. Write a program

1. Write a program that reads three different (i.e., ask to the  

1. Write a program that reads three different (i.e., ask to the user to enter) numbers, and prints the greatest. 2. Write a program that reads three numbers and decides if they correspond to the sides of a right triangle (hint. Pythaagorean theorem). 3. Write an appropriate control structure that will examine the value of a floating-point variable called temp and print one of the following messages, depending on the value assigned to temp. (a) ICE, if the value of temp is less than 0. (b) WATER, if the value of temp lies between 0 and 100. (c) STEAM, if the value of temp exceeds 100. Can a switch statement be used in this instance?

Step by Step Solution

3.40 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

QUESTION 1 num1 floatinputEnter the first number num2 floatinputEnter the second number num3 floatin... View full answer

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!