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

during which event did american indians become allies with english colonists and fight other american indians
when atoms are split, they release energy. this concept applies to
how to eliminate negative self-talk
Why does Romeo go to the party?
The United Nations only uses troops and trade embargoes to back the Declaration of Human Rights
What does phishing mean?
Which equation does the graph of the systems of equations solve? 2 linear graphs. They intersect at 1,2 x + 4 = −2x − 1 x + 2 = −3x + 1 −x + 3 = 3x − 1 x +
line segment ab has a slope 5/4 and contains point a(8,-7). what is the y-coordinate of point q(3,y) if qa is perpendicular to line ab? answer choices: a: y=-2
The average rate of change of f(x)=3x+9 is 9. true or false?
divide the decimal numbers:12.012÷6