Friends share a restaurant bill equally and add a tip. Write the algorithm in pseudocode, then the program SplitBill: read the bill, the tip in percent and the number of people; print the bill, the tip, the total and what each person pays, all with 2 decimals.
For the input
186.50 15 4
the program prints
Bill: 186.50
Tip (15%): 27.98
Total: 214.48
Each of 4 pays: 53.62
Trace your algorithm by hand for 100 10 4 before running it.