Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Businesses fixed assets, such as buildings, equipment, machinery, and furniture, depreciate over the years of usage. The yearly depreciation in value D for an asset
Businesses fixed assets, such as buildings, equipment, machinery, and furniture, depreciate over the years of usage. The yearly depreciation in value D for an asset is usually computed using the formula: D = (P-5)/Y where P is the asset purchase price in $, S is the salvage value in $, and Y is the number of years the asset is used. Write a Java program, named A1_02, which: 1. Display a welcome message. 2. Prompts the user to enter the three values in the same order (i.e., P, S, and Y) as a single input separated by spaces between them. 3. Computes the yearly depreciation in $, and yearly percentage depreciation, and number of years the value gets depreciated to 50% of purchase price of the asset. Your program must print the results in two decimal digits rounded. 4. Display a farewell message, so that the user knows that the program has terminated normally, example Thank you for using Asset depreciation tool. See you next time. Welcome to Asset depreciation tool: Enter the values (Price, Salvage value, and Years used) with space between them: 15000 1000 8 Yearly depreciation $1750.0 Yearly depreciation % = 11.67% Number of years for salvage value to become 50% of purchase price 4.29 years Thank you for using Asset depreciation tool. See you next time
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started