Question: plz answer java CSCI 300L - Intermediate Programming with Objects Lab Based on the below UML diagram Plate Restaurant name: String #id: int p: Plate

plz answer java
CSCI 300L - Intermediate Programming with Objects Lab Based on the below UML diagram Plate Restaurant name: String #id: int p: Plate +Restaurant( all arguments) +getter / setter methods +toString(): String #price: double +Plate( all arguments #getter / setter methods Sushi -type: String - quantity: int + Sushi ( all arguments) +getter setter methods +toString: String + computeCalories 0: double Soupe -name: String - volume: int + Soupe (all arguments) +getter setter methods +toStringO: String -computeCalories (): double 1. Implement the class Plate (10 points) 2. Implement the classes Sushi and Soup. (40 points) a. For sushi > camputeCalories =calory per piece * quantity Calory per piece = 78 toString(): Sushi (type:quantity:calories) b. For soup: camputeCalories = volume *32 / 100 toString(): Soupe (name#volume#calories) 3. Implement the class Restaurant (10 points) 4. Write a test program that: (40 points) a. Create an array of Plate with size 5. b. Fill the array with soupe or sushi on user request. c. Display the information of all Plate with price > 500. d. Calculate the average of prices of all plates e. Create a Restaurant with name "Wala Atyab and assign as Plate the last plate from the array f. Display the Restaurant information
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
