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

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

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