1) TopChoice Car Leasing Company (TCL) provides services of car leasing to employees of various organisations in the form of salary packaging. Employees have the choice of leasing a vehicle for a fixed amount under a flexible lease term and the cost of vehicle leasing can be deducted from the employee's pay check. At the end of each year of the lease term, employee can make an offer to purchase the leased vehicle based on the residual value of the vehicle after depreciation. There are two types of vehicles available for lease, sedan and SUV. TCL depreciates sedan by a 10% rate and SUV vehicles are depreciated at a 11% rate. Hence, they need a depreciation calculator. For instance, a sedan vehicle worth $25,000 will be valued at only $16,402.50 in 4 years. For a SUV vehicle worth $45,000, the depreciated value will be $28,234.01 in 4 years. You are to write a program to calculate a depreciation schedule for the leased vehicle. The inputs are new vehicle cost and if it is for a sedan or SUV and the number of years in the schedule. Your program should select the depreciation rate depending on the vehicle type and trap any invalid input. Each row in the depreciation schedule should contain the year number, the depreciation amount and the current residual value of the vehicle after depreciation. The program should calculate depreciation for different vehicles until user enters a value of zero for the initial vehicle cost. When implemented, a sample output of the program with the following inputs should look as in the figure below. Enter the initial vehicle cost $: 25000 Enter the number of years for the schedule: 4 Enter the vehicle type Sedan or SUV? S - Sedan or V - SUV S Depreciation Amount Current Value of Vehicle 22500.00 20250.00 Year 2500.00 2250.00 2 3 2025.00 1822.50 18225.00 16402.50 4 Vehicle depreciation rate: 0.10 Total depreciation at the end of schedule: $8597.50 Enter the initial cost of the next vehicle $: 45000 Enter the number of years for the schedule: 4 Enter the vehicle type Sedan or SUV? S - Sedan or V - SUV V Depreciation Amount Current Value of Vehicle 40050.00 35644.50 Year 4950.00 4405.50 3920.89 3489.60 31723.60 28234.01 3 4 Vehicle depreciation rate: 0.11 Total depreciation at the end of schedule: $16765.99 Enter the initial cost of the next vehicle $: 0 Thank you for using the depreciation schedule!

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Task Description:
Section A - SELECT ONLY ONE TASK TO IMPLEMENT FROM THIS SECTION
1) TopChoice Car Leasing Company (TCL) provides services of car leasing to
employees of various organisations in the form of salary packaging.
Employees have the choice of leasing a vehicle for a fixed amount under a
flexible lease term and the cost of vehicle leasing can be deducted from the
employee's pay check. At the end of each year of the lease term, employee
can make an offer to purchase the leased vehicle based on the residual value
of the vehicle after depreciation. There are two types of vehicles available for
lease, sedan and SUV. TCL depreciates sedan by a 10% rate and SUV
vehicles are depreciated at a 11% rate. Hence, they need a depreciation
calculator.
For instance, a sedan vehicle worth $25,000 will be valued at only $16,402.50
in 4 years. For a SUV vehicle worth $45,000, the depreciated value will be
$28,234.01 in 4 years.
You are to write a program to calculate a depreciation schedule for the leased
vehicle. The inputs are new vehicle cost and if it is for a sedan or SUV and the
number of years in the schedule. Your program should select the depreciation
rate depending on the vehicle type and trap any invalid input.
Each row in the depreciation schedule should contain the year number, the
depreciation amount and the current residual value of the vehicle after
depreciation. The program should calculate depreciation for different vehicles
until user enters a value of zero for the initial vehicle cost.
When implemented, a sample output of the program with the following inputs
should look as in the figure below.
Enter the initial vehicle cost $: 25000
Enter the number of years for the schedule: 4
Enter the vehicle type Sedan or SUV? S - Sedan or V - SUV S
Depreciation Amount Current Value of Vehicle
22500.00
Year
1
2500.00
2
2250.00
20250.00
3
2025.00
18225.00
4
1822.50
16402.50
Vehicle depreciation rate: 0.10
Total depreciation at the end of schedule: $8597.50
Enter the initial cost of the next vehicle $: 45000
Enter the number of years for the schedule: 4
Enter the vehicle type Sedan or SUV? S - Sedan or V - SUV V
Depreciation Amount Current Value of Vehicle
40050.00
Year
1
4950.00
2
4405.50
35644.50
3
3920.89
31723.60
3489.60
28234.01
Vehicle depreciation rate: 0.11
Total depreciation at the end of schedule: $16765.99
Enter the initial cost of the next vehicle $: 0
Thank you for using the depreciation schedule!
2
Transcribed Image Text:Task Description: Section A - SELECT ONLY ONE TASK TO IMPLEMENT FROM THIS SECTION 1) TopChoice Car Leasing Company (TCL) provides services of car leasing to employees of various organisations in the form of salary packaging. Employees have the choice of leasing a vehicle for a fixed amount under a flexible lease term and the cost of vehicle leasing can be deducted from the employee's pay check. At the end of each year of the lease term, employee can make an offer to purchase the leased vehicle based on the residual value of the vehicle after depreciation. There are two types of vehicles available for lease, sedan and SUV. TCL depreciates sedan by a 10% rate and SUV vehicles are depreciated at a 11% rate. Hence, they need a depreciation calculator. For instance, a sedan vehicle worth $25,000 will be valued at only $16,402.50 in 4 years. For a SUV vehicle worth $45,000, the depreciated value will be $28,234.01 in 4 years. You are to write a program to calculate a depreciation schedule for the leased vehicle. The inputs are new vehicle cost and if it is for a sedan or SUV and the number of years in the schedule. Your program should select the depreciation rate depending on the vehicle type and trap any invalid input. Each row in the depreciation schedule should contain the year number, the depreciation amount and the current residual value of the vehicle after depreciation. The program should calculate depreciation for different vehicles until user enters a value of zero for the initial vehicle cost. When implemented, a sample output of the program with the following inputs should look as in the figure below. Enter the initial vehicle cost $: 25000 Enter the number of years for the schedule: 4 Enter the vehicle type Sedan or SUV? S - Sedan or V - SUV S Depreciation Amount Current Value of Vehicle 22500.00 Year 1 2500.00 2 2250.00 20250.00 3 2025.00 18225.00 4 1822.50 16402.50 Vehicle depreciation rate: 0.10 Total depreciation at the end of schedule: $8597.50 Enter the initial cost of the next vehicle $: 45000 Enter the number of years for the schedule: 4 Enter the vehicle type Sedan or SUV? S - Sedan or V - SUV V Depreciation Amount Current Value of Vehicle 40050.00 Year 1 4950.00 2 4405.50 35644.50 3 3920.89 31723.60 3489.60 28234.01 Vehicle depreciation rate: 0.11 Total depreciation at the end of schedule: $16765.99 Enter the initial cost of the next vehicle $: 0 Thank you for using the depreciation schedule! 2
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY