What's new

C & C++ Need help guys

purnshtaaaar

Leecher
Joined
Sep 28, 2022
Posts
3
Reaction
2
Points
3

Lets Split the Bill​

After a long time of not seeing your friends you decide to splurge a little and dine at a fancy restaurant. After the dining experience, the bill finally arrives at the table, after which the group decides to split the bill evenly. Instead of manually calculating how much each person has to pay, you all decide to use an app that calculates how much each person has to pay, with the added feature that it also calculates the tip amount based on how satisfied you are with the service!

Create the Program that will calculate the total bill together with the tip, and how much each person in the group will have to pay.

The tipping system of the app relies on a scale of 1-5, each value corresponding to a specific % of the tip based on the total bill

1 - 5% tip
2 - 10% tip
3 - 15% tip
4 - 20% tip
5 - 25% tip
Input
1. Number of People in Group
Description
Input the number of people in the group
Constraints
The input is a whole number
2. Price of Total Bill
Constraints
Input can contain a maximum of 2 decimal values
3. Satisfaction of Service
Description
Input how satisfied you are with the service on a scale of 1 to 5
Constraints
The inputs can only be from the range of 1 to 5
 

Similar threads

Back
Top