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

The graph of f(x) = 2x + 4 shifts five units to the right when it is replaced with the graph of f(x) = 2x - k. What is the value of k? A.) -5 B.) -1 C.) 1 D.)
identify the connective tissue that works like a lever, allowing a muscle to contract and pull on a bone in a way that makes the bone move. a) periosteum b) ten
33. what is a renewable resource? give an example.
why is the sun so far fromthe moon?
how many miles can a horse travel in 4 hours
which is a property of an angle?
Which statement can you conclude is true from the given information? Given: AB is perpendicular bisector of IK. A. AJ = BJ B. C. IJ = JK D. A is the midpoint o
Which of the following is an example of a positive feedback loop? A) you feel hungry, so you eat a sandwich. After eating the sandwich, you are no longer hungr
when was Barack Obama born
is 0.025 greater than 0.052