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 required when setting up a smart phone as a WIFI hotspot?
emmainna [20.7K]
How to create a personal hot spot on an iPhone?

Go to Settings | Cellular | Personal Hotspot.

Tap the slider next to Allow Others to Join. ...

Your Wi-Fi Password will be shown right underneath the Allow Others to Join option. ...

Now, on another device, such as a laptop, go to the Wi-Fi section and search for nearby networks.
5 0
3 years ago
The base class Pet has attributes name and age. The derived class Dog inherits attributes from the base class Pet class and incl
Nonamiya [84]

Answer:

Explanation:

class Pet:

   def __init__(self):

       self.name = ''

       self.age = 0

   def print_info(self):

       print('Pet Information:')

       print('   Name:', self.name)

       print('   Age:', self.age)

class Dog(Pet):

   def __init__(self):

       Pet.__init__(self)

       self.breed = ''

def main():

   my_pet = Pet()

   my_dog = Dog()

   pet_name = input()

   pet_age = int(input())

   dog_name = input()

   dog_age = int(input())

   dog_breed = input()

   my_pet.name = pet_name

   my_pet.age = pet_age

   my_pet.print_info()

   my_dog.name = dog_name

   my_dog.age = dog_age

   my_dog.breed = dog_breed

   my_dog.print_info()

   print('   Breed:', my_dog.breed)

main()

3 0
3 years ago
Conditions of special concern: i. Suggest two reasons each why distillation columns are run a.) above or b.) below ambient press
lutik1710 [3]

Solution :

Methods for selling pressure of a distillation column :

a). Set, \text{based on the pressure required to condensed} the overhead stream using cooling water.

  (minimum of approximate 45°C condenser temperature)

b). Set, \text{based on highest temperature} of bottom product that avoids decomposition or reaction.

c). Set, \text{based on available highest } not utility for reboiler.

Running the distillation column above the ambient pressure because :

The components to be distilled have very high vapor pressures and the temperature at which they can be condensed at or below the ambient pressure.

Run the reactor at an evaluated temperature because :

a). The rate of reaction is taster. This results in a small reactor or high phase conversion.

b). The reaction is endothermic and equilibrium limited increasing the temperature shifts the equilibrium to the right.

Run the reaction at an evaluated pressure because :

The reaction is gas phase and the concentration and hence the rate is increased as the pressure is increased. This results in a smaller reactor and /or higher reactor conversion.

The reaction is equilibrium limited and there are few products moles than react moles. As increase in pressure shifts the equilibrium to the right.

7 0
3 years ago
Lockheed Martin Skunk Works designs and produces aircraft for defense using rapid prototyping tools
Leni [432]
Answer true


Explanation
4 0
3 years ago
What are the three elementary parts of a vibrating system?
zhenek [66]

Answer:

the three part are mass, spring, damping

Explanation:

vibrating system consist of three elementary system namely

1) Mass - it is a rigid body due to which system experience vibration and kinetic energy due to vibration is directly proportional to velocity of the body.

2) Spring -  the part that has elasticity and help to hold mass

3) Damping - this part considered to have zero mass and  zero elasticity.

7 0
3 years ago
Other questions:
  • Air is compressed adiabatically from p1 1 bar, T1 300 K to p2 15 bar, v2 0.1227 m3 /kg. The air is then cooled at constant volum
    13·1 answer
  • Explain why the following acts lead to hazardous safety conditions when working with electrical equipmenta. Wearing metal ring o
    9·1 answer
  • Chapter 15 – Fasteners: Determine the tensile load capacity of a 5/16 – 18 UNC thread and a 5/16 – 24 UNF thread made of the sam
    8·2 answers
  • Consider a steam turbine, with inflow at 500oC and 7.9 MPa. The machine has a total-to-static efficiency ofηts=0.91, and the pre
    14·1 answer
  • As a top-level executive at your own company, you are worried that your employees may steal confidential data too easily by down
    12·1 answer
  • A 350 m^3 retention pond that holds rainwater from a shopping mall is empty at the beginning of a rainstorm. The flow rate out o
    7·1 answer
  • Consider a section of muscle tissue of a cylindrical shape with a radius of 1.5 cm. During highly rigorous exercise, metabolic p
    8·1 answer
  • I have a question for you guys
    13·2 answers
  • The number of pulses per second from IGBTs is referred to as
    10·1 answer
  • The current at resonance in a series L-C-R circuit is 0.2mA. If the applied voltage is 250mV at a frequency of 100 kHz and the c
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!