Question: in c + + / * * * repeats getting the user's choice and taking the appropriate action until the user chooses 4 for exit

in c++/**
* repeats getting the user's choice and taking the appropriate action until the user chooses 4 for exit
*/
void mainMenu(){
/** You may assume you have a working getMenuChoice(n), addOneHour(), addOneMinute(), and addOneSecond().
* The test will hit 1
2
2
3
3
3
4
, and expect the adding functions to be called the right number of times.
* getMenuChoice(4) will handle the input and return 1,2,3, or 4.
* Feel free to change things around in your program, but for now get this to work with these function signatures.
*/
// TODO: Your Code here
// nothing to return, just call the appropriate methods

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!