Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Two functions needed. The test case function is most important to include. Any language can be used. But recommended python or Java. Split the Tip

Two functions needed. The test case function is most important to include. Any language can be used. But recommended python or Java. image text in transcribed

Split the Tip Input a total dinner amount (ex. $55.40) and the number of guest to split the tab with. Add i 5% gratuity to the total. The function should calculate the total tab (including tip) and as equally as possible distribute the cost of the entire meal between the number of provided guests. (e.g., splitTip (15.16, 3)guestl- $5.06, guest2-$5.05, guest3-$5.05).Whatever logic is used for uneven amounts should be deterministic and testable (all values rounded to cents-2 decimal places) Deliverable: Runnable Source Code of the function and the testcases Report Screenshots of the output showing the red, green and refactor status Description of the output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions