Question
ECLIPSE PROGRAM Write a program that preforms the following conversions: -feet to meters -meters to feet -Celsius to Fahrenheit -Fahrenheit to Celsius Include in your
ECLIPSE PROGRAM
Write a program that preforms the following conversions:
-feet to meters
-meters to feet
-Celsius to Fahrenheit
-Fahrenheit to Celsius
Include in your code the following methods:
main() : loops through:
? ask the user for their choice (call menu)
? switch on their choice and call the appropriate method to do the conversion.
until they choose to quit
menu() : a method that displays a menu with the above conversions, and also a quit option. Then gets a response from the user, being sure that their choice is one of the options, and if a char is either lower or upper case. It returns their choice.
4 conversion methods, one for each of the conversions above. Each of these will have their own local variables, and do their own input using the method getDouble() created in week 12.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started