Write a program which calculates and displays the cash flow

Assignment Help Programming Languages
Reference no: EM131298938

Write a program which calculates and displays the cash flow for a given loan. The type of the loan is equal instalments, i.e. the interest amount reduces when the principal amount reduces. You can assume monthly payments and that exactly one month passes from the issue date to the first instalment and that monthly interest rate is equal to yearly interest rate / 12. The main program asks the user for the principal amount, yearly interest rate, and the number of instalments. Then the program displays the projected cashflow, i.e. for each instalment it displays the instalment number, the remainder of the principal, the instalment amount, the interest paid, and the total amount.
you need to modify the class Loan and the function readData(). the following main is given:

int main()
{
double amount, interestRate;
int numPayments;
readData(amount, interestRate, numPayments);
Loan myLoan(amount, interestRate, numPayments);
myLoan.displaySchedule();
return 0;
}

Reference no: EM131298938

Questions Cloud

Describe the industry structure : Describe the industry structure. Include things such as competition, suppliers, material changes, pricing, etc. Make your answer somewhat predictive of how you believe the industry is evolving.
What is the free cash flow : Assume that you recently graduated and have just reported to work as an investment advisor at the one of the firms on Wall Street. What is the free cash flow for 2014
Role of a small-business consultant : Place yourself in the role of a small-business consultant. One of clients, Home Solutions, is considering opening two new stores. You know that businesses often experience cash flow problems due to continuous changes that occur in the industry, su..
Determining the rate of global warming : What would/will happen to the rate of global warming if we eliminate air pollution and thus global dimming?
Write a program which calculates and displays the cash flow : Write a program which calculates and displays the cash flow for a given loan. The type of the loan is equal instalments, i.e. the interest amount reduces when the principal amount reduces.
Steve jobs-ten lessons in leadership : In an analysis of 750-900 words, examine the theoretical framework, style, and leadership traits presented in the story. Discuss how this particular individual has adopted leadership as a vocation.
Video assessment-leadership : Please watch the TED Talk by Sheryl Sandberg If you are unable to see the video in Canvas please click here (Links to an external site.)
Estimate the value of the business as of the end of month : Case - Basic Capital Budgeting Analysis. Estimate the value of the business as of the end of month 36 (the horizon value) using at least two different methods
How does each firm recognize revenue : Revenue Recognition and Operating Income - How does each firm recognize revenue and how does its revenue recognition policies compare to its competitors? Is there evidence of aggressive revenue recognition

Reviews

Write a Review

Programming Languages Questions & Answers

  Define the primary keys and foreign keys for tables

Define the following primary keys and foreign keys for these two tables. Use multiple DDL statements for this

  Suggest one network architecture

Suggest one network architecture. Suggest LAN and Wireless LAN (WLAN) wiring considerations. Recommend hardware options and costs. Suggest security considerations for: Firewall Antivirus software Recommend software options and costs.

  Design and write payroll program-employee-s hourly pay rate

Design and write a payroll program that will prompt the user to enter an employee's hourly pay rate and the number of hours worked.

  Prepare an application by using the user interface and

develop an application using the user interface and itemprice below to calculate the price of a pizza based on its size

  Determine the conditions in which datagrams are dropped

Use the attached client and server programs to make a test kit to determine the conditions in which datagrams are sometimes dropped.

  Program to use next character to create and return operator

Convert the string of digits into an integer. Otherwise, use the next character to create and return an operator.

  Design classes account-checkingaccount and savingsaccount

Design and write 3 classes - Account, CheckingAccount, and SavingsAccount. Have CheckingAccount and SavingsAccount inherit from Account.

  Create class for factory workers are paid certain amount

Create class for Factory workers are paid a certain amount for each unit they make and their total pay is the number of units produced times the pay per unit.

  Create a function named stopclock

Create a function named "stopclock" that will stop the timer, display the users score, and disable the exam - Create function "runClock" with required unary operator.

  Design employee objects-display each object-s yearly salary

Design two employee objects and display each object's yearly salary. Then provide each employee 10% raise and display each Employee's yearly salary again.

  Find the shortest sequence of mips instructions

Find the shortest sequence of MIPS instructions that extracts bits 16 down to 11 from register $t0 and uses the value of this field to replace bits 31 down to 26 in register $t1 without changing the other 26 bits of register $t1.

  Display the gross earnings-tax payable using program

Print the gross earnings, tax payable, medical levy and net earnings for each employee. At the end of report, print total gross earnings, total tax, total medical levy and total net earnings.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd