prettygirlsrock013 prettygirlsrock013
  • 02-03-2021
  • Computers and Technology
contestada

Write a program code in the python programming language to find simple interest given the
formula SI = (P*R*T)/100.
Read P(Principal), R (Rate), T (Time) from the keyboard and Calculate Simple Interest (SI).

Respuesta :

60002135330 60002135330
  • 02-03-2021

Answer:

p = float(input('Principal: '))

r = float(input('Rate: '))

t = float(input('Time: '))

si = (p * r * t) / 100

print(si)

The "float" before the input in the first 3 lines is so you're able to input decimals. If you're not using decimals, you can switch the "float" to "int". However, if you input a decimal number after you switched to int, you will receive an error

Answer Link

Otras preguntas

Solve.....Whatever this means XD
Why did the Tokugawa Shogunate close Japan to foreign influence? The shogunate feared European powers might eventually try to control Japan. The shogunate wante
Ricky is packing food for camping trip. He has 24 granola bars and 30 protein bars. Ricky wants to make identical bags. Each will have equal number of granola b
I’m so confused! Can someone help me with this? Please and thank you!
what time does the sun rise in cape prince of wales, alaska,compared to
What structural adaptation have sparrows developed to deal with warmer environments? A. smaller bodies B. thinner feathers C. sweat glands D. sleeping during th
Why did Yaroslav The Wise use religion to unite Russia with other empires?’
how do photosynthesis and cellular respirations form a continuous cycle?
How does nya spend her time ?
noooooooooooooooooooooo