Question: 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. 
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
Get step-by-step solutions from verified subject matter experts
