Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. I choose to do fast food restaurant. Burgers, Fries, Beverges. Write a program to calculate the total cost of an order at a fast

1. I choose to do fast food restaurant. Burgers, Fries, Beverges.

Write a program to calculate the total cost of an order at a fast food restaurant, pizza parlor, deli, book store, video store, or similar type of establishment. The user interface must display an introduction to the establishment, followed by a menu of available items for sale, as well as an option to exit the application. The User will then be prompted for input and the program will respond appropriately.

A class must be defined to represent a single type object available for sale. This class definition must contain the required attributes and methods necessary to create an instance, set attributes, access the values of attributes and calculate the price of a single item. Try to define the class as a general item rather than limiting it to specifics.

You will need to define a minimum of 3 different classes as stated above, each one to handle a different type of food or drink. For example, a fast food place might offer burgers, fries, and beverages. You would create a single class for each of these types of items containing general attributes (probably String types) to be set to specific values for each order. These data classes should be object-oriented in design and use.

Each component class (as defined above) should initially contain a main (method, which a programmer will use to fully test the individual class prior to submission to the group. This main ( ) method should not be removed, but should be commented out prior to submission so that I can still see it

A User Interface class, which contains only the main ( ) method and any additional helper methods , must be designed and implemented. This is the most complicated and important part of the project and will need to be mostly procedure oriented in execution since it is a console -based application .

Submit the .JAVA source code file for each of your data classes. (burgers, fries, and beverages)

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

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

Students also viewed these Databases questions