Create an application named order demo that declares and uses Order objects

profileValidated Tutorials
 (Not rated)
 (Not rated)
Chat

C# Create an application named order demo that declares and uses Order objects. The order class performs order processing of a single item that sells for 19.95 each. The class has four variable fields that hold an order number, customer name, quantity ordered, and total price. Include public get and set accessors for each field except total price field; that field is calculated as quantity ordered times unit price (19.95) whenever quantity is set, so it needs only a get accessor. Also create the following for the class: An Equals () method that determines two Orders are equal if they have the same order number, A GetHashCode () method that returns the order number, A ToString () method that returns a string containing all order information. The OrderDemo application declares a few Order objects and sets their values. Make sure to create at least two orders with the same order number. Display the string from the ToString() for each order. Write a method that compares two orders at a t

 

 

    • 11 years ago
    A+ Work
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      order_de22.zip