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
Neporo4naja [7]
3 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]3 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 A roofed structure that is similar to a porch, but is detached from the house.
agasfer [191]

Answer:

a gazebo

Explanation:

6 0
3 years ago
Read 2 more answers
A structural component in the shape of a flat plate 25.0 mm thick is to be fabricated from a metal alloy for which the yield str
balandron [24]

Answer:

The critical length of surface flaw = 6.176 mm

Explanation:

Given data-

Plane strain fracture toughness Kc = 29.6 MPa-m1/2

Yield Strength = 545 MPa

Design stress. =0.3 × yield strength

= 0.3 × 545

= 163.5 MPa

Dimensionless parameter. Y = 1.3

The critical length of surface flaw is given by

= 1/pi.(Plane strain fracture toughness /Dimensionless parameter× Design Stress)^2

Now putting values in above equation we get,

= 1/3.14( 29.6 / 1.3 × 163.5)^2

=6.176 × 10^-3 m

=6.176 mm

5 0
3 years ago
Read 2 more answers
The amplitudes of the displacement and acceleration of an unbalanced motor were measured to be 0.15 mm and 0.6*g, respectively.
ehidna [41]

Answer:

The speed of shaft is 1891.62 RPM.

Explanation:

given that

Amplitude A= 0.15 mm

Acceleration = 0.6 g

So

we can say that acceleration= 0.6 x 9.81

acceleration,a=5.88\ \frac{m}{s^2}

We know that

a=\omega ^2A

So now by putting the values

a=\omega ^2A

5.88=\omega ^2 \0.15\times 10^{-3}

\omega =198.09\ \frac{rad}{s}

We know that

  ω= 2πN/60

198.0=2πN/60

N=1891.62 RPM

So the speed of shaft is 1891.62 RPM.

                                               

       

4 0
3 years ago
How does warming up the tires on a car increase grip with the pavement?
ICE Princess25 [194]

Answer:

because burning rubber increases the grip power

8 0
3 years ago
Risks in driving never begins with yourself, but with other drivers who take risks.
Ymorist [56]

False! Just saying. You could be under the influence, or just have no clue as to what you're doing.

8 0
2 years ago
Other questions:
  • What is a p-n junction? Show by the diagram.
    6·1 answer
  • Which is the correct order for handwashing
    11·2 answers
  • The Emergency Stop Button icon on the Inputs toolbar can be used to press or release the Emergency Stop button on the CNC machin
    10·1 answer
  • A family quarantined at home in March/April 2020 has two dogs: a bull mastiff (Biggie), and a chihuahua (Smalls). Smalls has a b
    9·1 answer
  • The point in an electrical circuit that is connected to the negative side of a power supply is called what?
    8·1 answer
  • Give three examples of how engineering has made human life better in your opinion.
    13·1 answer
  • The image shows the relative positions of Earth and the Sun for each of the four seasons. Earth travels in an elliptical orbit a
    11·2 answers
  • Why is it important to follow the engineering design process before building a prototype
    13·1 answer
  • 14. An engine is brought into the shop with a
    15·1 answer
  • Why is personal development necessary based activity success life and career​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!