Build an application that represents a simple system that can be used by an online food delivery company to manage its c
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Build an application that represents a simple system that can be used by an online food delivery company to manage its c
company to manage its customers information. This application should provide a suitable user interface that allows a user to select and perform the following 51x (6) operations: 1. Customer Registration: Add a new customer, The uses must enter the data tor each oustomer which are: customer name, customer id (must be 6 digits and unique for each customer), home address, email address and lastly, the number of times the customer has ordered food with the company (this must be set to zero (0) for a newly registered customer) 2. Restaurant Registration: Add a new restaurant (food vendor). The user must enter the data for each restaurant which are; restaurant name and name of foods sold (e.g., nasi lemak, mee goreng chicken chop), For simplicity, the user can only input three food names for each restaurant. 3. Add Custamer Order: Add a new order from a customer. The data that must be entered for each order is the customer id fid of the customer that make the order), the restaurant's name, food ordered, date ordered and the amount paid (in RM). The system will ask for the customer's id first before the user can enter the remaining order's data. If the customer's id does not exist (i.e., customer hasn't been registered yet with operation no. 1], the system will display an appropriate error message and terminate this operation. Note; 1) For restaurant names, the system will display only the registered restaurants (from performing operation no, 2 above) and the user can only select one of these restaurants. ii) For foods, the system will display only the foods that have been specified for the selected restaurant in (i) and the user can only select one of these foods. iii) For date ordered, the system can either obtain from the computer's current date or from the user input. iv) For the amount paid in AM, the user can enter any amount bisger than 0.0. v) The data for number of times the customer had ordered must be incremented by one 4. 5earch Customer: Find a particular customer based on his/her id and if found, display his/her name, email address and all the past orders information (restaurants' names, foods ordered and date ordered] of the customer. Lastly, display the average amount paid for all of the past orders of this customer. If the customer has never made any order before, just display his/her name and email address. If the customer id is not found, display an appropriate message, 5. List Customers: List all customers that have made at least one order [those with zero number of times ordered will not be listed). For each customer, display the name, email address and the number of times he/she has ordered. 6. Exit: Terminate and exit from the system.
Build an application that represents a simple system that can be used by an online food delivery