18. The lump sum S to be paid when interest on a loan is compounded annually...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
18. The lump sum S to be paid when interest on a loan is compounded annually is given by S=P[1 + i]", where P is the principal invested, i is the interest rate, and n is the number of years. Write a program that will plot the amount S as it increases through the years from 1 to n. The main script will call a function to prompt the user for the number of years (and error-check to make sure that the user enters a positive integer). The script will then call a function that will plot S for years 1 through n. It will use 0.05 for the interest rate and $10,000 for P. 1 2 3 4 in 00 function plot LumpSum(n) int=0.05; 5 S=P*(1+int).^H; 6 plot (H,S,'r-*') xlabel('Year') 7 8 9 0 P=10^4; H=1:n; ylabel('Lump Sum S') title('plot of 5 for years 1 thorugh n') end Command Window Error in Hw_4_Problem_3 (line 4) Y=1:n; >> Hw_4_Problem_3 Not enough input arguments. Error in Hw_4_Problem 3 (line 4) |H=1:n; >> Hw_4_Problem_3 >> Hw_4_Problem_3 Not enough input arguments. Error in Hw_4_Problem_3 (line 4) H=1:n; >> Hw_4_Problem_3 Not enough input arguments. Error in Hw 4 Problem 3 (line 4) H=1:n; 18. The lump sum S to be paid when interest on a loan is compounded annually is given by S=P[1 + i]", where P is the principal invested, i is the interest rate, and n is the number of years. Write a program that will plot the amount S as it increases through the years from 1 to n. The main script will call a function to prompt the user for the number of years (and error-check to make sure that the user enters a positive integer). The script will then call a function that will plot S for years 1 through n. It will use 0.05 for the interest rate and $10,000 for P. 1 2 3 4 in 00 function plot LumpSum(n) int=0.05; 5 S=P*(1+int).^H; 6 plot (H,S,'r-*') xlabel('Year') 7 8 9 0 P=10^4; H=1:n; ylabel('Lump Sum S') title('plot of 5 for years 1 thorugh n') end Command Window Error in Hw_4_Problem_3 (line 4) Y=1:n; >> Hw_4_Problem_3 Not enough input arguments. Error in Hw_4_Problem 3 (line 4) |H=1:n; >> Hw_4_Problem_3 >> Hw_4_Problem_3 Not enough input arguments. Error in Hw_4_Problem_3 (line 4) H=1:n; >> Hw_4_Problem_3 Not enough input arguments. Error in Hw 4 Problem 3 (line 4) H=1:n;
Expert Answer:
Answer rating: 100% (QA)
function plotLumpSumn int 005 P 1e4 10000 H 1n S P 1 int H plotH S r xlabelYear ylabelLump ... 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
-
Assume one 20% shareholder had purchased 50 of her 100 shares for $1,000 dollars in one year and the remaining 50 for $10,000 fifteen years later. What are the tax consequences to the shareholder...
-
The T-accounts for Equipment and the related Accumulated Depreciation for Lau Pty Ltd at the end of 2015 are shown here. In addition, Lau Pty Ltds statement of profit or loss reported a gain on the...
-
Let's think about an accretion disk: see the Lecture Notes, section 2.1. A disk of gas orbits a central object (mass M), so the gravitational potential everywhere is = GM/r where, in cylindrical...
-
Write a program that takes a start string and a stop string as commandline arguments and prints all substrings of a given string that start with the first, end with the second, and otherwise contain...
-
How do foreign currency futures and foreign currency forwards compare?
-
Nursing Magazine reported results of a survey of more than 1800 nurses across the country concerning job satisfaction and retention. Nurses from magnet hospitals (hospitals that successfully attract...
-
In the Nashville Radiology Group example given in the chapter, we assumed that the lease did not have a cancellation clause. What effect would a cancellation clause have on the analysis? p4
-
Review the financial statements of the March of Dimes for 2013 as presented in Table 12-8. 1. Comment as best you can (even in the absence of guidelines as to what constitutes norms for comparable...
-
All of the following are common industry risks faced by companies except: Show answer choices litigation technology regulation competition
-
You are to examine two flow geometries as depicted in the figure. The flow rate in the main pipe is to be maintained constant and equal to Q in both scenarios. To make the comparison simple, it will...
-
10 6 points You have just been hired by FAB Corporation, the manufacturer of a revolutionary new garage door opening device. The president has asked that you review the company's costing system and...
-
Gigs electronics manufactures a subassembly for its main product. The costs per unit are as follows: Direct materials $44.00 Direct labour 30.00 Variable overhead 27.00 Fixed overhead 34.00 Total...
-
You are an account manager at Owens & Minor. You have two customers on a stockless program. Below are each customer's activity levels, activity rates, and customer level costs. See Alpha...
-
In Zierdt, G. L. (2009). Responsibility-centered budgeting: an emerging trend in higher education budget reform, What are two common budget tools and what are the advantages and disadvantages of both?
-
What is the primary goal of a commercial bank? Why may this goal be translated into maximising the firms stock share price? 14.8 Bank capital How does the proportion of capital for a typical bank...
-
You must include source reference citations in-text and a reference list of complete citations, in support of your essay. Failure to include references will result in loss of points. FACTS: Kadie,...
-
Predict the general term, or nth term, a_(n), for the sequence. 0,3,6,9,12,
-
The May 2014 revenue and cost information for Houston Outfitters, Inc. follow: Sales Revenue (at standard).............. $ 540,000 Cost of Goods Sold (at standard) ..........341,000 Direct Materials...
-
Teresa is a civil engineer who uses her automobile for business. Teresa drove her automobile a total of 21,732 miles during 2012, of which 95 percent was business mileage. The actual cost of...
-
Sherry rents her vacation home for 6 months and lives in it for 6 months during the year. Her gross rental income during the year is $4,000. Total real estate taxes for the home are $950, and...
-
John Williams (age 42) is a single taxpayer, and he lives at 1324 Forest Dr., Reno, NV 89501. His Social Security number is 555-94-9358. John's earnings and withholdings as the manager of a local...
-
Analysis of the Accounting Cycle} Susan Ehrat wants to sell you her wholesale fish store. She shows you a statement of financial position with total assets of \(\$ 150,000\) and total liabilities of...
-
Comprehensive Problem Mulberry Services sells electronic data processing services to firms too small to own their own computing equipment. Mulberry had the following accounts and account balances as...
-
Ethical Issues} Kathryn Goldsmith is the chief accountant for Clean Sweep, a national carpet-cleaning service with a December fiscal year-end. As Kathryn was preparing the 2018 financial statements...
Study smarter with the SolutionInn App