Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create an interface that helps a group of people calculate what each of them owe

ID: 3789514 • Letter: C

Question

Create an interface that helps a group of people calculate what each of them owe for a restaurant meal. Picture listed below.

Check please Purpose To review the basics of user interfaces Directions Create an interface for a program that helps a group of people to calculate how much each of them owes for a restaurant meal that looks like the one below. The interface does not need to do anything in response to user clicks Check Divider Total: Tip Percentage: Number of People: Each person pays: KEnter the above information and press Calculate Calculate

Explanation / Answer

Hi,

I think you need to enter the field "PAID BY" otherwise how would you know whom to give money.

To enhance it little further you can divide the amount on a ratio basis instead of dividing equally. Suppose 3 friends Andy, Mandy, Dandy went to pizza parlour and ordered a large pizza with 8 slices. Andy ate only one slice, Mandy ate 5 slices(hungry one!!) and Dandy ate 2 slices and Andy paid for the pizza then the amount should be divided into them in that ratio.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote