I am NOT asking for someone to do my program for me, but I need help being point
ID: 3651083 • Letter: I
Question
I am NOT asking for someone to do my program for me, but I need help being pointed in the right direction....This is my exact assignment.
This program is to give the user the option of converting a set of temperatures either from Celsius to Fahrenheit (C to F) or vice versa, from Fahrenheit to Celsius (F to C), or to quit the program. If the user selects either C to F or F to C, the program will prompt the user to enter three integer values, a starting temperature, an ending temperature, and an increment. After these values have been entered the program will display a table of equivalent C and F (or F and C) temperatures, from the starting temperature to the ending temperature and incrementing by the increment value each row.
The table must meet all of the following criteria:
Explanation / Answer
displayMenu(): this part is simple you need to only write some print statements means u need to print Following are the choices: C to F (enter c or C to use) F to C (enter f or F to use) quit (enter q or Q to use) getMenuSelection(): let user enter a option then check if input is correct or not use while loop until user enter correct input then use switch loop to check what user is entered if user entered c or C first call getStartEndAndIncrement() and then displayTable() if user entered f or F first call getStartEndAndIncrement() and displayTable() if user entered q or Q, simplyexit getStartEndandIncrement: this part is simple . you need to get the inputs CtoF(): simple conversion useformula FtoC(): simple displayTable(): for each value call corresponding CtoF() or FtoC() and display as given in the question in the main program prompt after displaying table to user to enter this means pause the program then again show the table so use a loop until user does not quit
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.