Question: Microsoft Visual C#: An Introduction to Object-Oriented Programming, 7th Edition. 2017 Chapter 10, page 478 4. a. Create an application for Ninas Cookie Emporium named

Microsoft Visual C#: An Introduction to Object-Oriented Programming, 7th Edition. 2017 Chapter 10, page 478

4. a. Create an application for Ninas Cookie Emporium named CookieDemo that declares and demonstrates objects of the CookieOrder class and its descendants. The CookieOrder class includes auto-implemented properties for an order number, recipients name, and cookie type (for example, chocolate chip), and fields for number of dozens ordered and price. When the field value for number of dozens ordered is set, the price field is set as $15 per dozen for the first two dozen and $13 per dozen for each dozen over two. b. Create a child class named SpecialCookieOrder, which includes a field with a description as to why the order is special (for example, gluten-free). Override the method that sets a CookieOrders price as described in part a, but also to include special handling, which is $10 for orders up to $40 and $8 for higher-priced orders. Create an application named CookieDemo2 that demonstrates using several SpecialCookieOrder objects.

Both should look exactly like the screenshots.

Microsoft Visual C#: An Introduction to Object-Oriented Programming, 7th Edition. 2017 Chapter

10, page 478 4. a. Create an application for Ninas Cookie Emporium

CAWINDOWS1system321cmd.exe Order Number: 12345 for Fred Meyer Chocolate Chip How many dozen: 2 Total Price: $30.00 Order Number: 23456 for Albertsons Peanut Butter How many dozen: 5 Total Price: $69.00 Order Number: 34567 for Winco Oatmeal How many dozen: 1 Total Price: $15.00 Press any key to continue

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!