Instructions included in the screenshots below! PLEASE PLEASE be.pdf

A

*** Instructions included in the screenshots below! PLEASE PLEASE be sure to include all the necessary code and ENSURE the ENTIRE post is answered. Break into steps if necessary. Thank you!!! *** ***PLEASE PLEASE be sure to include ALL the necessary code and ENSURE the ENTIRE post is answered. Break into steps if necessary. Thank you!!! *** The menu at a lunch counter includes a variety of sandwiches, salads, and drinks. The menu also allows a customer to create a "trio," which consists of three menu items: a sandwich, a salad, and a drink. The price of the trio is the sum of the two highest-priced menu items in the trio; one item with the lowest price is free. Each menu item has a name and a price. The four types of menu items are represented by the four classes Sandwich, Salad, Drink, and Trio. All four classes implement the a MenuItem interface. The following diagram shows the Menultem UML class diagram. Figure 1: UML class diagram showing Menultem interface. The following diagram shows the relationship between the MenuItem interface and the Sandwich, Salad, Drink, and Trio classes. Figure 2: UML class diagram showing Menultem is implemented by Trio and SimpleLunchltem that is extended by Sandwich, Salad, and Drink. For example, assume that the menu includes the following items. The objects listed under each heading are instances of the class indicated by the heading. Figure 2: Example objects of Menultem subclasses The lunch counter wants to allow customers to create Trio menu items, each of which includes a sandwich, a salad, and a drink. The name of the Trio consists of the names of the sandwich, salad, and drink, in that order, each separated by "/" and followed by a space and then "Trio". The price of the Trio is the sum of the two highest-priced items in the Trio; one item with the lowest price is free. A trio consisting of a cheeseburger, spinach salad, and an orange soda would have the name "Cheeseburger/Spinach Salad/Orange Soda Trio" and a price of $4.00 (the two highest prices are $2.75 and $1.25 ). Similarly, a trio consisting of a club sandwich, coleslaw, and a cappuccino would have the name "Club Sandwich/Coleslaw/Cappuccino Trio" and a price of $6.25 (the two highest prices are $2.75 and $3.50 ). The lunch counter wants to allow customers to create Trio menu items, each of which includes a sandwich, a salad, and a drink. The name of the Trio consists of the names of the sandwich, salad, and drink, in that order, each separated by "/" and followed by a space and then "Trio". The price of the Trio is the sum of the two highest-priced items in the Trio; one item with the lowest price is free. A trio consisting of a cheeseburger, spinach salad, and an orange soda would have the name "Cheeseburger/Spinach Salad/Orange Soda Trio" and a price of $4.00 (the two highest prices are $2.75 and $1.25 ). Similarly, a trio consisting of a club sandwich, coleslaw, and a cappuccino would have the name "Club Sandwich/Coleslaw/Cappuccino Trio".

