I just need the menu and header files the .exe parts i have completed. teacher d
ID: 3635688 • Letter: I
Question
I just need the menu and header files the .exe parts i have completed. teacher didn't go over header's, classes, and structures. the assignment is to create a menu driven program inside a function with switch with only two directives to call the functionmenu has 5 options to open the following programs: Inventory.exe, orders.exe, shipping.exe, returns.exe, and the last to close the program with yes or no classes must be in external headers and included in project
include one additional function in a separate header file the menu should open the .exe file allow you close it or run again and to return to the menu and choose another option. to exit the menu after choosing 5 it will ask for a confirmation.
be sure and validate your input
Explanation / Answer
if given time I can perfect it ... this will be the menu that you are concerned about ... along with the executable calls ... hope it helps.
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
void menu();
int main()
{
menu();
return 0;
}
void menu()
{
char ch;
cout << "[1] Open Inventory" << endl;
cout << "[2] Open Orders" << endl;
cout << "[3] Open Shipping" << endl;
cout << "[4] Open Returns" << endl;
cout << "[5] EXIT PROGRAM" << endl;
do
{
ch=getchar();
switch(ch)
{
case '1': system("inventory.exe"); break; //provided the program "inventory.exe" is in the same folder as this one AND the name is identical
case '2': system("orders.exe"); break;
case '3': system("shipping.exe"); break;
case '4': system("returns.exe"); break;
case '5': cout << "EXITING PROGRAM ..." << endl; exit(0);
}
}while(ch!=1 && ch!=2 && ch!=3 && ch!=4);
}