1. Write a class called CarLease which has 5 member variables: cost, residualValue, term, tax, rate...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Write a class called CarLease which has 5 member variables: cost, residualValue, term, tax, rate This class should have a member method getPayment which returns the payment amount after calculating it using the following formula: 1. 1. depreciation = (cost - residualValue) / term interest = (cost + residualValue) * (rate) totalTax = (depreciation + interest) * tax leasePayment = depreciation + interest + total Tax Write a driver which: a. Read 5 inputs via the Scanner (Use the "Test Values") b. Declares/initializes CarLease object C. Outputs the payment using JOptionPane Test Values: Input (Scanner): Capitalized Cost = $25,000 Residual Value = $12,500 Term = 36 Months Tax = 7% Interest Rate = .0029 Output (JOptionPane): Lease Payment = $488 1. Write a class called CarLease which has 5 member variables: cost, residualValue, term, tax, rate This class should have a member method getPayment which returns the payment amount after calculating it using the following formula: 1. 1. depreciation = (cost - residualValue) / term interest = (cost + residualValue) * (rate) totalTax = (depreciation + interest) * tax leasePayment = depreciation + interest + total Tax Write a driver which: a. Read 5 inputs via the Scanner (Use the "Test Values") b. Declares/initializes CarLease object C. Outputs the payment using JOptionPane Test Values: Input (Scanner): Capitalized Cost = $25,000 Residual Value = $12,500 Term = 36 Months Tax = 7% Interest Rate = .0029 Output (JOptionPane): Lease Payment = $488
Expert Answer:
Answer rating: 100% (QA)
Java program that defines the CarLease class with member variables and a getPayment method It also i... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
A paralegal has been served with a court order that requires you to attend at court to produce certain documents and information regarding one of your clients. Do you need your client's consent?...
-
In this lab you will write a class called Time. The Time class will have three data members: hours, minutes, and seconds (all ints). Times will be stored using a 24 hour clock, so 10 AM is stored as...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Find the values of the parameter p > 0 for which the following series converge. In k
-
What If? This problem builds upon the results of Problems 56 and 57. Light travels perpendicularly through a diamond slab, surrounded by air, with parallel surfaces of entry and exit. The intensity...
-
Randall Company manufactures mainframe computers. The prime cost of producing a computer is $300,000 and the conversion cost is $400,000, but the total manufacturing cost is only $600,000. Required:...
-
Use a scatter plot to display the data shown in the table at the left. The data represent the numbers of coaching hours and the hourly fees (in dollars) of 12 cricket coaches. Organize the data using...
-
The following data were extracted from the accounting records of Meniscus Company for the year ended June 30, 2008: Merchandise inventory, July 1, 2007 . . . . . . . . . . . . $ 183,250 Merchandise...
-
The Cowboy Saddle Company manufactures plastic saddles that are used in the assembly process of their Mr. Ed doll. If the run time for producing a batch of saddles is 4 days, the rate of production...
-
The Gilbert Air-Conditioning Company is considering the purchase of a special shipment of portable air conditioners manufactured in Japan. Each unit will cost Gilbert $80, and it will be sold for...
-
There are 2 projects in the intake process. There is only enough financial capital available to do 1 of the 2, though it might later be possible to do the other one. The company is also concerned...
-
Think of products at your home or grocery store. Identify two brands that you think use packaging in an effective way. Explain specifically why you think the packaging is effective.?
-
Your shares in Tesla are taking a bath today, and the outlook isn't good. To lower your already aggressive risk profile, you decide to sell all your shares. To guarantee order execution, what type of...
-
If you receive monthly payments of $20 in perpetuity. The first payment is made today. The annual interest rate is 8.5 % APR monthly compounded. What is the present value of your earnings?
-
Explain the following Booting Up / Booting the hypervisor Timekeeping in operating systems CPU scheduling for multiprocessing systems ?
-
What habits or patterns of spending did you discover that you were not previously aware of, such as being surprised at how much you spent on a specific item or category? Were you honest with...
-
Let G and H be two different finite groups. Then which of the following is necessarily true ? If class equations of groups G and Hare same. Then they are isomorphic If G and H are of same cardinality...
-
How can a promoter avoid personal liability for pre-incorporation contracts?
-
Ken paid the following amounts for interest during 2012: Qualified interest on home mortgage...........................................$4,700 Auto loan...
-
Tom has a successful business with $100,000 of income in 2012. He purchases one new asset in 2012, a new machine which is 7-year MACRS property and costs $25,000. If you are Tom's tax advisor, how...
-
Bea Jones (age 32) moved from Texas to Florida in December 2011. She lives at 654 Ocean Way, Gulfport, FL 33707. Bea's Social Security number is 466-78-7359 and she is single. Her earnings and income...
-
Find five interesting facts in Table 1.1. TABLE 1.1 Basic Characteristics of Selected Countries GNP per capita Index of Openness Goods & Services 2009 Population Area (millions) (1,000s sq. km.) Avg....
-
Find five interesting facts in Tables 1.4 and 1.5. DATA FROM TABLE 1.5 TABLE 1.4 Broad Categories of Exports of Selected Countries, 2010 SITC Code Product United United States Germany Japan China...
-
Compare the export rankings of the top ten leading exports of 1999 with the rankings of the top ten leading exports in 2010 (see Table 1.3). Discuss some of the reasons why these rankings have...
Study smarter with the SolutionInn App