using C++ language by visual studio if you can. A restaurant wants an app that c
ID: 3802118 • Letter: U
Question
using C++ language by visual studio if you can.
A restaurant wants an app that calculates a table's bill. The app should display all the menu items in four ComboBoxes. Each ComboBox should contain a category of food offered by the restaurant (Beverage, Appetizer, Main Course and Dessert). The user can choose from one of these ComboBoxes to add an item to a table's bill. As each item is selected in the ComboBoxes, add the price of that item to the bill. The user can click the Clear Bill Button to restore the Subtotals. Tax: and Total: fields to dollar0.00.Explanation / Answer
/* #include #include #include #include #include #include #include #include /*************************************************************************** CLASS NAME : menu DETAILS : IT CONTROLLS OVER ALL THE FUNCTIONS ***************************************************************************/ class menu { public : void main_menu(void); private : void box(void); void edit_menu(void); }; /*************************************************************************** CLASS NAME : food DETAILS : IT CONTROLLS OVER ALL THE FUNCTIONS RELATED TO FOOD ITEMS ***************************************************************************/ class food { public : void add_item(void); void delete_item(void); void modify_item(void); void list_of_item(void); void purchase(void); private : int last_code(void); void delete_record(int); void modify_record(int); void display_record(int); int item_found(int); int recordno(int); void sort(void); int itemcode; char itemname[30]; float costprice, sellingprice; }; /*************************************************************************** CLASS NAME : account DETAILS : IT CONTROLLS OVER ALL THE FUNCTIONS RELATED TO MAKING BILL ***************************************************************************/ class account { public : void bill_list(void); void prepare_bill(int); int last_billno(void); void add_bill(int, int t_itemcode, char *t_itemname, float t_qty, float t_cost, float t_price); private : int code, billno, length; int dd, mm, yy; float cost, price, quantity; char name[30]; }; /*************************************************************************** THIS FUNCTION DRAW BOX FOR THE MENUS ***************************************************************************/ void menu :: box(void) { char c1=178, c2=177, c3=176; int k=1; gotoxy(1,2); for (int i=1; iRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.