Question: Collect Customer Data - Part 1 Request Rental Code. Prompt the user to input the Rental Code. Prompt: (B)udget, (D)aily, or (W)eekly rental? Variable:

Collect Customer Data - Part 1 Request Rental Code. Prompt the user to input the Rental Code. Prompt: "(B)udget, (D)aily, or (W)eekly rental? " Variable: rentalCode = ? The code options are: Code Category Rate B budget budget_charge = 40.00 D daily daily_charge = 60.00 W weekly weekly_charge = 190.00 Set the user input equal to rentalCode. rentalCode = input("(B)udget, (D)aily, or (W)eekly rental? ") Request number of days or weeks the car was rented. Prompt: "Number of Days Rented: " OR Prompt: "Number of Weeks Rented: " Variable: rentalPeriod = ? Hint: This input code is similar to the code in the previous step but use a conditional statement to test if the rentalPeriod is a daily or weekly rental then set the user input equal to rentalPeriod. Test your code. Add code to PRINT the rentalCode and rentalPeriod variables to check your work. The following data will be used as input in the first check: rentalCode = 'D' rentalPeriod = 5 Customer Data Check 1A Check It! The following data will be used as input in the second check: rentalCode = 'W' rentalPeriod = 1 Customer Data Check 1B Check It!

Your final output should look like this:

Rental Code: D Rental Period: 5 Starting Odometer: 1234 Ending Odometer: 2222 Miles Driven: 988 Amount Due: $324.40

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!