Almost all items that we acquire, depreciate over several years. The yearly depreciation in value D...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Almost all items that we acquire, depreciate over several years. The yearly depreciation in value D for an item is often computed using the formula: D = (P-S)/Y where P is the purchase price in $, Y is the number of years, and S is the salvage value in $ at the end of Y years. Write a Java program, named CCCS300_A1_Q2, that that prints a "Welcome to the Depreciation calculator!" message, prompts user to enter all three values of P, S, and Y as a single input separated by spaces between them (using a Scanner object). The program then computes the yearly depreciation in $, and yearly depreciation in %, and number of years for salvage value to be 10% of purchase price of the item. Your program must print the results rounded to one decimal digit using the Math.round() function. Hint: Yearly depreciation % = (yearly depreciation / purchase price) * 100 %. Sample output screen: Welcome to the Depreciation calculator! Enter values (Purchase price, Salvage value, and Years): 300 25 5 Yearly depreciation = $55.0 Yearly depreciation = 18.3% Number of years for salvage value to be 10% of purchase price = 4.9 years Almost all items that we acquire, depreciate over several years. The yearly depreciation in value D for an item is often computed using the formula: D = (P-S)/Y where P is the purchase price in $, Y is the number of years, and S is the salvage value in $ at the end of Y years. Write a Java program, named CCCS300_A1_Q2, that that prints a "Welcome to the Depreciation calculator!" message, prompts user to enter all three values of P, S, and Y as a single input separated by spaces between them (using a Scanner object). The program then computes the yearly depreciation in $, and yearly depreciation in %, and number of years for salvage value to be 10% of purchase price of the item. Your program must print the results rounded to one decimal digit using the Math.round() function. Hint: Yearly depreciation % = (yearly depreciation / purchase price) * 100 %. Sample output screen: Welcome to the Depreciation calculator! Enter values (Purchase price, Salvage value, and Years): 300 25 5 Yearly depreciation = $55.0 Yearly depreciation = 18.3% Number of years for salvage value to be 10% of purchase price = 4.9 years
Expert Answer:
Answer rating: 100% (QA)
Heres an example of how you could write the Java program to achieve this java import javautilScanner ... View the full answer
Related Book For
South-Western Federal Taxation 2020 Comprehensive
ISBN: 9780357109144
43rd Edition
Authors: David M. Maloney, William A. Raabe, James C. Young, Annette Nellen, William H. Hoffman
Posted Date:
Students also viewed these programming questions
-
Find the equations of the parabolas satisfying the given conditions. The vertex of each is at the origin. Directrix y = 0.16
-
A square insulating sheet 80.0 cm on a side is held horizontally. The sheet has 7.50 nC of charge spread uniformly over its area (a) Calculate the electric field at a point 0.100 mm above the center...
-
What role does bank activity diversification play in the ability of a bank to exploit economies of scale and scope? What remains as the limitation to creating potentially greater benefits?
-
Jack DeCoster owned Quality Egg, LLC, an Iowa egg production company. Jacks son, Peter DeCoster, served as the companys chief operating officer. Jack also owned and operated several egg production...
-
Presented below are the closing entries for Lee College, a private not-for-profit, for the year ended December 31, 2012. Assume the January 1, 2012, net asset balances are as follows: $1,000,000...
-
Data manipulation language (DML) provides a number of capabilities that allow you to build custom queries of existing data. What are two capabilities you might use to limit the data you select or...
-
Which series has the highest beta. BraveNewCoin Liquid Index for Bitcoin 1D BNC Trading Brave Ne Yellow Green Blue Orange
-
Use python to create 3 different plots of the following functions: Create 3 plots and limit the horizontal x-axis to n = 5, 15, 50. On each of the 3 plots, show the above 3 functions. On the first...
-
Suppose McDonald's 2022 financial statements contain the following selected data (in millions). Current assets $3,356.0 Interest expense $461.0 Total assets 30.164.0 Income taxes 1,924.0 Current...
-
You will create a portfolio (group) of art samples and directions for these that will be appropriate for use in an Early Childhood setting. The portfolio will be organized for your professional use...
-
Assume a company has two manufacturing departments - Assembly and Fabrication. The company considers all of its manufacturing overhead costs to be fixed costs. The first set of data below is budgeted...
-
Find the slope of the secant between the values x = defined by the function: 1 and x = p(x) = x36x+10x +8. 2 on the curve
-
Calculate, as a percentage of revenue, how much the Millers would keep in the business for growth ( i . e . , working capital and the purchase of non - current assets ) , and how much would be used...
-
1. the focus of controls in the finance and investment cycle is on a. proper authorizations and competent personnel b. computer controls over transactions c. physical security of assets d....
-
Question 6.10 Current and deferred tax worksheets and tax entries From the hip Ltd?s statement of profit or loss for the year ended 30 June 2007 and extracts from its statements of financial position...
-
Ray and Carin are partners in an accounting firm. The partners have entered into an arm's length agreement requiring Ray to purchase Carin's partnership interest from Carin's estate if she dies...
-
Clario, S.A., a Peruvian corporation, manufactures furniture in Peru. It sells the furniture to independent distributors in the United States. Because title to the furniture passes to the purchasers...
-
Donald owns a wide variety of commercial rental properties held in a single member LLC. Donalds LLC reports rental income of $1,500,000. The LLC pays no W2 wages; rather, it pays a management fee to...
-
How can environmental agents that do not cause gene mutations contribute to cancer?
-
With regard to genotypes, what is a true-breeding organism?
-
With regard to biological evolution, which of the following statements is incorrect? Explain why. A. During its lifetime, an animal evolves to become better adapted to its environment. B. The process...
Study smarter with the SolutionInn App