1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ivolga24 [154]
4 years ago
8

(Financial application: compare loans with various interest rates) Write a program that lets the user enter the loan amount and

loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8% with an increment of 1/8
Computers and Technology
1 answer:
Tomtit [17]4 years ago
6 0

Answer:

// Program is written in C++ programming language

// Comments are used for explanatory purpose

// Program starts here

#include <iostream>

#include <cmath>

using namespace std;

int main ()

{

// Variable Declarations

int years; double amount;

// Get input for loan amount and period (in years)

cout<<"Loan Amount: ";

cin>>amount;

cout<<"Number of Years: ";

cin>>years;

// Display table header

cout<<"Interest Rate Monthly Payment Total Payment";

// Calculate and display interest rates

// Start iteration

for (double i = 5.0; i <= 8; i += 0.125) {

cout<<i;

// Calculate Monthly Interest Rate

double monthlyRate = i / 1200;

// Calculate and Print Monthly Payment

double monthlyPay = amount * monthlyRate / (1 - 1 / pow(1 + monthlyRate, years * 12)); cout<<monthlyPay; cout<<"\n"<<(monthlyPay * 12) * years);

}

return 0;

}

// End of program

You might be interested in
What is the recommended procedure for disconnecting an external hard drive to avoid losing data?
Zina [86]

Answer:

Instruct the operating system to eject the drive before unplugging it.

Explanation:

3 0
3 years ago
What is an extrinsic value? A. something that is valuable in and of itself B. something that is valuable because it leads to ano
irakobra [83]
B) something valuable outside of itself, leading to another thing of value.
3 0
3 years ago
Documentation for evidence which includes exactly what, when, and from whom evidence was collected, the condition of this eviden
emmasim [6.3K]

Answer:

Answer to the following question is CoC(chain of custody ).

Explanation:

  • CoC(chain of custody ) is the legal document and it is the evidence that is handled during an investigation of the case.
  • In the criminal trials, prosecution must be typically proved that all the evidences is handled according the documented and unbroken CoC.
  • In the court, CoC(chain of custody) documentation has been presented by prosecutions to prove the evidence, related to an alleged crimes, and it has been in possession of  defendant.
4 0
4 years ago
When should you update your Transaction Register? Every time you make a transaction Daily Weekly Monthly
Veronika [31]
Do it weekly so it up to date
8 0
3 years ago
8. Write the examples of freeware and Shareware softwares ?
lakkis [162]

Explanation:

People use freeware software because it is available free of cost and it can be distributed free of cost, that is why it is called FREEware.

Freeware software:

Adobe PDF

yahoo messenger

Go.ogle Talk

MSN messenger

People use shareware software because it helps them to know about the product more before buying it and this software is available free of cost.

Shareware software:

Adobe acrobat 8 professional

Winzip

Getright

7 0
3 years ago
Other questions:
  • 1. When you write HTML code, you use ______ to describe the structure of information on a webpage. a. a web address b. tags c. s
    6·1 answer
  • To decrease the size of text so it will fit into a text box without overflowing, select the
    14·2 answers
  • The date June 10, 1960, is special because when it is written in the following format, the month times the day equals the year:
    6·1 answer
  • Does Android have text-to-voice?
    11·1 answer
  • What unit is used to describe the smallest amount of bitcoin?
    13·1 answer
  • What are the most positive and the most negative decimal numbers that can be represented by a 2C (n+k) bit fixed-point number, w
    12·1 answer
  • What is the minimum number of public IP addresses needed to expose a service running on 10,000 IoT devices having private IP add
    9·1 answer
  • I have no idea what I’m doing and this is due in 45 minutes
    7·1 answer
  • 1.The ___________ method adds a new element onto the end of the array.
    5·1 answer
  • Order the numbers (1.1)2, (1.4)10, and (1.5)16 from smallest to largest
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!