Question: I am running this code and I get this error: Select one for rental type: (B) udget, (D) aily, (W) eeklyRental Code: B Starting Odo

I am running this code and I get this error: Select one for rental type: (B) udget, (D) aily, (W) eeklyRental Code: B Starting Odo Reading:Ending Odo Reading:Traceback (most recent call last): File "rental_car.py", line 65, in odoEnd = int(input('Ending Odo Reading:')) EOFError: EOF when reading a line

I am running this code and I get this error: Select one

www.pcr x ? ctisecure https://codio.com/dday18/it 140-project-1-draft rental car billing 3b2024fod9a41d52d35ab3ft3HI it1098/tree/ren al car py Codio Project File Edit Find View Tools Education Help ,Run current. ?Google . ? ConfeUre rental car.py Callect Custo... X Odometer Reading: " #Prompt.-->"Starting odoStart-? 50 51 52 53 51 #b) Prompt the user to input the ending odometer reading and store it as t Collect Customer Data - Part 1 Prompt"Ending Odometer Reading:" 56 5r 58 59 60 61 62 63 Customer Data Check 1B Chesk H #CUSTOMER DATA CHECK 2 ADD CODE HERE TO PRINT; odoStart #0dat nd #basecharge odoStart-float (input Starting Odo Reading:) oduEndflot(inputEnd ing Odo Reading:) LAST RUN on 7717/2018.0.2004 AM Check 1 failed Output: Select one for rental type: (B) udget, (D) aily, (W) eekly Nunber of Weeks Rented:Rental Code: W Niumher of Weeks Rented: 1 starting Odo Reading:Traceback (nost 65 print('Starting do Reading print'Ending Odo Reading:',odoEnd) print( Base Charge',baseCharge) odostart) 69 Section 2: Calculate thc costs from the customer input 71 rv 73 71 75 T6 File "rental_car-py", line 61, in Ha) Calculate the total mileage M ending odometer reading starting odometer reading # and st re it as the variable totalHiles odostart float(input( Starting 78 Expecled: (B)udget, (D)aily, or (W)eekly rental Nunber ot eeks Rented: 80 81 82 83 81 85 2) Calculate the milcage chargc and store it as the variable milecharge: #3) Code 'B' (budget) mileage charge: $8.25 for each mile driven 44% (65:14)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!