Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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))

image text in transcribed

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

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

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions

Question

4 The rebuttals to common arguments for protectionism.

Answered: 1 week ago

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago