Java using Control Structures (for, while, do while)

Registration date
Tuesday June 6, 2017
Last seen
June 25, 2017
- Jun 25, 2017 at 03:55 AM
Can you help me to do this using Java Programming with JCreator

1. Write a program that will input a value of temperature in degree Celsius and convert the temperature in degree Fahrenheit and degree Kelvin.
Formula: Fahrenheit = (9/5) * Celsius + 32
Kelvin = Celsius + 273

In addition, input also a value of temperature in Degree Fahrenheit and output its equivalent in Degree Celsius.
Formula: Celsius = 5/9 * (Fahrenheit – 32)

2. Write a program that prompts the user to input three (3) numbers. The program should then output the numbers in ascending order & descending order.
Sample Run:
Enter three numbers: 4 6 3
Ascending Order: 3 4 6
Descending Order: 6 4 3

3. Write a program that prompts the user to input an integer between 0 to 35. 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, for numbers >= 10).
Sample Run:
Enter a number: 7
Enter a number: 33

4. The cost of an international call from Philippines to Vietnam is calculated as follows: Connection Fee, $1.50; $2.00 for first three minutes; and $0.50 for each additional minute. Write a program that prompts the user to enter the number of minutes the call lasted and outputs the amount due. Convert also the amount due in dollar to the currency of Vietnam (Dong)
Conversion Factor: $1.00 = 19,000.00 Dong

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.

Thank you.

Maria Eva Lou Prado