Draw a flowchart that presents the steps of the algorithm

Assignment Help Python Programming
Reference no: EM132850077

Utopia Customs Authority has employed you to develop an application to help their customers calculate the customs for imported vehicles. The customs value for an imported vehicle is calculated based on the vehicle's market price and engine capacity, according to the following rules:

Category A (Engine capacity up to 1600 cc): 25% of the vehicle's market price.

Category B (Engine capacity more than 1600 cc and up to 2000 cc): 50% of the vehicle's market price.

Category C (Engine capacity more than 2000 cc): 75% of the vehicle's market price.

A depreciation discount can be applied based on the year the vehicle was manufactured. For each previous year, a depreciation discount of 1% of the market price is applied. For example, a vehicle manufactured in 2021 gets no discount. A vehicle manufactured in 2020 gets 1% discount. A vehicle manufactured in 2019 gets 2% discount, and so on. The maximum allowed depreciation discount is 10%.
You are required to design and write an interactive program that prompts the user for the vehicle's market price, engine capacity and manufacture year; and displays the initial customs amount, depreciation discount, and final customs amount. The program should allow the user to calculate the customs again and should continue until the user decides to quit.

Review the sample run below to clearly understand all requirements.

Utopia Vehicle Customs Calculator --------------------------------- Enter the market price: 20000 Enter the engine capacity: 1500 Enter the manufacture year: 2018 Initial customs amount (category A): $5,000 Depreciation discount (3 years): $600 Final customs amount: $4,400 Calculate for another vehicle (y/n)? y Enter the market price: 35000 Enter the engine capacity: 2000 Enter the manufacture year: 2015 Initial customs amount (category B): $17,500 Depreciation discount (6 years): $2,100 Final customs amount: $15,400 Calculate for another vehicle (y/n)? y Enter the market price: 21500 Enter the engine capacity: 3600 Enter the manufacture year: 2009 Initial customs amount (category C): $16,125 Depreciation discount (10+ years): $2,150 Final customs amount: $13,975 Calculate for another vehicle (y/n)? n Have a nice day!

Task 1 Draw a flowchart that presents the steps of the algorithm required to perform the task specified. It is recommended to use Draw.io to draw your flowchart.

Task 2 Implement your algorithm in Python. Comment on your code as necessary to explain it clearly.

Task 3 Select at least three sets of test data that will demonstrate the normal operation of your program; that is, test data that will demonstrate what happens when a valid input is entered. Select two sets of test data that will demonstrate the abnormal operation of your program; that is, test data that will demonstrate what happens when an invalid input is entered.

Set it out in a tabular form as follows: test data type, test data, the reason it was selected, the output expected due to using the test data, and finally a screenshot of the output actually observed when the test data is used. It is important that the output listings (i.e., screenshots) are not edited in any way

Attachment:- PYTHON_TASK.rar

Reference no: EM132850077

Questions Cloud

What is the Payback Period of Projects A and B : The firm's required rate of return is 10%. The firm uses 3 years as the cutoff for payback period method. What is the Payback Period of Projects A and B
Calculate the contribution to profit : Thornton Boot Co. sells men's, women's, and children's boots. Calculate the contribution to profit. Determine whether to eliminate the children's department
Reflect on the agile process and the influence : Reflect on the Agile process and the influence on the individual's professional development within the method used in this subject with particular emphasis
What should be recorded as the carrying value : The prevailing rate of interest for a note of this type on January 2, 2019 was 10%. What should be recorded as the carrying value of the note receivable
Draw a flowchart that presents the steps of the algorithm : Draw a flowchart that presents the steps of the algorithm required to perform the task specified. It is recommended to use Draw.io to draw your flowchart
Calculate the consumption ratios for the four drivers : Zapato Company produces two types of boots: vaquero and vaquera. Calculate the consumption ratios for the four drivers
Analysing an accounting information system : Analysing an Accounting Information System - Appraise the risks inherent in computer-based systems/ERP, including the role of ethics and the various internal
Create the pre-acquisition entries at June : The dividend liability at 1 July 2020 was paid in September 2020. Create the pre-acquisition entries at 30 June 2021
Develop a way to solve lloyd current problem : Which organizational culture type is Lloyd Landscaping In its current (pre-franchise) tom and what organizational characteristics lead you to that determination

Reviews

Write a Review

Python Programming Questions & Answers

  Program to keep track its population bmi

Program to keep track its population's BMI - high BMI population and recommend appropriate diet and exercise for them

  Create a single line plot with two line for lists

BIO380: Practical Computing for Scientists Assignment - create a single line plot with two line for lists that track the Prey and Predadator populations

  Write test cases for code

Write file that will import the modules unittest, unittest.mock, zipfile and bb and/or parts of these modules 3. You will be mocking the following:

  Build a program to create two types of utility bills

Define a calculate_charge method, which asks the user to enter kilowatt hours used and uses it to calculate total charge.

  Code for the haunted house game

Improve the game by adding more features, for example you can examine more items, more props etc. You may implement this using more lists regarding items and props, remember, you should check if the object is being carried or in the location of th..

  Create a python program that will produce the third letter

Create a Python program that will produce the following output: Given the following sentence, print out every third letter.

  Design and development - research design

Design and Development/ Research Design (Explanation of whole procedure, dataset collection, data cleansing, data preprocessing, converting into binary dataset

  FINS3648 Banking, Finance and Technology Assignment

FINS3648 Banking, Finance and Technology Assignment Help and Solution, University of New South Wales - Assessment Writing Service

  Write a program in python that requests a user to enter

Write a program in Python that requests a user to enter: percentage of students who received higher than 90 points.

  Calculate the total displacement of the system of springs

Calculate the total displacement of the system of springs - You are free to use any linear system solver from chapter 6, including the solvers that are part of the SciPy and/or numpy packages.

  COSC 2670 Practical Data Science with Python Assignment

COSC 2670 Practical Data Science with Python Assignment Help and Solution, RMIT University - Assessment Writing Service - Retrieving and Preparing the Data

  Design a python program that prompts the user to enter

Design a PYTHON program that prompts the user to enter a number and then you will build a multiplication table of that size.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd