Kingston College Department of Computing & Information Technology SBA XXXXXXXXXXPROBLEM SOLVING AND PROGRAMMING PROBLEM SOLVING 1. CIT Vehicle Importing Company needs a program to calculate the final...

Kingston College Department of Computing & Information Technology SBA 2021-2022 PROBLEM SOLVING AND PROGRAMMING PROBLEM
SOLVING 1. CIT Vehicle Importing Company needs a program to calculate the final cost for each vehicle that is imported. As a programmer the company has hired you to develop an algorithm to accomplish this task. The algorithm should request the user to input the make/brand, year of manufacture, age of the vehicle, chassis number and landing cost. The algorithm should calculate the import duty, tax, and final cost. The import duty rate is 15% of land cost, while tax is incurred depending on the age of the vehicle. If vehicle is older than 5 years the tax is calculated at 10% otherwise it is calculated as 5%. All data should be printed in a table format or column format. Do the above for 15 vehicles, make sure at least one is done for each make/brand, for vehicle older than 5 years and for vehicle younger than 5 years. The algorithm should not accept any vehicle age greater than 20. If the vehicle age is greater than twenty then an error messages should be generated until the user has entered a valid age. The program should also generate an error message and request valid data, if the year of manufacture does not correspond with the age entered. If the landing cost is not between 300000 and 800000, the program should also generate an error message and ask for a correct landing cost.
2. Design and execute a trace table that accepts data and print the table showing the information from the algorithm. The table should have at least 10 iterations. Program Implementation 1. Using the programming language Pascal, write program code to implement the algorithm in (1). Note: A cover sheet is required – should contain title, appropriate picture, candidate number, centre number, teacher’s name, etc…
Feb 23, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here