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]
3 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]3 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
How has your perspective changed since the beginning of the class?
jeka94

Answer:

I guess.

Explanation:

8 0
3 years ago
Each device attached to your computer comes with a special program called a(n ________ that enables the device and operating sys
Serhud [2]
Driver- comes with a driver installed.
7 0
4 years ago
The only requirement of __________ is that the sender must provide some mechanism whereby the receiver can opt out of future ema
fiasKO [112]

Answer:

The CAN-SPAM Act

Explanation:

Email or electronic mail is an information system mechanism of communication, that involves the use of digital devices to initiate communication over the internet. The email uses several protocols like the POP3, IMAP etc.

The CAN-SPAM Act is proposed in the United States law, applicable to email investigations. It requires that a sender provides a mechanism whereby the receiver can opt out of future emails without a fee.

4 0
3 years ago
Write an if statement that assigns 0.2 to commission if sales is greater than or equal to 10000.
7nadin3 [17]
If (sales >= 10000)
commission = 0.2;
8 0
2 years ago
What are the main advantages of the d-step tuning of 2023 murano’s xtronic cvt®?.
DedPeter [7]

The main advantages of the d-step tuning of 2023 Murano's xtronic cvt is that:

  • It gives room for the transmission to quickly change ratios in regards to quick acceleration.
  • When at higher rpm, it help one to stepped acceleration via the use of linear acceleration feel.

<h3>What kind of transmission does a Nissan Murano have?</h3>

It is known to have a continuously variable automatic transmission (CVT) and it is one whose only engine is said to give about a 3.5-liter V-6 that helps to bring about a lot of power.

Note that the main advantages of the d-step tuning of 2023 Murano's xtronic cvt is that:

  • It gives room for the transmission to quickly change ratios in regards to quick acceleration.
  • When at higher rpm, it help one to stepped acceleration via the use of linear acceleration feel.

Learn more about cars from

brainly.com/question/25749514

#SPJ1

6 0
2 years ago
Other questions:
  • The level of competition is an important factor for many people when selecting a physical activity.
    7·2 answers
  • Type an SQL statement into the Record Source property of the report. The statement should select all fields (*) for employees wi
    5·1 answer
  • Which of the following is NOT a safe skill you can use to reduce your risk
    11·2 answers
  • When entering a expressway using a weave lane you must do what
    7·1 answer
  • Users of Adobe Reader, created by Adobe Systems Incorporated, are prompted to provide feedback on their experiences with the sof
    7·1 answer
  • Which descriptions offer examples of Correction Services workers? Select all that apply.
    8·1 answer
  • Write a function template that accepts an argument and returns its absolute value. The absolute value of a number is its value w
    11·1 answer
  • What do people in the movie e.t think about the character E.T
    9·1 answer
  • Most of the energy we use originally came from:
    8·1 answer
  • How do people and computers approach problems differently
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!