Question: Create the following classes in the class library with following attributes: 1. Customer a. id number - customer's id number b. namethe name of the

 Create the following classes in the class library with following attributes:
1. Customer a. id number - customer's id number b. namethe name
of the customer c. address - address of the customer (use structs)
d. telephone number - 10-digit phone number e. orders - collection of

Create the following classes in the class library with following attributes: 1. Customer a. id number - customer's id number b. namethe name of the customer c. address - address of the customer (use structs) d. telephone number - 10-digit phone number e. orders - collection of orders 2. Order a. order id - order identification number b. customer - customer that made order c. order time - date the order is made d. delivery time - date when the order is delivered e. delivery address - address where order is to be delivered (use structs) f. cost - cost of the order g. order type - Possible values are: PhoneOrder, RestaurantOrder h. items - collection (array) of the order items in the order. 3. OrderItem a. Menu item - menu item that is in the order w 4. MenuItem a. name-name of the menu item b. description - description of the menu item c. base cost - cost of the item without any extras Implement all 4 classes and provide the following: 1. [10 points] Appropriate fields 2. [10 points] Appropriate properties for the fields making sure the integrity and consistency of the created objects 3. [20 points] 2 appropriate constructors in addition to the default constructor) 4. [10 points) ToString() that returns a string with the information contained within the fields of an instance 5. [5 points] An id number for customer must be unique 6. [5 points] An order number for order must be unique 7. [30 points] Add following methods for the classes: a. Customer i. CreateOrder - creates new order for the customer. Make sure the corresponding properties are updated accordingly b. Order i. AddOrderItem - adds the menu item to the order. Make sure that the object state is correct (Hint: cost). ii. Deliver - updates the delivery time with current time iii. Delivered - (property) that is true if the order is delivered. 8. You can add any additional methods that may be needed. 9. [10 points] In the main() method, test that all class members work correctly. User ivate Wi input is not needed - use the literal constants. Make sure you use bbject initializer.o to Settings Use C# Console App (.NET Framework) C#

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!