[solved]-Utilize Following Code Place Problems Execute Problems Try Sample Case Process Looks Like Q39024698
Utilize the following code to place your problems then executeall problems at once.
Try a sample case.
The process looks like
1) Show the Menu
2) Type which problem
3) Input
4) Output
5) Repeat 1) until the input for 2) is <1 or >6
//System Libraries
#include <iostream>
#include <iomanip>
using namespace std;
//User Libraries
//Global Constants Only!
//Function Prototypes
void Menu();
int getN();
void def(int);
void problem1();
void problem2();
void problem3();
void problem4();
void problem5();
void problem6();
//Execution Begins Here!
int main(int argc, char** argv) {
//Set a Random number seed here.
//Declare Main variables here.
int inN;
//Loop on each problem
do{
Menu();
inN=getN();
switch(inN){
case 1: problem1();break;
case 2: problem2();break;
case 3: problem3();break;
case 4: problem4();break;
case 5: problem5();break;
case 6: problem6();break;
default: def(inN);
}
}while(inN<7);
//Exit Stage Right Here!
return 0;
}
void Menu(){
cout<<endl;
cout<<“Type 1 to execute Problem 1″<<endl;
cout<<“Type 2 to execute Problem 2″<<endl;
cout<<“Type 3 to execute Problem 3″<<endl;
cout<<“Type 4 to execute Problem 4″<<endl;
cout<<“Type 5 to execute Problem 5″<<endl;
cout<<“Type 6 to execute Problem 6″<<endl;
cout<<“Type anything else toexit.”<<endl<<endl;
}
int getN(){
int inN;
cin>>inN;
return inN;
}
void def(int inN){
cout<<endl<<“Typing “<<inN<<” exits theprogram.”<<endl;
}
void problem1(){
}
void problem2(){
}
void problem3(){
}
void problem4(){
}
void problem5(){
}
void problem6(){
}
Expert Answer
Answer to Utilize the following code to place your problems then execute all problems at once. Try a sample case. The process look… . . .
OR

