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

Why is the organization of labor unions within the fast food industry so difficult?
What effect did education reformers believe public schools have on the United States? A. It would allow woman and minorities equal chances at higher education B
karen made 40 cakes she gives 1/5 to Andrewshe gives 10% to Chris what fraction of the 40 cakes does she have left ?
How old is the earth
How did WW2 affect civilians?
What did the Spanish colonists build to convert American Indians to Christianity? colonies empires missions trading networks
Which of the following is a part of the digestive system? A.Capillary B.Diaphragm C.Ovary D.Saliva
A scientist is observing a sample of a radioactive substance. The table below shows the amount of the radioactive substance remaining, in milligrams, with respe
ANSWER PLZZZZZzzzzzzzzzzzzzzzzzzzzzzzzz
what do i do first my first step to do