Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. Collect Customer Data - Part 1
  2. Request Rental Code. Prompt the user to input the Rental Code.
  3. Prompt: "(B)udget, (D)aily, or (W)eekly rental?\n"
  4. Variable: rentalCode = ?The code options are:
  5. Code Category Rate
  6. B budget budget_charge = 40.00
  7. D daily daily_charge = 60.00
  8. W weekly weekly_charge = 190.00
  9. Set the user input equal to rentalCode.
  10. rentalCode = input("(B)udget, (D)aily, or (W)eekly rental?\n")
  11. Request number of days or weeks the car was rented.
  12. Prompt: "Number of Days Rented:\n"
  13. OR
  14. Prompt: "Number of Weeks Rented:\n"
  15. Variable: rentalPeriod = ?
  16. 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.
  17. Test your code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement