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, 22.06.2019 03:00
Consider this data sequence: "3 11 5 5 5 2 4 6 6 7 3 -8". any value that is the same as the immediately preceding value is considered a consecutive duplicate. in this example, there are three such consecutive duplicates: the 2nd and 3rd 5s and the second 6. note that the last 3 is not a consecutive duplicate because it was preceded by a 7. write some code that uses a loop to read such a sequence of non-negative integers , terminated by a negative number. when the code finishes executing, the number of consecutive duplicates encountered is printed. in this case, 3 would be printed. assume the availability of a variable, stdin, that references a scanner object associated with standard input. that is, stdin = new scanner(system.in); is given.
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
Which are examples of note-taking tools? check all that recording devices sticky notes digital highlighters paper flags highlighting pens digital displays digital flags
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
Whats are the different parts of no verbal comunication, especially body language?
Answers: 3
question
Computers and Technology, 22.06.2019 17:30
How do you make a lenny face? plz, brailiest to who can answer first.
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, 04.07.2020 21:01
question
Mathematics, 04.07.2020 21:01
Questions on the website: 13722363