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 points
We want to implement a Builder design pattern with director not a Fluent Builder for a "FastFoodOrder".
The "FastFoodOrder" class has the following String attributes not a list separate fields:
main, drink, side, dessert.
We need 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:
Give the UML class diagram.
Include only the pattern classes, do not add client. Autogenerated UML by IDE is not accepted. points
Provide the implementation code of the designed UML class diagram in Java.
Using the implemented Builder pattern, write the client code Clientjava to create representations of "FastFoodOrder" object created by each concrete builder and display the values of the attributes of the objects. points
HINT: You must have classes java files
How to submit:
For part 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 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
