Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project overview: Create a java graphics program that displays an order menu and bill from a Sandwich shop, or any other establishment you prefer. In

Project overview:

Create a java graphics program that displays an order menu and bill from a Sandwich shop, or any other establishment you prefer. In this program the design is left up to the programmer however good object oriented design is required. Below are two images that should be used to assist in development of your program. Items are selected on the Order Calculator and the Message window that displays the Subtotal, Tax and Total is displayed when the Calculate Button is pressed. You can also combine the two functions in the same panel if you wish.

image text in transcribed

Project Requirements:

Develop a project that provides the functionality show in the images above.

The type of shop, items offered and cost is up to the designer. However each item must have a different cost and the final calculation must be correct.

The images display the minimum requirements, however the following is a list of those minimum requirements.

Welcome panel with the shop name and three item panels with panel labels.

At least one set of Checkboxes that allows multiple selection and one set of Radio buttons that are mutually exclusive.

A Panel that holds the calculate and exit button

A popup box or separate panel that displays the cost of the selections and the tax. Note the tax must be calculated after the items are selected.

Implementation Notes:

Create a project that is object oriented, therefore there should be several classes.

Below is an outline of possible structure of the program. This is a basic outline and does not address all the required details. You may want to think about your design first before reading the suggested structure below.

Create a separate class for each Panel except the button panel.

Create an Order Calculation class.

Extends JFrame.

Instance fields are objects of the Panel types.

Adds the Panels to the JFrame using a Boarder Layout

A method to create the Button Panel (Calculate and Exit)

Two inner ActionListener classes that handle the button actions.

A class that contains the main method and simply creates the Order Calculation object.

Order Calculator Welcome to Johmy' Sandwich Shop BradscheeseCoffee WWhite Calculat Subotal: $4.75 Tax: $02R

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_2

Step: 3

blur-text-image_3

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

Do you have interesting things to say?

Answered: 1 week ago