Question: Please answer the following questions asap You are to create a software design that simulates a fast food restaurant. You will have food items (hamburgers,

 Please answer the following questions asap You are to create aPlease answer the following questions asap

You are to create a software design that simulates a fast food restaurant. You will have food items (hamburgers, hot dogs, chicken sandwiches) and drink items (Coke, Sprite, root beer). The drinks come in various sizes given in ounces (for example: 12, 24, 48). Food items will be assigned a price when they are created but this price can be changed by the employee taking the items will be assigned according to the size of the drink. Which of the following would be the best choice for the design of this system? Why? a. The design should include the following classes: Hamburger, HotDog, Chicken, Coke, Sprite, and RootBeer. b. The design should include the following classes: FoodItem with Hamburger, HotDog, and Chicken extending FoodItem and DtrinkItem with Coke, Sprite, and RootBeer extending DrinkItem. c. The design should include the following classes: Item with FoodItem and DrinkItem extending Item: Hamburger, HotDog, and Checken extending FoodItem; and DrinkItem with Coke, Sprite, and RootBeer extending DrinkItem. d. The design should include the following classes: FoodItem and DrinkItem. The individual types of food and drink are only descriptions of the food or drink and should not be separate classes. e. The design should include the following classes: Item with FoodItem and DrinkItem extending Item. The individual types of food and drink are objects that are instances of these classes, not separate classes. The fast food restaurant also offers value meals. A value meal is a drink and a food item purchased at the same time. A 10% discount off the full price of purchasing each separately is applied to the price of a value meal. A deluxe value meal costs $0.50 more than a value meal and includes apple pie for dessert. Which of the following is the best choice for this system design? Why? a. DeluxeValueMeal should be a subclass of ValueMeal. b. ValueMeal should be a subclass of DeluxeValueMeal. c. Both DeluxeValueMeal and ValueMeal should be separate classes that have no inheritance relationship. d. ValueMeal has an association (has-a) relationship with DeluxeValueMeal. e. ValueMeal and DeluxeValueMeal both have an instance field of type Meal which is a superclass of both Meal and DeluxeValueMeal. You are to create a software design that simulates a fast food restaurant. You will have food items (hamburgers, hot dogs, chicken sandwiches) and drink items (Coke, Sprite, root beer). The drinks come in various sizes given in ounces (for example: 12, 24, 48). Food items will be assigned a price when they are created but this price can be changed by the employee taking the items will be assigned according to the size of the drink. Which of the following would be the best choice for the design of this system? Why? a. The design should include the following classes: Hamburger, HotDog, Chicken, Coke, Sprite, and RootBeer. b. The design should include the following classes: FoodItem with Hamburger, HotDog, and Chicken extending FoodItem and DtrinkItem with Coke, Sprite, and RootBeer extending DrinkItem. c. The design should include the following classes: Item with FoodItem and DrinkItem extending Item: Hamburger, HotDog, and Checken extending FoodItem; and DrinkItem with Coke, Sprite, and RootBeer extending DrinkItem. d. The design should include the following classes: FoodItem and DrinkItem. The individual types of food and drink are only descriptions of the food or drink and should not be separate classes. e. The design should include the following classes: Item with FoodItem and DrinkItem extending Item. The individual types of food and drink are objects that are instances of these classes, not separate classes. The fast food restaurant also offers value meals. A value meal is a drink and a food item purchased at the same time. A 10% discount off the full price of purchasing each separately is applied to the price of a value meal. A deluxe value meal costs $0.50 more than a value meal and includes apple pie for dessert. Which of the following is the best choice for this system design? Why? a. DeluxeValueMeal should be a subclass of ValueMeal. b. ValueMeal should be a subclass of DeluxeValueMeal. c. Both DeluxeValueMeal and ValueMeal should be separate classes that have no inheritance relationship. d. ValueMeal has an association (has-a) relationship with DeluxeValueMeal. e. ValueMeal and DeluxeValueMeal both have an instance field of type Meal which is a superclass of both Meal and DeluxeValueMeal

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!