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 setting do i dry my jordan max arua 2s on in the dryer <br>will mark brainliest
antiseptic1488 [7]
Probably low heat and a longer time. Better sad than sorry
3 0
3 years ago
3–102 One of the common procedures in fitness programs is to determine the fat-to-muscle ratio of the body. This is based on the
gayaneshka [121]

Answer:

x_fat = [ 0.5*(Wsa + Wsw) -  p_muscle*V ] / V*( p_fat - p_muscle )

Explanation:

Given:

- The total volume of body = V

- The average density of the body = p_avg

- The density of muscle = p_muscle

- The density of fat = p_fat

Find:

Obtain a relation for the volume fraction of body fat x_fat

Solution:

- The volume of the fat is given by:

                          V_fat = x_fat*V

- The volume of the muscle is given by:

                          V_muscle = V - V_fat

                                            = V - x_fat*V

                                            =V*( 1 - x_fat )

- We will use the conservation of mass for the body related as:

                         mass_fat + mass_muscle = Total average mass

                         p_fat*V_fat + p_muscle*V_muscle = p_avg*V

                         p_fat*x_fat*V + p_muscle*V*( 1 - x_fat ) = p_avg*V

                         p_fat*x_fat + p_muscle*( 1 - x_fat ) = p_avg

- To determine p_1 we weigh the body in air:

                         Weight reading (Wsa) = m = p_1*V

                         p_1 = Wsa / V*g

- To determine p_2 we weigh the body in water:

                         Weight reading (Wsw) = m - p_w*V= p_1*V - p_w*V

                         Weight reading (Wsw) = V*(p_1 - p_w) = V*(p_2)

                         Where, p_2 = p_1 - p_water

                         p_2 = Wsw / V

- The average density p_avg:

                         p_avg = 0.5*(p_1 + p_2)  

                         p_avg = 0.5*(Wsa / V + Wsw / V)  

                         p_avg = 0.5*(Wsa + Wsw) / V                      

- Plug in the mass equation:

                         p_fat*x_fat + p_muscle*( 1 - x_fat ) = 0.5*(Wsa + Wsw) / V

                         x_fat*( p_fat - p_muscle ) = 0.5*(Wsa + Wsw) / V - p_muscle

                   x_fat = [ 0.5*(Wsa + Wsw) -  p_muscle*V ] / V*( p_fat - p_muscle )

                         

6 0
3 years ago
State the mathematical expression to define the availability of equipment over a specified time and operational availability?
Gelneren [198K]

Answer:

Availability=\dfrac{Up\ time}{Down\ time+Up\ time}

Explanation:

Availability:

  It define as the probability of system which perform desired task before showing any failure .

The availability can be define as follows

 Availability=\dfrac{Up\ time}{Down\ time+Up\ time}

Or we can say that

Availability=\dfrac{Up\ time}{total\ time}

Availability can also be express as

 Availability=\dfrac{MTBF}{MTBF+MTTR}

Where MTBF is the mean time between two failure.

MTTR is the mean time to repair.

7 0
2 years ago
What did August Comte contribute to sociology including positivism
Travka [436]

Answer:

Auguste Comte was the first to develop the concept of "sociology." He defined sociology as a positive science. Positivism is the search for "invariant laws of the natural and social world." Comte identified three basic methods for discovering these invariant laws, observation, experimentation, and comparison.

Explanation:

I hope it's help u :)

4 0
2 years ago
A plate of an alloy steel has a plane-strain fracture toughness of 50 MPa√m. If it is known that the largest surface crack is 0.
Ivahew [28]

Answer:

option B is correct. Fracture will definitely not occur

Explanation:

The formula for fracture toughness is given by;

K_ic = σY√πa

Where,

σ is the applied stress

Y is the dimensionless parameter

a is the crack length.

Let's make σ the subject

So,

σ = [K_ic/Y√πa]

Plugging in the relevant values;

σ = [50/(1.1√π*(0.5 x 10^(-3))]

σ = 1147 MPa

Thus, the material can withstand a stress of 1147 MPa

So, if tensile stress of 1000 MPa is applied, fracture will not occur because the material can withstand a higher stress of 1147 MPa before it fractures. So option B is correct.

8 0
3 years ago
Other questions:
  • Memory Question!
    7·1 answer
  • An op-amp is connected in an inverting configuration with R1 = 1kW and R2 = 10kW, and a load resistor connected at the output, R
    9·1 answer
  • Technician A says a basic circuit problem can be caused by something in the circuit that increases voltage. Technician B says a
    8·1 answer
  • What Degree Do You Need To Become a Solar Engineer?<br> (2 or more sentences please)
    13·1 answer
  • PLEASE ANSWER THIS DIAL CALIPER
    9·1 answer
  • Engineers are problem blank<br> who use critical thinking to create new solutions.
    11·2 answers
  • A protocol is a set of rules or procedures, usually written, that should be followed in specific situations. Which of the follow
    12·1 answer
  • The velocity components expressed in m/s<br>​
    6·1 answer
  • A 1020 Cold-Drawn steel shaft is to transmit 20 hp while rotating at 1750 rpm. Calculate the transmitted torque in lbs. in. Igno
    6·1 answer
  • A composite plane wall consists of a 5-in.-thick layer of insulation (ks = 0.029 Btu/h*ft*°R) and a 0.75-in.-thick layer of sidi
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!