Question: Function Name: datePlanner ( ) Parameters: budget ( int ) Returns: dates ( str ) Description: The lovebirds Ryan and Kelly have started dating again,
Function Name: datePlanner
Parameters: budget int
Returns: dates str
Description: The lovebirds Ryan and Kelly have started dating again, but they aren't quite sure
where to go out every day and it is up to you to save their relationship!
Create a function called datePlanner that takes in a budget int and plans different dates.
There are three types of dates: Travel, Dinner, and Stay In Travel costs Dinner costs and
Staying in costs While there is still budget remaining, calculate which dates to go on Choose
the most expensive date you can afford each time, and finally append the dates to a string format
ted with commas make sure there are no extra commas at the end If there is money left, print
out "You have dollars dollars left over!" After that, return the list of dates you planned. If
you cannot afford any dates, return No Dates".
datePlanner
You have dollars left over!
Dinner, Stay In Stay In Stay In
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
