Question: Coding Questions Question 2 0 ( 4 0 points ) We want to implement a Builder design pattern with director ( not a Fluent Builder

Coding Questions
Question 20(40 points)
We want to implement a Builder design pattern with director (not a Fluent Builder) for a "FastFoodOrder".
The "FastFoodOrder" class has the following 4 String attributes (not a list - separate fields):
main, drink, side, dessert.
We need 3 concrete builders to build the "FastFoodOrder" object as follows:
"KidsMealBuilder" class assigns the following values to the attributes of the "FastFoodOrder" object:
main = "Chicken Burger"
drink = "Apple Juice"
side = "Chicken Nuggets"
dessert = "Ice Cream"
"AdultMealBuilder" class assigns the following values to the attributes of the "FastFoodOrder" object:
main = "Double Cheeseburger"
drink = "Coke XLarge"
side = "Onion Rings"
dessert ="Chocolate Cookie"
"DietMealBuilder" class assigns the following values to the attributes of the "FastFoodOrder" object:
main = "House Salad"
drink = "Coke Zero"
side = "Broccoli"
dessert = "Yogurt"
------------------------------------
>> What to Submit:
------------------------------------
1. Give the UML class diagram.
Include only the pattern classes, do not add client. Auto-generated UML by IDE is not accepted. (10 points)
2. Provide the implementation code of the designed UML class diagram in Java.
Using the implemented Builder pattern, write the client code (Client.java) to create 3 representations of "FastFoodOrder" object (created by each concrete builder) and display the values of the attributes of the objects. (30 points)
HINT: You must have 7 classes (.java files)
------------------------------------
>> How to submit:
------------------------------------
For part 1, UML diagram, use "insert image" from the text box, to add your diagram. Submit an image (.jpeg, .png,...). Make sure that you create the UML diagram using a UML tool. Any diagram submitted as paper screenshot or created by an image editor (ex. Paint, Photoshop,...) will not be accepted.
For Part 2, Code Implementation, compress only all .java files as a .zip or .rar file and use "Add file" button below the text box to submit. Make sure you implement the client too, as requested and your code executes without any error.

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!