IS147 Quiz 1 Programming Question

February 13th 2018

Please read the directions before you begin.

Part I. Write a program that reads the total restaurant check and the gratuity rate (whatever rate you want to pay), then computes the gratuity and total check. For example, if the user enters 10 for subtotal and 15% for gratuity rate, the program displays $1.5 as gratuity and $11.5 as total.

Test case:

Enter the total restaurant check about and a gratuity rate: 10 15  
The gratuity is $1.5 and total is $11.5  

Please zip both java and class file and name the zip file is147-quiz-1-part-one.zip

Part II. Re-write the program from Part I to divide the total check between the number of attendees and output the amount each attende must pay with gratuity.

Test case (you can ignore any rounding):

Enter the total restaurant check about and a gratuity rate: 10 15 4  
The gratuity is $1.5, total is $11.5, each attendee pays $2.875   

Please zip both java and class file and name the zip file is147-quiz-1-part-two.zip