Write a program that calculates the total cost of a meal purchased at a restaurant. Program should ask the user to enter the charge for the food, % of tip, tax, and the total.  create two classes to solve this problem : MealCalculator : includes the data field, 2 constructor ( default and one with parameters), accessor/ mutator methods, and other methods to calculate the amounts.  MealCalculatorDemo: includes the main method. It should ask the user for number of meals to be calculated. For each meal, create an instance of the MealCalculator class to set the data fields and display the amounts. Note the Following: Note: Every method in the MealCalculator class should be called. You need to create instances using the default constructor and the parameter constructor.

Oh no! Our experts couldn't answer your question.

Don't worry! We won't leave you hanging. Plus, we're giving you back one question for the inconvenience.

Submit your question and receive a step-by-step explanation from our experts in as fast as 30 minutes.
You have no more questions left.
Message from our expert:
Sorry, our expert can’t provide a solution for this question. Your question has been credited back for next time.
Your Question:

Write a program that calculates the total cost of a meal purchased at a restaurant. Program should ask the user to enter the charge for the food, % of tip, tax, and the total. 

create two classes to solve this problem :

MealCalculator : includes the data field, 2 constructor ( default and one with parameters), accessor/ mutator methods, and other methods to calculate the amounts. 

MealCalculatorDemo: includes the main method. It should ask the user for number of meals to be calculated. For each meal, create an instance of the MealCalculator class to set the data fields and display the amounts. Note the Following:

Note: Every method in the MealCalculator class should be called. You need to create instances using the default constructor and the parameter constructor.

Knowledge Booster
ADT and Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,