Create a simple food delivery service software system that manages customer call
ID: 3664730 • Letter: C
Question
Create a simple food delivery service software system that manages customer call-in the orders for combo meals via a first/in-first/out method. Your program will allow a food delivery service employee (or user) to enter the key information about a customer's order to generate an order ticket. The program will include several attributes related to a given order. The system will be managed using a single queue in memory (this can be a global variable). The program must use the "queue APl in the C++standard template library (STL) and not the "dequeue" API. All of the attributes associated with each order will be stored as a single object within a single queue data structure. The program must implement at least one class that will hold the following variables: A string variable to hold an automatically generated order number in the form LLLLNNNN, where L is a character from A to Z and N is a number from 0 to 9. For example: EHLA2567 The orderfumber is an identifier that is unique for cach order and repeats are not allowed orderNumber- .comboDescriptionA string variable that provides a brief description or name descnibing the order. Spaces must be allowed. A string variable to hold the first name of the customer who placed the order. . firstName- lastName- A string variable to hold the customer's last name A string variable to hold the delivery address (street number and street address) of the order addres3 An integer variable that holds a 5-digit zip code. The program must re-prompt the user to re-enter the zip code if it is not a 5- digit number zipCode- milesFromRestaurant An integer variable that holds the number of miles from the restaurant to the delivery address. The program must not accept orders with a delivery address greater than 15 miles from the restaurant. Return to the main menu without accepting the order in this cas orderCost A double variable that holds the cost of the order Provide the appropriate accessor methods to set and get the data for each of these class variables. For example setComboDescription (atring comboDescription) and getcomboDeseription . In addition, the main program must provide the following functionality: 1. When the program is first started, it must read a data file called orders.dat. The program should not prompt the user for the name of the data file. If the file exists, the program will load the data for each order into the queue data structure. If the file does not exist, the program will start with an empty queue.Explanation / Answer
equal- mov(0, EAX); jmp ExitSequence; notequal- mov(1, EAX); jmp ExitSequence; ExitSequence- pop(BX); pop(AX); ret(); end allDiff; begin allDifferent;
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.