Question: Using Python only Question You have been in a fancy restaurant with four of your best friends. All the individual bills are brought to the

Using Python only

Question

You have been in a fancy restaurant with four of your best friends. All the individual bills are brought to the table and it is time to add the tip and to compute everyones share. Since nobody ordered anything extravagantly expensive, you decide that everyone will pay an equal share of the bill.

Inside your program, you have to declare eight variables: one for each of the names and one for each of the bills. Assume the group has five people. Request names of the five attendees and store them in variables name1, , name5. Then assign bills for each person and store each of them in the corresponding variables: bill1, ,bill5. Print out both of those sets of variables. Next ask for input for the tip percentage and compute and print the total bill and the amount each person must pay.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!