A restaurant will print a bill for the customer at the end of a meal. This bill will include the price of the meal, the sales tax, and three suggested tip amounts based on the sum of the price and the sales tax for a low, medium, or high amount (which is typically 15%, 18%, and 20%). (The customer can still tip whatever they wish.) Last of all, it prints the name of the server. Write this program. The sales tax in Tennessee is 7%.There are complications in working with inputs of various types. You will be asked to read in inputs of various types and you should run to odd issues with your program. There is a section in the book on dealing with a mixture of nextLine and other next calls.Name your project FirstnameLastnameAssignment3Have your program do the following.Your source code must include the following documentation:Since we haven’t covered Java’s approach to number formatting, it’s okay that these numbers do not round to two decimal places.Welcome to Dr. Church’s Restaurant Bill Tool.
Enter the bill amount: 12.50
Enter the server’s name: Charles MartinetSubtotal: 12.5
Sales Tax: 0.8750000000000001
15.0%: 2.00625
18.0%: 2.4074999999999998
20.0%: 2.6750000000000003Your server is Charles Martinet.To turn in your application, find the folder containing your entire project (not the folder with the “java” file), zip it up, and turn it in.
Assignment, Bill, CS2070, Restaurant, solved
[SOLVED] Cs2070 assignment 3: the restaurant bill
$25
File Name: Cs2070_assignment_3__the_restaurant_bill.zip
File Size: 376.8 KB
Reviews
There are no reviews yet.