Question
Question 1: Tip Calculator (30 marks) Complete this question in the TipCalculator class. Write a class that implements a program to calculate each diner's share
Question 1: Tip Calculator (30 marks)
Complete this question in the TipCalculator class.
Write a class that implements a program to calculate each diner's share of a meal in a restaurant.
The application should take the bill price, add a tip expressed as a percentage, and then divide by the people present.
For full marks you should correctly handle erroneous input.
You must use the Swing library as presented in class without using an interface builder or other tool.
When finished your GUI will resemble the following.
You should make use of a single flow layout manager in your implementation, so resizing will change the layout.
Meal splitter price tip (\%) people Each person should pay 22.64
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started