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!
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...
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 3 images
Recommended textbooks for you
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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
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
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY