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
elena55 [62]
3 years ago
14

Create a program that calculates the monthly payments on a loan using Decimal & LC Console SEE Sanple Run Attached Specifica

tions  The interest rate should only use 1 decimal place for both the calculation and the formatted results.  The formula for calculating the monthly payment is: monthly_payment = loan_amount * monthly_interest_rate / (1 - 1 / pow( (1 + monthly_interest_rate), months))  Assume that the user will enter valid data.

Engineering
1 answer:
diamong [38]3 years ago
5 0

Answer:

Consider the following code.

Explanation:

Code:

Unix Terminal> cat loan_calc.py

#!/usr/local/bin/python3

import locale

from decimal import *

def main():

locale.setlocale(locale.LC_ALL, 'en_US')

print('Monthly Payment Calculator')

while True:

print('DATA ENTRY')

loan_amt = input('Loan amount: ')

loan_amt = float(loan_amt)

int_rate = input('Yearly interest rate: ')

int_rate = float(int_rate)

years = input('Years: ')

years = int(years)

mon_rate = int_rate / 12 / 100

months = years * 12

monthly_pay = loan_amt * mon_rate / ( 1 - 1/(1 + mon_rate) ** months)

monthly_pay = Decimal(monthly_pay).quantize(Decimal('.01'), rounding=ROUND_DOWN)

print()

print('FORMATTED RESULT')

print('Loan amount: %30s' %locale.currency(loan_amt))

print('Yearly interest rate: %20.2f' %int_rate + '%')

print('Number of years: %25d' %years)

print('Montly payment: %25s' %locale.currency(monthly_pay))

print()

print('Continue? (y/n): ')

choice = input().strip()

if choice.lower() == 'n':

break

if __name__=='__main__':

main()

Unix Terminal>

Code output screenshot:

You might be interested in
How do you extablish a chain of dimensions​
kap26 [50]

Answer:

Certamente você conhece três dimensões: comprimento, largura e profundidade. Além disso, quando se pensa um pouco fora da caixa também seria possível adicionar a dimensão do tempo.

Provavelmente, algumas pessoas viajam na maionese quando toca-se nesse assunto. Vem em suas mentes universos paralelos e até mesmo realidades alternativas. Mas também não se trata disso.

Explanation:

Basicamente as dimensões são as facetas do que nós percebemos a ser realidade. Existem muitos debates sobre dimensões na física. Um dos que mais chamam a atenção se chama Teoria das Cordas.

r

5 0
3 years ago
The underground cafe has an operating cash flow of $187,000 and a cash flow to creditors of $71,400 for the past year. During th
Serggg [28]

Answer:

cash flow to stockholders = $39,700

Explanation:

Operating cash flow = $187,000

cash flow to creditors = $71,400

Net working capital = $28,000

Net capital spending =  $47,900

Cash flow to stockholders = ?

CFF = operating cash flow - net working capital - net capital spending

CFF = $187,000 - $28,000 - $47,900 = $111,100

CFF = cash flow to creditors + cash flow to stockholders

cash flow to stockholders = CFF - cash flow to creditors

cash flow to stockholders = $111,100 - $71,400 = $39,700

Hence $39,700 is the amount of the cash flow to stockholders for the last year.

3 0
3 years ago
Identify the phase of the design process illustrated in the following scenario, and justify its importance. Kristin has recently
zaharov [31]

Answer:

The design process is at the verify phase of Design for Six Sigma

Explanation:

In designing for Six Sigma, DFSS, is a product or process design methodology of which the goal is the detailed identification of the customer business needs by using measurements tools such as statistical data, and incorporating the identified need into the created product which in this case is the hydraulic robot Kristin Designed

Implementation of DFSS follows a number of stages that are based on the DMAIC (Define - Measure - Analyze - Improve) projects such as the DMADV which stand for define - measure - analyze - verify

Therefore, since Kristin is currently ensuring that the robot is working correctly and meeting the needs of her client the design process is at the verify phase.

5 0
3 years ago
A team of engineers is designing a new rover to explore the surface of Mars. Which statement describes the clearest criterion fo
stich3 [128]

Answer:

hello im new trying to get points

Explanation:

3 0
3 years ago
Describe the greatest power in design according to Aravena?
Ann [662]

Answer: Describe the greatest power in design according to Aravena? The subject of Aravena’s recent Futuna Lecture Series in New Zealand was ‘the power of design,’ which he described as ultimately being “the power of synthesis” because, increasingly, architects are dealing with complex issues and problems.

What are the three problems with global urbanization? 1. Degraded Environmental Quality ...

2. Overcrowding ...

3. Housing Problems ...

4. Unemployment ...

5. Development of Slums...

How could you use synthesis in your life to solve problems? Hence, synthesis is often not a one-time process of solution design but is used in combination with problem understanding and solution analysis to progress towards a more complete understanding of problems and solutions over time (see Applying the Systems Approach topic for a more complete discussion of the dynamics of this aspect of the approach).

I got all three answers

4 0
2 years ago
Other questions:
  • How many types of residential circuits are There <br> A. 4<br> B. 3<br> C. 5<br> D. 7
    11·2 answers
  • Which of the following refers to a full-scale version of a product used to validate performance?
    10·2 answers
  • Python lists are commonly used to store data types. Lists are a collection of information typically called a container. Think of
    5·1 answer
  • Who wanna learn C# for free tell me​
    10·1 answer
  • “In a trusting relationship, confidential information is kept confidential.” Explain what the limits to confidentiality are and
    14·1 answer
  • In the situation shown below, what would the Moon look like from Earth? Sun, Earth and Moon Four Moon Views A. View A B. View B
    8·1 answer
  • The volume of the pyramid is 36 cubic cm, find the volume of the prism.
    5·1 answer
  • Lars is a medical coder. He works for a hospital in Wisconsin but currently lives in Georgia. Lars does his work online and over
    13·1 answer
  • Agricultural economics is a study of how agriculture and business are related.<br> False<br> True
    15·1 answer
  • The minimum recommended standards for the operating system, processor, primary memory (RAM), and storage capacity for certain so
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!