Question: CSC 143 Weekly Exercise: Satisfying Slurps For this assignment, imagine you have been hired to create a program to manage drink orders at a local

 CSC 143 Weekly Exercise: Satisfying Slurps For this assignment, imagine youhave been hired to create a program to manage drink orders ata local coffee shop. The coffee shop is known for changing theirmenu frequently, and people come to the shop in anticipation of getting

CSC 143 Weekly Exercise: Satisfying Slurps For this assignment, imagine you have been hired to create a program to manage drink orders at a local coffee shop. The coffee shop is known for changing their menu frequently, and people come to the shop in anticipation of getting unusual, but delicious, drinks. Since the drinks change so frequently, your program will need to have the flexibility to handle this. Accordingly, you decide to create classes that can be used to price drinks based on their common features, rather than creating a static look-up table of prices To demonstrate how your program will work to the coffee shop owner and employees, you want to design and demo a prototype of your idea. To do this, you must implement a Drinksjava Class and associated subclasses that will be utilized by a Coffeeshopjava Class (the driver, or client, class) to calculate the cost of an order of drinks. The output will be displayed in a java console. This assignment is intended to give you practice using inheritance. The Drinks Class will contain fields for the base priceloz. and the drink size (small 6 oz., medium 12 oz., large 16 oz.). In essence, this covers the minimal costs (labor, cup, etc.). It will include also methods to print the drink information and to change the base drink prices (ideally all the prices should be changed simultaneously) A number of subclasses will extend the Drinks class. You are being asked to implement a CaffeinatedDrinksjava Class and a NonCaffeinatedDrinksjava. Both of these classes extend the Drinks class. In addition, you are being asked to implement a Teajava class and a Coffeejava class that extends the CaffeinatedDrinks class

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!