Question: A restaurant uses a system to make a recommendation how much to tip the server. The tip should be 15% of the check, with a

A restaurant uses a system to make a recommendation how much to tip the server. The tip should be 15% of the check, with a minimum of $2. For example, if the check is $25.98, this function should return "Tip is $3.897"

restaurant_tip(100) 'Tip is $15.0' restaurant_tip(10) 'Tip is $2.00' restaurant_tip(5) 'Tip is $2.00'

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!