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

2NaOH + H2SO4 Na2SO4 + 2H2O aIs a precipitate produced in the reaction? Explain your reasoning. If 40.0 g of sodium hydroxide is mixed with 60.0 g of sulfuri
calcula la aceleración que experimenta un objeto de 250kg cuando se le aplica una fuerza de 125N​
Which use of the Internet could have a negative impact on a company's competitive position?
HELP AND PLEASE GIVE A REAL ANSWER USING THE NUMBERS ALL NUMBERS U NEED AND THE QUESTION IS ON THE PICTURE
what is the inverse of the function below? f(x)=x/3 - 2
The number of sidewalks available in a community is an example of which of the following? a) Demographics b) Infrastructure c) Social dynamics d) Economic facto
What is the factor 0.5 of 3inches cube
Write the fraction 32/36 in simplest form
What is the area of the triangle? A right triangle. The base is 10 units. The height is 8 units. The longest side is 12.8 units
What changed almost every aspect of the life in South Carolina in the late 1800s