answer.
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
Neporo4naja [7]
2 years ago
6

Let r be a bank's interest rate in percent per year (APR). An initial amount of money P, also called as principal, will mature t

o an amount of P(1+r/100)^n after n years have passed. Write a Python program that takes P, r, and n as inputs from the user and provides as output the matured value after n years. For example if the user provides P, r, and n as 1000 0.95 and 5 .Your program must apply the interest-rate formula and provide 1048.4111145526908 as the output.
Engineering
1 answer:
Liono4ka [1.6K]2 years ago
7 0

Answer:

See explanation below.

Explanation:

For this case the program needs to take the inputs as P,r and n and the output would be as A and printed on the system. The code is:

# Inputs

P = float(input("Enter the present value : "))  

r = float(input("Enter your APR : "))  

n = float(input("Enter the number of years : ") )

# Output

A = P*(1 +(r/100))**n

print("The future values is:", A)  

And the result obtained is:

Enter the present value : 1000

Enter your APR : 0.95

Enter the number of years : 5

The future values is: 1048.4111145526908

You might be interested in
What is the linear distance traveled in one revolution of a 36-inch wheel
Afina-wow [57]

Answer:

  36π inches ≈ 113.0973 inches

Explanation:

The circumference of the wheel is pi times its diameter.

  C = πd

  C = π(36 in) = 36π in ≈ 113.0973 in

The distance around the wheel is 36π inches, about 113.0973 inches.

7 0
2 years ago
If a server takes precisely 15 seconds to serve a customer and customers arrive exactly every 20 seconds, what is the average wa
labwork [276]
The average waiting time is 10 seconds
7 0
2 years ago
If the current on your power supply exceeds 500 mA it can damage the supply. Suppose the supply is set for 37 V. What is the sma
lilavasa [31]

Answer:

74 Ω

Explanation:

Data provided in the question:

Maximum value of the current that can be provided = 500 mA

= 500 × 10⁻³ A  

Applied voltage set for the system = 37 V

Now,  

The smallest resistance that can be measured    

= [ Applied voltage ] ÷ [ Maximum current that can be applied ]

= 37 ÷ (  500 × 10⁻³ )

= 74 Ω

4 0
2 years ago
If you have power steering and you are able to __________, you should have your vehicle checked out by a qualified technician.
svp [43]

Answer: drive

Explanation:

The best word that would fit this sentence is drive. A vehicle owner should know how to drive, and they can get their vehicle checked by a qualified technician. The best word that would fit this sentence is drive. If you have power steering and you are able to <u>drive</u>, you should have your vehicle checked by a qualified technician.

8 0
2 years ago
A 50-kg iron block and 20-kg copper block, both initially at 80 oC, are dropped into a large lake at 15 oC. Thermal equilibrium
bija089 [108]
I need this answer to please
5 0
2 years ago
Other questions:
  • Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per li
    15·1 answer
  • A sign erected on uneven ground is guyed by cables EF and EG. If the force exerted by cable EF at E is 46 lb, determine the mome
    13·1 answer
  • You are an electrician on the job. The electrical blueprint shows that eight 500-W lamps are to be installed on the same circuit
    11·1 answer
  • 4.9 Given that I 4 amps when Vs 40 volts and Is 4 amps and I 1 amp when Vs 20 volts and Is 0, use superposition and linearity to
    5·1 answer
  • 2. A ¼ in. diameter rod must be machined on a lathe to a smaller diameter for use as a specimen in a tension test. The rod mater
    9·1 answer
  • Check the answer that best describes the relationship between f(x) and x. (For example if f(x) is Θ(x) check that as your answer
    12·1 answer
  • A well-insulated tank in a vapor power plant operates at steady state. Saturated liquid water enters at inlet 1 at a rate of 125
    8·1 answer
  • ) A given system has four sensors that can produce an output of 0 or 1. The system operates properly when exactly one of the sen
    9·1 answer
  • The rate of flow through an ideal clarifier is 8000m3 /d, the detention time is 1h and the depth is 3m. If a full-length movable
    5·1 answer
  • Alicia had to get over her fear of heights in order to become comfortable maintaining the generators in wind turbines. professio
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!