Question: JAVA PLEASE!!!!!!!!!! Summary Doughnuts have to be made. It's big business, it needs software. Create software to track all the bakeries that report to HQ,
JAVA PLEASE!!!!!!!!!!
Summary Doughnuts have to be made. It's big business, it needs software. Create software to track all the bakeries that report to HQ, and the doughnuts they bake.
Objective Write an object-oriented program that incorporates many of the things we learned this term. Abstract Class Doughnut. Three classes will inherit this class: Cruller, Eclaire, and Plain. Class Eclaire: Name: Eclaire Price per hundred: 20 Class Cruller: Name: Cruller Price per hundred: 12
Class Plain Name: Plain Price per hundred: 6 Abstract Class Doughnut Get/set count (in hundreds) Getters to get all required data. Class Bakery Array of type Doughnut. Name Address Class HQ Array of type Bakery Class LabExam Main method Functionality: Prompts for number of bakeries, launches HQ class. HQ will populate each Bakery, prompting for o bakery name, o address When this is complete, HQ will prepare a report: o Bakery Name o Bakery Address o How many batches, Each batch has a name, a quantity, and a batch cost. Bakery will query for o How many batches were made o What type each batch was (cruller, eclaire, etc.) o How many hundreds were in each batch. Ensure your name is at the top and bottom of the output. Review the sample run below.
Sample Run Your program output should look something like this: Bakery Tracker by Daniel Cormier How many factories are there? 2 What is the name of factory #1? Premiere Factory What is the address of that factory? 1234 amazingplace How many batches were ordered? 2 Type? 1 for Cruller, 2 for Eclaire, other for plain: 1 How many hundreds were ordered? 20 Type? 1 for Cruller, 2 for Eclaire, other for plain: 2 How many hundreds were ordered? 10 What is the name of factory #2? Factorius Secondus What is the address of that factory? 222 otherplace How many batches were ordered? 3 Type? 1 for Cruller, 2 for Eclaire, other for plain: 3 How many hundreds were ordered? 10 Type? 1 for Cruller, 2 for Eclaire, other for plain: 3 How many hundreds were ordered? 20 Type? 1 for Cruller, 2 for Eclaire, other for plain: 1 How many hundreds were ordered? 5 Final report: Bakery Premiere Factory located at 1234 amazingplace produced Batch #1 Cruller, 12 hundreds ordered, costing 240 Batch #2 Eclaire, 20 hundreds ordered, costing 200 Bakery Factorius Secondus located at 222 otherplace produced Batch #1 Plain, 6 hundreds ordered, costing 60 Batch #2 Plain, 6 hundreds ordered, costing 120 Batch #3 Cruller, 12 hundreds ordered, costing 60 Bakery Tracker by
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
