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 17:00
Match the following. 1. show grouping of word processing tasks that can be performed quick access toolbar 2. shortcut location for commonly used elements scroll bars 3. organized commands used to modify documents ribbon 4. used to align and measure content in a word screen zoom bar 5. vertical and horizontal bars that are used to navigate through a document contextual tabs 6. displays the name of the document in use ruler 7. allows users to enlarge or shrink a visual of a word document title bar
Answers: 2
question
Computers and Technology, 22.06.2019 21:00
Write a method so that the main() code below can be replaced by the simpler code that calls method original main(): public class calcmiles { public static void main(string [] args) { double milesperhour; double minutestraveled; double hourstraveled; double milestraveled; milesprhour = scnr.nextdouble(); minutestraveled = scnr.nextdouble(); hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; system.out.println("miles: " + milestraveled); } }
Answers: 2
question
Computers and Technology, 23.06.2019 01:50
Free points just awnser this. what should i watch on netflix
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
On early television stations, what typically filled the screen from around 11pm until 6am? test dummies test patterns tests testing colors
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, 22.09.2021 14:20
question
Mathematics, 22.09.2021 14:20
question
French, 22.09.2021 14:30
Questions on the website: 13722363