Tip
Tip is an additional amount of money, which is paid by people, to another people for their services.
Let
\(B\) = Bill
\(R\) = Tip Percent
\(N\) = Number of People
\(T\) = Tip
\(P\) = Total Amount
\(t\) = Tip per person
\(p\) = 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