Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions