Question: PYTHON In this lab, you complete a partially written Python program that computes hotel guest rates at Cornwall's Country Inn. Cornwall.py How many 1 P
PYTHON
In this lab, you complete a partially written Python program that computes hotel guest rates at Cornwall's Country Inn. Cornwall.py How many 1 P Cornwall.py This progran computes hotel guest rates 2 # Input: Days in stay and meals included el 3: # Output: Hotel guest rate The program is described in Chapter 9, Exercise 11, in Programming Logic and Design. In this program, you should include a function named conputeRate). It should accept the number of days and calculate the rate at $99.99 per day. 4 51# Write conputeRate function here 7 if nanemain 9dayString input( "How many days do you plan to stay?" rate -.0e 1 days int (dayString) 11 question tnput("Do you want a neal plan? Y or N") 12 13 14 # then call the computeRate() functio It should optionally include a code for a meal plan. If the code is A, three meals per day are included, and the price is $169.00 per day. If the code is C, breakfast is included, and the price is $112.00 per day. All other codes are invalid. # Figure out which arguments to pass to the iconputeRate() function and The function returns the rate to the calling program where it is displayed Ruri Code Test Grade OType here to seardh
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
