Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using python car_value = 10000 purchase_year = 2011 car_age = 8 driver_age = 23 electric = True emissions_passed = True #You may modify the lines

Using python

car_value = 10000 purchase_year = 2011 car_age = 8 driver_age = 23 electric = True emissions_passed = True

#You may modify the lines of code above, but don't move them! #When you Submit your code, we'll change these lines to #assign different values to the variables. #Georgia's tag renewal policies are unnecessarily #complicated. I've simplified them to make this problem even #doable. They are: # # - Everyone pays $20. # - If you purchased your car before 2013 (in 2012 or earlier), # you also pay 1% of its current value in additional tax. # - If the car is electric, you pay an additional $200 fee. # (This is real.) # - To renew, you must have passed an annual emissions check, # unless your car is electric, or if you're 65 or over and # the car's age is 10 years or older. # #Your code should print one of two messages. If the person #needs to pass an emissions test in order to renew their tag, #it should print, "You must pass an emissions test first." #This would be the message to print if emissions_passed is #False and if they are not eligible for either exemption #mentioned above. # #If the person is eligible to renew their tag, the code should #print: "Your renewal fee is $__.", where __ is the renewal #cost. Round the renewal fee to the nearest integer. This will #be $20, plus $200 if the car is electric, plus 1% of car_value #if the purchase_year is less than or equal to 2012.

#Add your code here!

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_2

Step: 3

blur-text-image_3

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 And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 2 Lncs 13427

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124251, 978-3031124259

More Books

Students also viewed these Databases questions

Question

which ipv 4 adresses is not represented subnet broadcast addresses

Answered: 1 week ago