Question: Write a Kotlin program that solve the problem below: The Temperature Converter The program should request the user to enter his / her name then

Write a Kotlin program that solve the problem below:
The Temperature Converter
The program should request the user to enter his/her name then repeatedly ask to select one of
the choices below:
Choice 1: Convert Celsius to Fahrenheit using the formula:
F=C95+32
Choice 2: Convert Fahrenheit to Celsius using the formula:
C=(F-32)59
Choice 3: Exit the Program
The program should read the user input and then display the result or an error message as
appropriate, a sample run should appear on the screen like the text below:
Please enter your name:
Albert
Welcome Albert to the Temperature Converter Application
Please type 1 for Celsius to Fahrenheit conversion.
Type 2 for Fahrenheit to Celsius conversion.
or type 3 to exit the program
2
Please enter your temperature in Fahrenheit
86
Computing...
The temperature in Celsius is 30
Please type 1 for Celsius to Fahrenheit conversion.
Type 2 for Fahrenheit to Celsius conversion.
or type 3 to exit the program
5
That is not an option.
Please type 1 for Fahrenheit to Celsius conversion
Type 2 for Celsius to Fahrenheit conversion.
or type 3 to exit the program
1
Please enter your temperature in Celsius
20
Computing...
The temperature in Fahrenheit is 68
 Write a Kotlin program that solve the problem below: The Temperature

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!