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
Solnce55 [7]
3 years ago
9

Write a program to read customer number, Name, loan amount, interest rate and time of repayment. Calculate and display the EMI .

To calculate EMI, calculate interest amount using formula: Interest amount = loan amount(1+ rate/100)time . Then add Interest amount to loan amount and divide by time (in months).
Computers and Technology
1 answer:
kompoz [17]3 years ago
6 0

Answer:

The programming language is not stated; however, I'll answer this question using Python programming language.

This program doesn't make use of comments (See Explanation Section for detailed explanation)

The program is as follows

name = input("Customer Name: ")

number = input("Customer Number: ")

loan = float(input("Loan Amount: "))

rate = float(input("Interest Rate: "))

time = int(input("Repayment Time [in months] : "))

Interest = loan * (1 + rate/100) ** time

EMI = (Interest + loan)/time

print("EMI: ", end='')

print(round(EMI,2))

Explanation:

This line prompts for customers' name

name = input("Customer Name: ")

This line prompts for customers'number

number = input("Customer Number: ")

This line prompts for loan amount

loan = float(input("Loan Amount: "))

The line prompts for the interest rate

rate = float(input("Interest Rate: "))

This line prompts for time of loan repayment

time = int(input("Repayment Time [in months] : "))

Using the given formula, this line calculates the interest amount

Interest = loan * (1 + rate/100) ** time

The EMI is calculated using this line

EMI = (Interest + loan)/time

This line prints the string "EMI: " without the quotes

print("EMI: ", end='')

The last line of the program prints the calculated value of EMI, rounding it up to 2 decimal places

print(round(EMI,2))

You might be interested in
Rafael needs to add a title row to a table that he has inserted in Word. What should he do? Use the alignment options. Use the M
raketka [301]

Answer:

Answer is C

Explanation:

6 0
2 years ago
Read 2 more answers
Referat noaptea la școala cu sfârșit de groază​
solniwko [45]

Te ajut eu daca vrei tu la refera

7 0
2 years ago
How do i make a PDF and what is a PDF<br><br> sorry i am dumb
Soloha48 [4]

Answer:

............................................

Explanation:

5 0
2 years ago
HELP PLEASE!! WILL MARK FIRST AND MOST RELIABLE ANSWER BRAINLIEST!!~~~~What is the primary difference between sort and filter?
tatiyna

Answer:

A

Explanation:

Example: when scrolling through a list of shows, if you filter for action shows, only shows that match the action description would appear

3 0
3 years ago
Array Challenge Have the function ArrayChallenge (arr) take the array of numbers stored in arr and return the string true if any
vampirchik [111]

Answer:

The code is given as follows,

Explanation:

Code:

#include <stdio.h>

#include <string.h>  

int n; //to store size of array  

char* ArrayChallenge(int arr[]) //function returns string true or false

{

  int i, j;

  int sum = 0;

  for(i = 0; i < n; i++)

  {

      sum = sum + arr[i]; //count sum

  }  

  for(i = 0; i < n; i++)

  {

      for(j = i+1; j < n; j++) //loop for every two elements in array

      {

          if(arr[i]*arr[j] > 2*sum) //check if proudct of two elements > 2 times sum

          {

              printf("\n%d x %d = %d, 2xSum = %d\n", arr[i], arr[j], arr[i]*arr[j], 2*sum);

              return "true"; //If proudct of two elements > 2 times sum. return true

          }

      }

  }

  return "false"; // If proudct of two elements < 2 times sum. return false

}  

int main()

{  

  printf("\nEnter size of array: ");

  scanf("%d", &n); //read size of array

  int A[n]; //array of size n

  printf("\nEnter array elements: ");

  int i;

  for(i = 0; i < n; i++)

  {

      scanf("%d", &A[i]); //read array from stdin

  }

  printf("%s\n",ArrayChallenge(A)); //ccall function and print answer

 

  return 0;

}

6 0
3 years ago
Other questions:
  • Which is the best and quickest way for Jim to share his scuba experience with everyone?
    8·1 answer
  • Technology offers a variety of rich opportunities available to teachers and students. According to Inan and Lowther (2010), ther
    6·1 answer
  • Write a program to read data from a file named problem 2. ext. This file has three exams data (floating point data) in three col
    11·1 answer
  • What defines "print media"? It is media that includes words and text rather than video, such as many blogs. It is media that is
    8·1 answer
  • Boardman College maintains two files—one for Sociology majors and another for Anthropology majors. Each file contains students'
    5·1 answer
  • Protocols at which layer of the OSI model have the primary function of moving datagrams through an internetwork connected by rou
    7·1 answer
  • To what would you compare the transport layer?
    12·1 answer
  • HELP PLEASE
    7·1 answer
  • What explains the discrepancy between the number of bytes you can
    13·1 answer
  • What software application is most appropriate to use to create multimedia presentations?
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!