Write a JAVA program that calculates the total restaurant bill as follows: •Ask
ID: 3575151 • Letter: W
Question
Write a JAVA program that calculates the total restaurant bill as follows: •Ask for the bill amount and service level. • If the service level is individual, calculate total bill with 35 percent service fee. •If the service level is group, calculate total bill with 25 percent service fee. •If the service level is business, calculate total bill with 25 percent service fee and 5 % discount. Calculate and display the total bill amount including the service fee. Write a JAVA program that calculates the total restaurant bill as follows: •Ask for the bill amount and service level. • If the service level is individual, calculate total bill with 35 percent service fee. •If the service level is group, calculate total bill with 25 percent service fee. •If the service level is business, calculate total bill with 25 percent service fee and 5 % discount. Calculate and display the total bill amount including the service fee. Write a JAVA program that calculates the total restaurant bill as follows: •Ask for the bill amount and service level. • If the service level is individual, calculate total bill with 35 percent service fee. •If the service level is group, calculate total bill with 25 percent service fee. •If the service level is business, calculate total bill with 25 percent service fee and 5 % discount. Calculate and display the total bill amount including the service fee.Explanation / Answer
Please find the required program along with its output. Please see the comments against each line to understand the step.
-------------------------------------------------------------------
OUTPUT:
Enter the bill amount:
2450
Select the service level:
1) Individual
2) Group
3) Business
3
Total bill amount = 2909.375
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.