Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The straight line method for computing the yearly depreciation of the value of an asset is given by the formula D = price - salvage/Years

image text in transcribed
The straight line method for computing the yearly depreciation of the value of an asset is given by the formula D = price - salvage/Years Write a program to compute the yearly depreciation for an item purchase price, salvage value and expected years of service are entered by the user. Construct the program so it will run four times before it terminates. Statement Required: Input information from the user, output, loop control you must use a for loop. Be sure to run all the test cases. Sample Output: Run #1 Enter price 250.00 Salvage Value 35.00 Enter Estimated Life in years 8 Annual Depreciation = 26.88 Run #2 Enter price 2425.00 Salvage Value 470.00 Enter Estimated Life in years 6 Annual Depreciation = 325.83 Run #3 Enter price 1162.00 Salvage Value 625.00 Enter Estimated Life in years 5 Annual Depreciation = 107.40 Run #4 Enter price 9654.33 Salvage Value 100.00 Enter Estimated Life in years 12 Annual Depreciation = 769.19

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How To Build A Million Dollar Database

Authors: Michelle Bergquist

1st Edition

0615246842, 978-0615246840

More Books

Students also viewed these Databases questions

Question

=+to live and work wherever he or she wants?

Answered: 1 week ago

Question

=+How will this affect the recruiting process?

Answered: 1 week ago