Question: MATLAB please help Functions 9. Create a function called myBillDivider that has the inputs bill, tipPercent, and numPeople and the outputs actualAmt and roundedAmt. This
Functions 9. Create a function called "myBillDivider that has the inputs "bill," "tipPercent," and "numPeople" and the outputs "actualAmt and roundedAmt. This function should calculate the exact amount per person needed given a bill amount, tip percentage, and number of people assuming the people pay equally. tipPercent is a decimal-point number between 0 and 1. roundedAmt is the nearest integer to the actualAmt. Use predefined function "round" to calculate the rounded amount. (3.0)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
