Purchase Solution

Java GUI program to calculate restaurant bill

Not what you're looking for?

Ask Custom Question

 All the variables have to be declared and initialized inside the method before they are used.
 All the arrays have to be declared before they are used.
 No global variables are allowed to be used in your application class.

Problem Descriptions

Write a GUI application that produces a restaurant bill. You create a bill calculator to generate window output. You should prompt the user to enter all the dishes and their prices using JOptionPane, and then display all the dishes, their prices, the total price before tax, the tax, and the total price after tax. Your output should be in a window, using a class you have derived from JFrame. Your window should include a title and appropriate icon, which you can choose. Each customer cannot order more than three dishes in each bill,
and the tax rate is 15%. You should have three classes shown as follows:

1. A Bill class to model a bill.
2. A BillFrame class to define a bill window.
3. A BillCalculator class to get a user' inputs and to generate the below outputs.

Assignment Submission

1. Submit a UML class diagram for the Bill class.
2. Submit all the three java source codes.
3. Submit the RED-STAR screenshots.

Program Sample Inputs and Outputs 1

Purchase this Solution

Solution Summary

Java GUI program to calculate restaurant bill

Purchase this Solution


Free BrainMass Quizzes
Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Javscript Basics

Quiz on basics of javascript programming language.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.