Question: Hello! I have the Python Code already but I am in need of part a, b, and c! Below is the python code: from sys

Hello! I have the Python Code already but I am in need of part a, b, and c! Below is the python code:

from sys import exit #dictionary to store to vehicles type and texes based on their vehicle code vehicles = {'m':'Motorcycle','c':'Passenger Car','s':'Sports Utility Vehicle','t':'Pick-up Truck'} taxes = {'m':3,'c':5,'s':7,'t':8} print("AUTO TAX BILL ") print("Enter Vehicle type m for Motorcycle c for Passenger Car s for Sports Utility Vehicle t for Pick-up Truck") v_code = input() v_code=v_code.lower() tax = 0.0 #checking if code is valid if v_code not in vehicles.keys(): print("Wrong Vehicle Code") exit() value = int(input("Enter Assesed value of the vehicle :")) #checking price to be valid if value

#calculating taxes tax = value*(taxes.get(v_code)/100) #Output with formatting print('Tax amount for %s at %d is $ %f' %(vehicles.get(v_code),taxes.get(v_code),tax))

Hello! I have the Python Code already but I am in need

Program specifications The local town needs a program that will help the tax clerks calculate a town r auto tax bill The tax is calculated by multiplying the assessed vahue of the vehicle by the tax rate. The appropriate tax rate is based upon the category of vehicle shown in the table below. The program should allow the tax clerk to enter the assessed dollar amount fora esident's vehicle category code. The program should then display the following The tax amount for a vehicle-category amounit assessed at assessed-amount is S tav- The italicized portion should be replaced by the appropriate values and all output sh be correctly formatted. If a value less than zero is entered for the assessed amount, or any code other than those below is entered the program should display an error message and no calculations should be performed ould Tax Rate 5% 5% 7% 8% Code Vehicle Type Motorcycle Passenger Car Sports Utlity Vehicle Pick-up Truck include following a) Pseudocode for your solution b) Data dictionary listing your variable names, date type, and brief description for each variable you use) c) Test data and expected outcomes (3 minimum sets) d) Copy of the py file containing your python code

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!