programming

Create a new object called FoodDie that inherits from from your Die class, but has a constructor that sets the die to twelve sides and shows a string value for each side.

The values are: rice, steak, salad, soup, peas, fried chicken, eggs, pork chops, sandwich, ramen, stew, and chips with salsa

Create a second new object called UtensilDie that inherits from your Die class, but constructs only a six-sided die with the following six strings: knife, fork, spoon, fingers, chopsticks, and ladle.

Create a new class called DiceFoodGame that leverages these two classes, so it should inherit from your Dice class, but with the following extra features.

The constructor should create the collection for exactly two objects, one UtensilDie and one FoodDie.

There should be a getScore method with scoring based on the following rules:

If a utensil and food is listed as preferred, score 10 points.
If a utensil is one of several that can be used, score 6 points.
If a utensil is one of several that must be used together, score 3 points.
Here’s the table mapping foods to utensils

Food Preferred utensil Can Use Must Use
rice chopsticks fork or spoon
porterhouse steak knife and fork
salad fork
soup spoon spoon or ladle
sandwich fingers
peas fork fork or spoon
fried chicken fingers knife and fork
eggs fork
pork chops knife and fork
ramen chopsticks fork
stew ladle spoon or ladle
chips with salsa fingers

Order from us and get better grades. We are the service you have been looking for.