Write a program that reads from the user the amount of a restaurant bill as well as tax rate and then applies a random amount of tip between 15% and 20% of the amount of the bill and displays the total amount due (including tax and tip). It then asks the user how many people in the party and divides the total amount by the number of people and displays the amount for each person in the group.

It then asks for and reads from the user a separator character, such as comma, space, tab or new line and displays the information using the separator character (see the example below):

Enter date: 9/30/2020
Enter restaurant name: Cheesecake Factory
Enter Street and city: Lake Ave, Pasadena
Enter bill amount: $100
Enter tax rate in %: 9
Total including tax of 9% and gratuity of 18% is $127.00.
Enter number of people to divide by: 4
Amount for each of 4 persons: $31.75
Enter a separator character: [TAB]
Bill amount: $100.00 Tax: $9.25 Tip: $18.00 Each portion: $31.75
Press any key to continue.

Second example:

Enter date: 9/29/2020
Enter restaurant name: Raffi's Place
Enter Street and city: Broadway Ave, Glendale
Enter bill amount: $200
Enter tax rate in %: 9
Total including tax of 9% and gratuity of 17% is $252.00.
Enter number of people to divide by: 4
Amount for each of 4 persons: $252.00
Enter a separator character: ,
Bill amount: $100.00 ,Tax: $9.25, Tip: $18.00, Each portion: $31.75
Press any key to continue.

In the above example, if the user entered a new line instead of a comma for the separator:

Tax: $18
Tip: $34.00
Each portion: $228.00
Press any key to continue.

Make sure the program pauses and wait for a key to be pressed before continuing.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.