I'm trying to write a program that finds the salvage value of an item after entering the purchase price, annual depreciation, and years of service.
Annual Depreciation= (Purchase Price-Salvage Value)/Years of Service
When inputting 5000, 8, 5.25 I should return 4958.00000