Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

solve this question by using inherit by java code please :) The purpose of the application is to help a ficticious company called Jims Burgers

solve this question by using inherit

by java code please :)

image text in transcribed

image text in transcribed

The purpose of the application is to help a ficticious company called Jims Burgers to manage // their process of selling hamburgers // Our application will help Jim to select types of burgers, some of the additional items (additions) to // be added to the burgers and pricing. We want to create a base hamburger, but also two other types of hamburgers that are popular ones in // Jims store // The basic hamburger should have the following items // bread roll type, meat and up to 4 additional additions (things like lettuce, tomato, carrot, etc) that // the customer can select to be added to the burger. Each one of these items gets charged an additional // price so you need some way to track how many items got added and to calculate the price (for the base // burger and all the additions) // This burger has a base price and the additions are all seperately priced // Create a Hamburger class to deal with all the above. // The constructor should only include the roll type, meat and price // Also create two extra varieties of Hamburgers (classes) to cater for // a) Healthy burger (on a brown rye bread roll), plus two addition items can be added. // The healthy burger can have a total of 6 items (Additions) in total // hint: you probably want to process the 2 additional items in this new class, not the base class, // since the 2 additions are only appropriate for this new class // b) Deluxe hamburger - comes with chips and drinks as additions, but no extra additions are allowed. // hint: You have to find a way to automatically add these new additions at the time the deluxe burger // object is created, and then prevent other additions being made // All 3 classes should have a method that can be called anytime to show the base price of the hamburger // plus all additionals, each showing the addition name, and addition price, and a grand total for the // burger // For the two additional classes this may require you to be looking at the base class for pricing and // then adding totals onto that The purpose of the application is to help a ficticious company called Jims Burgers to manage // their process of selling hamburgers // Our application will help Jim to select types of burgers, some of the additional items (additions) to // be added to the burgers and pricing. We want to create a base hamburger, but also two other types of hamburgers that are popular ones in // Jims store // The basic hamburger should have the following items // bread roll type, meat and up to 4 additional additions (things like lettuce, tomato, carrot, etc) that // the customer can select to be added to the burger. Each one of these items gets charged an additional // price so you need some way to track how many items got added and to calculate the price (for the base // burger and all the additions) // This burger has a base price and the additions are all seperately priced // Create a Hamburger class to deal with all the above. // The constructor should only include the roll type, meat and price // Also create two extra varieties of Hamburgers (classes) to cater for // a) Healthy burger (on a brown rye bread roll), plus two addition items can be added. // The healthy burger can have a total of 6 items (Additions) in total // hint: you probably want to process the 2 additional items in this new class, not the base class, // since the 2 additions are only appropriate for this new class // b) Deluxe hamburger - comes with chips and drinks as additions, but no extra additions are allowed. // hint: You have to find a way to automatically add these new additions at the time the deluxe burger // object is created, and then prevent other additions being made // All 3 classes should have a method that can be called anytime to show the base price of the hamburger // plus all additionals, each showing the addition name, and addition price, and a grand total for the // burger // For the two additional classes this may require you to be looking at the base class for pricing and // then adding totals onto that

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago