Question: Please help CSC 161 -Lab 5 (5 programs) (if-else/if-else if) (4 pts. each) (Use Scanner for all problems except #4 use dialog boxes) 1. Wri
CSC 161 -Lab 5 (5 programs) (if-else/if-else if) (4 pts. each) (Use Scanner for all problems except #4 use dialog boxes) 1. Wri (-127. whether the number is positive, negative, or zero. te a program that prompts the user to input a double type number The program should then output the number and a message saying 2. Writ e a program that prompts the user to input 3 double type numbers (25.0,50.0, 170). The program should then output the numbers in ascending order. and 3. Write a program that prompts the user to input a number between O 35. (Have the user input 10). If the number is less than or equal to 9, the program should output the number: otherwise, it should output A for 10, B for 11, C for 12,.., and Z for 35. (Hint: Use the cast operator, (char), for numbers > 10,) 4 The cost of an international call from New York to New Delhi is minutes; and $0.45 for each additional minute. Write a program that user enter 37 minutes) and outputs the amount due. Format your output with calculated as follows: connection fee, $1.99: $2.00 for the first three prompts the user to enter the number of minutes the call lasted. (Have the two decimal places 5. In a right triangle, the square of the length of one side is equal to the sum of the squares of the lengths of the other two sides. Write a program that prompts the user to enter the lengths of three sides of a triangle and then outputs a message indicating whether the triangle is a right triangle. (-Have the user enter the (Have the user enter the lengths 3,4, and 5) 3,4,and5)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
