Question: java 01) Write a program that prompts the user to input three numbers. The program should then print the maximum number. Using (if condition). (10%)
01) Write a program that prompts the user to input three numbers. The program should then print the maximum number. Using (if condition). (10%) run: Please insert three numbers: 30 233 56 The maximum number is: 233 BUILD SUCCESSFUL (total time: 12 seconds) 02) Write a program that converts currency in Saudi Riyals (SR) to either American Dollars (S), British Pounds (E) or European Euros (), as following: (30%) I SR 0.266 S ISR 0.22 I SR -0.25 a. Prompt the user to input: 1. The amount of money in Riyals, can be decimal 2. A letter that can be d for Dollar p for Pound or te for Euro b. Write a switch statement according to the inserted letter di convert the amount of money to dollars 2p convert the money to Pounds 3 e convert the money to Euros 4. Otherwise set the amount of money to o C Print out the amount of money in the selected currency examples of running Program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
