Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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?\n"
- 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?\n")
- Request number of days or weeks the car was rented.
- Prompt: "Number of Days Rented:\n"
- OR
- Prompt: "Number of Weeks Rented:\n"
- 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.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement