subject

import sysrentalCode = input('(B)udget, (D)aily, or (W)eekly rental?\n')if rentalCode == 'B' or rentalCode == 'D':rentalPeriod = int(input('Number of Days Rented:\n'))else:rentalPeriod = int(input('Number of Weeks Rented:\n'))daysRented = rentalPeriod#Assigning a dollar amount (double floating number) to the varying ratesbudget_charge = 40.00daily_charge = 60.00weekly_charge = 190.00#NEED TO RIGHT HERE WHAT I HAVE DONE ON THE BOTTOM. if rentalCode == 'B':baseCharge = daysRented * budget_chargeelif rentalCode == 'D':baseCharge = daysRented * daily_chargeelif rentalCode == 'W':baseCharge = daysRented * weekly_chargeprint(rentalCode)print (rentalPeriod)odoStart = input('Starting Odometer Reading: \n')odoEnd = input('Ending Odometer Reading: \n')print(odoStart)print(odoEnd)tot alMiles = int(odoEnd) - int(odoStart)print(totalMiles)if rentalCode == 'B':mileCharge = 0.25 * = totalMiles/daysRentedif rentalCode == 'D' and averageDayMiles <= 100:extraMiles = 0if averageDayMiles > 100 and rentalCode == 'D':extraMiles = averageDayMiles - 100mileCharge = 0.25 * extraMiles * rentalPeriodweeksRented = rentalPeriodaverageMiles = totalMiles/weeksRentedif rentalCode == 'W' and averageDayMiles > 900:mileCharge = weeksRented * 100.00elif rentalCode == 'W' and averageDayMiles <= 900:mileCharge = 0amtDue = baseCharge + mileChargeprint('Rental Summary')print('Rental Code: '+str(rentalCode))print('Rental Period: '+str(rentalPeriod))print('Starting Odometer: '+odoStart)print('Ending Odometer: '+odoEnd)print('Miles Driven: '+str(totalMiles))print('Amount Due: '+'${:,.2f}'.format(amtDue))#4) Collect Mileage Information:#a) promet the user to input the stacting odometer reading and store it as the variable odoStart#Prompt -->"Starting Odometer Reading:\n"# odoStart = 7#b) Promp the user to input the ending odometer reading and store it as the variable odoEnd#Prompt -->"Ending Odometer Reading:\n"# odoEnd = ?This is the error code I am getting:--->(B)udget, (D)aily, or (W)eekly rental? Number of Days Rented: D 5 Starting Odometer Reading: Ending Odometer Reading: 1234 2222 988 Rental Summary Rental Code: D Rental Period: 5 Starting Odometer: 1234 Ending Odometer: 2222 Miles Driven: 988 Amount Due: $422.00

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:00
Donna and her team of five have invented a new gadget for the science exhibition in their college. which intellectual property right will protect their invention?
Answers: 1
question
Computers and Technology, 23.06.2019 00:50
Representa os dados de um banco de dados como uma coleç? o de tabelas constituídas por um conjunto de atributos, que definem as propriedades ou características relevantes da entidade que representam. marque a alternativa que representa o modelo descrito no enunciado. escolha uma:
Answers: 3
question
Computers and Technology, 23.06.2019 20:00
Me ajude por favor , coloquei uma senha e não consigo tira-la no chorme
Answers: 2
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
You know the right answer?
import sysrentalCode = input('(B)udget, (D)aily, or (W)eekly rental?\n')if rentalCode == 'B' or rent...
Questions
question
Mathematics, 28.10.2020 04:40
question
Mathematics, 28.10.2020 04:40
question
Mathematics, 28.10.2020 04:40
question
Mathematics, 28.10.2020 04:50
Questions on the website: 13722360