The program should show the customer the different items on the menu, and also allow the customer to select more than one item and also calculate and print the bill.
there is going to be three functions im going to call getData which will load data into the array menuList, showMenu which will show the different items on the menu and tell the customer how to select them, and printCheck which will calculate and print the check
this is the menu:
Plain Egg $1.45
Bacon and Egg $2.45
Muffin $0.99
French Toast $1.99
Fruit Basket $2.49
Cereal $0.69
Coffee $0.50
Tea $0.75
how do i use the getData function to load the data into the array menuList and what do i pass the function
#include <fstream>
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
struct menuItemType
{
string menuItem[20];
double menuPrice[5];
int listLength;
};
void showMenu();
void getData();
void printCheck();
int main()
{
cout << "Harry's Breakfast" << endl;
cout << endl;
cout << endl;
system("PAUSE");
return 0;
}
void showMenu()
{
}
void getData()
{
}
void printCheck()
{
}