Question: Write the program in JAVA Imagine that you and a number of friends go to a luxury restaurant and when you ask for the bill

Write the program in JAVA
Imagine that you and a number of friends go to a luxury restaurant and when you ask for the bill you want to split the amount and the tip (15 percent) between all. Write a Java program that asks the user for the total amount of the bill and the total number of friends and then calculates the amount of money that everyone has to pay. Your program should print the amount of the bill, the tip, the total cost, and the amount each person has to pay. It should also print how much of what each person pays is for the bill and for the tip

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!