Tip
Tip is additional an amount of money, which is paid by people, to another people for their services.
Let
= Bill
= Tip Percent
= Number of People
= Tip
= Total Amount
= Tip per person
= Total per person.
We have
Example 1
Input
Bill = 350
Tip Percent = 10%
Number of People = 4
Output
Tip = 35
Total Amount = 385
Tip per Person = 8.75
Total per Person = 96.25
Example 2
Input
Bill = 470
Tip Percent = 15%
Number of People = 5
Output
Tip = 70.5
Total Amount = 540.5
Tip per Person = 14.1
Total per Person = 108.1