Question: In Assignment A02, you developed four programs to perform various calculations. In this assignment you will package these four activities into a single, menu-driven program.


In Assignment A02, you developed four programs to perform various calculations. In this assignment you will package these four activities into a single, menu-driven program. You have a lot of freedom over the user experience (menu style, output formatting, etc.), so make the program as attractive to the user as you can. To recap the program's functionality, you must enable the user to be able to do the following activities: - compute the midpoint between two points, - convert hours, minutes, and seconds to total number of seconds, a convert total number of seconds to hours, minutes and seconds, and - compute total calories consumed and miles required to run to burn off those calories after consuming a quantity of burritos, salads, and milkshakes. Please refer to https://www.cs.southern.edu/halterman/Courses/Winter2023/124/Labs/lab02 W23.html for details about these activities. The code for each of these activities must appear in a separate method; thus, your program must implement the four activities in four separate methods. Your main method should present a menu to the user. The menu options should consist of the four different activities listed above. Your main method then would invoke the service of one methods when the user chooses to engage in that activity. You may layout your menu as you wish. One approach looks like the following: 1. Midpoint calculation 2. Convert hours, minutes, and seconds to total seconds 3. Convert total seconds to hours, minutes, and seconds 4. Compute calories 5. Quit Please enter the number of your choice: Here the user enters an integer value for the choice. Another approach is more linear: M) idpoint calculation F) rom seconds T)o seconds C) alories Q) uit: Here the user enters the character (M, F, T, C, or Q) of their choice. The program should continue to run until the user chooses from the menu to quit. Unless you have a good reason not to do so, place all of your code in a single Java source file. 2. Check out Your finished code will be evaluated for correctness and compliance. When approved, you should submit your Java source file to http://eclass.e.southern.edu. Be sure your name is included in comments in the first line of your source file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
