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.
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.
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)