*** Instructions included in the screenshots below! PLEASE PLEASE be sure to include all the
necessary code and ENSURE the ENTIRE post is answered. Break into steps if necessary. Thank
you!!! ***
***PLEASE PLEASE be sure to include ALL the necessary code and ENSURE the ENTIRE
post is answered. Break into steps if necessary. Thank you!!! ***
The menu at a lunch counter includes a variety of sandwiches, salads, and drinks. The menu also
allows a customer to create a "trio," which consists of three menu items: a sandwich, a salad, and
a drink. The price of the trio is the sum of the two highest-priced menu items in the trio; one item
with the lowest price is free. Each menu item has a name and a price. The four types of menu
items are represented by the four classes Sandwich, Salad, Drink, and Trio. All four classes
implement the a MenuItem interface. The following diagram shows the Menultem UML class
diagram. Figure 1: UML class diagram showing Menultem interface.
The following diagram shows the relationship between the MenuItem interface and the
Sandwich, Salad, Drink, and Trio classes. Figure 2: UML class diagram showing Menultem is
implemented by Trio and SimpleLunchltem that is extended by Sandwich, Salad, and Drink.
For example, assume that the menu includes the following items. The objects listed under each
heading are instances of the class indicated by the heading. Figure 2: Example objects of
Menultem subclasses The lunch counter wants to allow customers to create Trio menu items,
each of which includes a sandwich, a salad, and a drink. The name of the Trio consists of the
names of the sandwich, salad, and drink, in that order, each separated by "/" and followed by a
space and then "Trio". The price of the Trio is the sum of the two highest-priced items in the
Trio; one item with the lowest price is free. A trio consisting of a cheeseburger, spinach salad,
and an orange soda would have the name "Cheeseburger/Spinach Salad/Orange Soda Trio" and a
price of $4.00 (the two highest prices are $2.75 and $1.25 ). Similarly, a trio consisting of a club
sandwich, coleslaw, and a cappuccino would have the name "Club
Sandwich/Coleslaw/Cappuccino Trio" and a price of $6.25 (the two highest prices are $2.75 and
$3.50 ).
The lunch counter wants to allow customers to create Trio menu items, each of which includes a
sandwich, a salad, and a drink. The name of the Trio consists of the names of the sandwich,
salad, and drink, in that order, each separated by "/" and followed by a space and then "Trio".
The price of the Trio is the sum of the two highest-priced items in the Trio; one item with the
lowest price is free. A trio consisting of a cheeseburger, spinach salad, and an orange soda would
have the name "Cheeseburger/Spinach Salad/Orange Soda Trio" and a price of $4.00 (the two
highest prices are $2.75 and $1.25 ). Similarly, a trio consisting of a club sandwich, coleslaw,
and a cappuccino would have the name "Club Sandwich/Coleslaw/Cappuccino Trio" and a price
of $6.25 (the two highest prices are $2.75 and $3.50 ). Try and Solve It Your task is to: - Write
the Menultem interface that has two methods named getName that returns a String and a method
named getPrice that returns a double. - Write the SimpleLunchltem class which is an abstract
class that implements the Menultem interface. - Write the Trio class which implements the
Menultem interface. Your implementation must include a constructor that takes three parameters
representing a sandwich, salad, and drink. - The main method has code to test the result. If
everything works as intended your output should look like this:
Test case 1 It should print: Cheeseburger/Spinach Salad/Orange Soda Trio and it prints:
Cheeseburger/Spinach Salad/Orange Soda Trio It should print: 4.0 and it prints: 4.0 a******
Test case 2 It should print: Club Sandwich/Coleslaw/Cappuccino Trio and it prints: It should
print: 6.25 and it prints : 6.25
Main.java Salad.java SimpleLunchltem.java Menultem.java Sandwich.java Drink.java
12345classSaladextendsSimpleLunchItem{publicSalad(Stringname,doubleprice){{super(name,p
rice);}}
Main.java Salad.java x SimpleLunchltem.java x Menultem.java Sandwich.java Drink.java
Main.java Salad.java SimpleLunchltem.java Menultem.java Sandwich.java Drink.java (1) 1
// Declare the MenuItem interface.
Main.java(()234Salad.javaSimpleLunchltem.javaMenultem.javaSandwich.javaDrink.java1{{{su
per(name,price);}classSandwichextendsSimpleLunchItempublicSandwich(Stringname,doublepri
ce)Main.javaSalad.javaSimplelunchltem.javaMenultem.javaSandwich.javaDrink.java (1) class
Drink extends SimpleLunchItem public Drink(String name, double price) { super(name, price); }

Recomendados

Inventory Costing LFO Filimonov Inc. has the following information r.pdf von
 Inventory Costing LFO Filimonov Inc. has the following information r.pdf Inventory Costing LFO Filimonov Inc. has the following information r.pdf
Inventory Costing LFO Filimonov Inc. has the following information r.pdfameancal
6 views1 Folie
Inventory Costing Methods-Periodic System Following is an inventory a.pdf von
 Inventory Costing Methods-Periodic System Following is an inventory a.pdf Inventory Costing Methods-Periodic System Following is an inventory a.pdf
Inventory Costing Methods-Periodic System Following is an inventory a.pdfameancal
4 views1 Folie
Integrative-Multiple leverage messures Play-More Toys produces inftat.pdf von
 Integrative-Multiple leverage messures Play-More Toys produces inftat.pdf Integrative-Multiple leverage messures Play-More Toys produces inftat.pdf
Integrative-Multiple leverage messures Play-More Toys produces inftat.pdfameancal
2 views1 Folie
Introduction The more preparation you put into the design of your dat.pdf von
 Introduction The more preparation you put into the design of your dat.pdf Introduction The more preparation you put into the design of your dat.pdf
Introduction The more preparation you put into the design of your dat.pdfameancal
2 views1 Folie
InteliSystems manufactures an optical switch that it uses in its fina.pdf von
 InteliSystems manufactures an optical switch that it uses in its fina.pdf InteliSystems manufactures an optical switch that it uses in its fina.pdf
InteliSystems manufactures an optical switch that it uses in its fina.pdfameancal
9 views1 Folie
INTRODUCTION The goal of this programming project is to entble studen.pdf von
 INTRODUCTION The goal of this programming project is to entble studen.pdf INTRODUCTION The goal of this programming project is to entble studen.pdf
INTRODUCTION The goal of this programming project is to entble studen.pdfameancal
3 views7 Folien

Más contenido relacionado

Más de ameancal

Internet Browsers Recently, the top web browser had 51.74 of the m.pdf von
 Internet Browsers Recently, the top web browser had 51.74 of the m.pdf Internet Browsers Recently, the top web browser had 51.74 of the m.pdf
Internet Browsers Recently, the top web browser had 51.74 of the m.pdfameancal
12 views1 Folie
Internet Browsers Recently, the top web browser had 51.74 of the mar.pdf von
 Internet Browsers Recently, the top web browser had 51.74 of the mar.pdf Internet Browsers Recently, the top web browser had 51.74 of the mar.pdf
Internet Browsers Recently, the top web browser had 51.74 of the mar.pdfameancal
3 views1 Folie
Internal Insights inc. a developer of radiology equipment, has stock .pdf von
 Internal Insights inc. a developer of radiology equipment, has stock .pdf Internal Insights inc. a developer of radiology equipment, has stock .pdf
Internal Insights inc. a developer of radiology equipment, has stock .pdfameancal
2 views1 Folie
Instructions Using MS Word, or any text editor, write the Pseudo-cod.pdf von
 Instructions Using MS Word, or any text editor, write the Pseudo-cod.pdf Instructions Using MS Word, or any text editor, write the Pseudo-cod.pdf
Instructions Using MS Word, or any text editor, write the Pseudo-cod.pdfameancal
2 views1 Folie
Instructions (a) Prepare a cost of goods manufactured schedule for Ju.pdf von
 Instructions (a) Prepare a cost of goods manufactured schedule for Ju.pdf Instructions (a) Prepare a cost of goods manufactured schedule for Ju.pdf
Instructions (a) Prepare a cost of goods manufactured schedule for Ju.pdfameancal
2 views1 Folie
Instructions Identify an existing organisation in an industry of.pdf von
 Instructions Identify an existing organisation in an industry of.pdf Instructions Identify an existing organisation in an industry of.pdf
Instructions Identify an existing organisation in an industry of.pdfameancal
8 views1 Folie

Más de ameancal(20)

Internet Browsers Recently, the top web browser had 51.74 of the m.pdf von ameancal
 Internet Browsers Recently, the top web browser had 51.74 of the m.pdf Internet Browsers Recently, the top web browser had 51.74 of the m.pdf
Internet Browsers Recently, the top web browser had 51.74 of the m.pdf
ameancal12 views
Internet Browsers Recently, the top web browser had 51.74 of the mar.pdf von ameancal
 Internet Browsers Recently, the top web browser had 51.74 of the mar.pdf Internet Browsers Recently, the top web browser had 51.74 of the mar.pdf
Internet Browsers Recently, the top web browser had 51.74 of the mar.pdf
ameancal3 views
Internal Insights inc. a developer of radiology equipment, has stock .pdf von ameancal
 Internal Insights inc. a developer of radiology equipment, has stock .pdf Internal Insights inc. a developer of radiology equipment, has stock .pdf
Internal Insights inc. a developer of radiology equipment, has stock .pdf
ameancal2 views
Instructions Using MS Word, or any text editor, write the Pseudo-cod.pdf von ameancal
 Instructions Using MS Word, or any text editor, write the Pseudo-cod.pdf Instructions Using MS Word, or any text editor, write the Pseudo-cod.pdf
Instructions Using MS Word, or any text editor, write the Pseudo-cod.pdf
ameancal2 views
Instructions (a) Prepare a cost of goods manufactured schedule for Ju.pdf von ameancal
 Instructions (a) Prepare a cost of goods manufactured schedule for Ju.pdf Instructions (a) Prepare a cost of goods manufactured schedule for Ju.pdf
Instructions (a) Prepare a cost of goods manufactured schedule for Ju.pdf
ameancal2 views
Instructions Identify an existing organisation in an industry of.pdf von ameancal
 Instructions Identify an existing organisation in an industry of.pdf Instructions Identify an existing organisation in an industry of.pdf
Instructions Identify an existing organisation in an industry of.pdf
ameancal8 views
Instructions For each of the following items, Indicate the secti.pdf von ameancal
 Instructions For each of the following items, Indicate the secti.pdf Instructions For each of the following items, Indicate the secti.pdf
Instructions For each of the following items, Indicate the secti.pdf
ameancal2 views
Instructions TO RECEIVE CREDIT FOR THE ITEMS BELOW YOU MUST SHOW YOUR.pdf von ameancal
 Instructions TO RECEIVE CREDIT FOR THE ITEMS BELOW YOU MUST SHOW YOUR.pdf Instructions TO RECEIVE CREDIT FOR THE ITEMS BELOW YOU MUST SHOW YOUR.pdf
Instructions TO RECEIVE CREDIT FOR THE ITEMS BELOW YOU MUST SHOW YOUR.pdf
ameancal2 views
Instrucciones Para recibir cr�dito completo, debe hacer una selecc.pdf von ameancal
 Instrucciones Para recibir cr�dito completo, debe hacer una selecc.pdf Instrucciones Para recibir cr�dito completo, debe hacer una selecc.pdf
Instrucciones Para recibir cr�dito completo, debe hacer una selecc.pdf
ameancal2 views
Inseructons Propane the Mery 11th� journat entry for Cody Compary.pdf von ameancal
 Inseructons Propane the Mery 11th� journat entry for Cody Compary.pdf Inseructons Propane the Mery 11th� journat entry for Cody Compary.pdf
Inseructons Propane the Mery 11th� journat entry for Cody Compary.pdf
ameancal2 views
Instant Brake inc.s comparative balance sheet information at Decembe.pdf von ameancal
 Instant Brake inc.s comparative balance sheet information at Decembe.pdf Instant Brake inc.s comparative balance sheet information at Decembe.pdf
Instant Brake inc.s comparative balance sheet information at Decembe.pdf
ameancal5 views
inite anedt the keneth of time Alutrasweet cojoyicd its firt inover a.pdf von ameancal
 inite anedt the keneth of time Alutrasweet cojoyicd its firt inover a.pdf inite anedt the keneth of time Alutrasweet cojoyicd its firt inover a.pdf
inite anedt the keneth of time Alutrasweet cojoyicd its firt inover a.pdf
ameancal2 views
Instructions C=200+0.75YI=150.pdf von ameancal
 Instructions C=200+0.75YI=150.pdf Instructions C=200+0.75YI=150.pdf
Instructions C=200+0.75YI=150.pdf
ameancal2 views
Instructions Submit an electronic copy of the assignment to the Drop.pdf von ameancal
 Instructions Submit an electronic copy of the assignment to the Drop.pdf Instructions Submit an electronic copy of the assignment to the Drop.pdf
Instructions Submit an electronic copy of the assignment to the Drop.pdf
ameancal3 views
Integrative - Expected return, standard deviation, and coefficient of.pdf von ameancal
 Integrative - Expected return, standard deviation, and coefficient of.pdf Integrative - Expected return, standard deviation, and coefficient of.pdf
Integrative - Expected return, standard deviation, and coefficient of.pdf
ameancal14 views
Instructions Assume that the distribution for the following scenario.pdf von ameancal
 Instructions Assume that the distribution for the following scenario.pdf Instructions Assume that the distribution for the following scenario.pdf
Instructions Assume that the distribution for the following scenario.pdf
ameancal5 views
Instruttor Obiervations of Ahove Dats In criginal trotdent and cases .pdf von ameancal
 Instruttor Obiervations of Ahove Dats In criginal trotdent and cases .pdf Instruttor Obiervations of Ahove Dats In criginal trotdent and cases .pdf
Instruttor Obiervations of Ahove Dats In criginal trotdent and cases .pdf
ameancal2 views
Instructions Makes String comparisons The files provided in the co.pdf von ameancal
 Instructions  Makes String comparisons The files provided in the co.pdf Instructions  Makes String comparisons The files provided in the co.pdf
Instructions Makes String comparisons The files provided in the co.pdf
ameancal3 views
Instructions Write your final numerical answer in the corresponding .pdf von ameancal
 Instructions Write your final numerical answer in the corresponding .pdf Instructions Write your final numerical answer in the corresponding .pdf
Instructions Write your final numerical answer in the corresponding .pdf
ameancal3 views
Jane Industries manufactures plastic toys. During October, Janes Fab.pdf von ameancal
 Jane Industries manufactures plastic toys. During October, Janes Fab.pdf Jane Industries manufactures plastic toys. During October, Janes Fab.pdf
Jane Industries manufactures plastic toys. During October, Janes Fab.pdf
ameancal3 views

Último

JQUERY.pdf von
JQUERY.pdfJQUERY.pdf
JQUERY.pdfArthyR3
114 views22 Folien
NodeJS and ExpressJS.pdf von
NodeJS and ExpressJS.pdfNodeJS and ExpressJS.pdf
NodeJS and ExpressJS.pdfArthyR3
53 views17 Folien
JRN 362 - Lecture Twenty-Three (Epilogue) von
JRN 362 - Lecture Twenty-Three (Epilogue)JRN 362 - Lecture Twenty-Three (Epilogue)
JRN 362 - Lecture Twenty-Three (Epilogue)Rich Hanley
44 views57 Folien
PRELIMS ANSWER.pptx von
PRELIMS ANSWER.pptxPRELIMS ANSWER.pptx
PRELIMS ANSWER.pptxsouravkrpodder
56 views60 Folien
The Picture Of A Photograph von
The Picture Of A PhotographThe Picture Of A Photograph
The Picture Of A PhotographEvelyn Donaldson
38 views81 Folien
Research Methodology (M. Pharm, IIIrd Sem.)_UNIT_IV_CPCSEA Guidelines for Lab... von
Research Methodology (M. Pharm, IIIrd Sem.)_UNIT_IV_CPCSEA Guidelines for Lab...Research Methodology (M. Pharm, IIIrd Sem.)_UNIT_IV_CPCSEA Guidelines for Lab...
Research Methodology (M. Pharm, IIIrd Sem.)_UNIT_IV_CPCSEA Guidelines for Lab...RAHUL PAL
45 views26 Folien

Último(20)

JQUERY.pdf von ArthyR3
JQUERY.pdfJQUERY.pdf
JQUERY.pdf
ArthyR3114 views
NodeJS and ExpressJS.pdf von ArthyR3
NodeJS and ExpressJS.pdfNodeJS and ExpressJS.pdf
NodeJS and ExpressJS.pdf
ArthyR353 views
JRN 362 - Lecture Twenty-Three (Epilogue) von Rich Hanley
JRN 362 - Lecture Twenty-Three (Epilogue)JRN 362 - Lecture Twenty-Three (Epilogue)
JRN 362 - Lecture Twenty-Three (Epilogue)
Rich Hanley44 views
Research Methodology (M. Pharm, IIIrd Sem.)_UNIT_IV_CPCSEA Guidelines for Lab... von RAHUL PAL
Research Methodology (M. Pharm, IIIrd Sem.)_UNIT_IV_CPCSEA Guidelines for Lab...Research Methodology (M. Pharm, IIIrd Sem.)_UNIT_IV_CPCSEA Guidelines for Lab...
Research Methodology (M. Pharm, IIIrd Sem.)_UNIT_IV_CPCSEA Guidelines for Lab...
RAHUL PAL45 views
ANGULARJS.pdf von ArthyR3
ANGULARJS.pdfANGULARJS.pdf
ANGULARJS.pdf
ArthyR354 views
Artificial Intelligence and The Sustainable Development Goals (SDGs) Adoption... von BC Chew
Artificial Intelligence and The Sustainable Development Goals (SDGs) Adoption...Artificial Intelligence and The Sustainable Development Goals (SDGs) Adoption...
Artificial Intelligence and The Sustainable Development Goals (SDGs) Adoption...
BC Chew40 views
Introduction to AERO Supply Chain - #BEAERO Trainning program von Guennoun Wajih
Introduction to AERO Supply Chain  - #BEAERO Trainning programIntroduction to AERO Supply Chain  - #BEAERO Trainning program
Introduction to AERO Supply Chain - #BEAERO Trainning program
Guennoun Wajih135 views
GSoC 2024 .pdf von ShabNaz2
GSoC 2024 .pdfGSoC 2024 .pdf
GSoC 2024 .pdf
ShabNaz245 views
What is Digital Transformation? von Mark Brown
What is Digital Transformation?What is Digital Transformation?
What is Digital Transformation?
Mark Brown46 views
Interaction of microorganisms with vascular plants.pptx von MicrobiologyMicro
Interaction of microorganisms with vascular plants.pptxInteraction of microorganisms with vascular plants.pptx
Interaction of microorganisms with vascular plants.pptx

Instructions included in the screenshots below! PLEASE PLEASE be.pdf

  • 1. *** Instructions included in the screenshots below! PLEASE PLEASE be sure to include all the necessary code and ENSURE the ENTIRE post is answered. Break into steps if necessary. Thank you!!! *** ***PLEASE PLEASE be sure to include ALL the necessary code and ENSURE the ENTIRE post is answered. Break into steps if necessary. Thank you!!! *** The menu at a lunch counter includes a variety of sandwiches, salads, and drinks. The menu also allows a customer to create a "trio," which consists of three menu items: a sandwich, a salad, and a drink. The price of the trio is the sum of the two highest-priced menu items in the trio; one item with the lowest price is free. Each menu item has a name and a price. The four types of menu items are represented by the four classes Sandwich, Salad, Drink, and Trio. All four classes implement the a MenuItem interface. The following diagram shows the Menultem UML class diagram. Figure 1: UML class diagram showing Menultem interface. The following diagram shows the relationship between the MenuItem interface and the Sandwich, Salad, Drink, and Trio classes. Figure 2: UML class diagram showing Menultem is implemented by Trio and SimpleLunchltem that is extended by Sandwich, Salad, and Drink. For example, assume that the menu includes the following items. The objects listed under each heading are instances of the class indicated by the heading. Figure 2: Example objects of Menultem subclasses The lunch counter wants to allow customers to create Trio menu items, each of which includes a sandwich, a salad, and a drink. The name of the Trio consists of the names of the sandwich, salad, and drink, in that order, each separated by "/" and followed by a space and then "Trio". The price of the Trio is the sum of the two highest-priced items in the Trio; one item with the lowest price is free. A trio consisting of a cheeseburger, spinach salad, and an orange soda would have the name "Cheeseburger/Spinach Salad/Orange Soda Trio" and a price of $4.00 (the two highest prices are $2.75 and $1.25 ). Similarly, a trio consisting of a club sandwich, coleslaw, and a cappuccino would have the name "Club Sandwich/Coleslaw/Cappuccino Trio" and a price of $6.25 (the two highest prices are $2.75 and $3.50 ). The lunch counter wants to allow customers to create Trio menu items, each of which includes a sandwich, a salad, and a drink. The name of the Trio consists of the names of the sandwich, salad, and drink, in that order, each separated by "/" and followed by a space and then "Trio". The price of the Trio is the sum of the two highest-priced items in the Trio; one item with the lowest price is free. A trio consisting of a cheeseburger, spinach salad, and an orange soda would
  • 2. have the name "Cheeseburger/Spinach Salad/Orange Soda Trio" and a price of $4.00 (the two highest prices are $2.75 and $1.25 ). Similarly, a trio consisting of a club sandwich, coleslaw, and a cappuccino would have the name "Club Sandwich/Coleslaw/Cappuccino Trio" and a price of $6.25 (the two highest prices are $2.75 and $3.50 ). Try and Solve It Your task is to: - Write the Menultem interface that has two methods named getName that returns a String and a method named getPrice that returns a double. - Write the SimpleLunchltem class which is an abstract class that implements the Menultem interface. - Write the Trio class which implements the Menultem interface. Your implementation must include a constructor that takes three parameters representing a sandwich, salad, and drink. - The main method has code to test the result. If everything works as intended your output should look like this: Test case 1 It should print: Cheeseburger/Spinach Salad/Orange Soda Trio and it prints: Cheeseburger/Spinach Salad/Orange Soda Trio It should print: 4.0 and it prints: 4.0 a****** Test case 2 It should print: Club Sandwich/Coleslaw/Cappuccino Trio and it prints: It should print: 6.25 and it prints : 6.25 Main.java Salad.java SimpleLunchltem.java Menultem.java Sandwich.java Drink.java 12345classSaladextendsSimpleLunchItem{publicSalad(Stringname,doubleprice){{super(name,p rice);}} Main.java Salad.java x SimpleLunchltem.java x Menultem.java Sandwich.java Drink.java Main.java Salad.java SimpleLunchltem.java Menultem.java Sandwich.java Drink.java (1) 1 // Declare the MenuItem interface. Main.java(()234Salad.javaSimpleLunchltem.javaMenultem.javaSandwich.javaDrink.java1{{{su per(name,price);}classSandwichextendsSimpleLunchItempublicSandwich(Stringname,doublepri ce)Main.javaSalad.javaSimplelunchltem.javaMenultem.javaSandwich.javaDrink.java (1) class Drink extends SimpleLunchItem public Drink(String name, double price) { super(name, price); }