In C++ Write a program that reads as inputs from the user: a bill amount number of people to split the bill with Calculate the following for tips from 18% to 22% inclusive: total tip amount total bill with tip amount per person total bill with tip per person The program will output the information as shown in the sample below Note: All money values should be displayed to 2 decimal places with a dollar sign to start.
In C++ Write a program that reads as inputs from the user: a bill amount number of people to split the bill with Calculate the following for tips from 18% to 22% inclusive: total tip amount total bill with tip amount per person total bill with tip per person The program will output the information as shown in the sample below Note: All money values should be displayed to 2 decimal places with a dollar sign to start.
Output should read:
Enter Bill Amount: 100.55
Enter Number of People: 10
18% Total Tip: $18.10
Total Amount: $118.65
Tip / Person: $1.81
Total / Person: $11.87
19% Total Tip: $19.10
Total Amount: $119.65
Tip / Person: $1.91
Total / Person: $11.97
20% Total Tip: $20.11
Total Amount: $120.66
Tip / Person: $2.01
Total / Person: $12.07
21% Total Tip: $21.12
Total Amount: $121.67
Tip / Person: $2.11
Total / Person: $12.17
22% Total Tip: $22.12
Total Amount: $122.67
Tip / Person: $2.21
Total / Person: $12.27
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images