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

Please Hurry!!! and if you don´t recognize these people plz don´t answer Do any of u recognize these people?
Need help?!?!!?!?!?!?!
how many months are there in 15 years​
HELLO CAN ANYONE PLEASE ANSWER THIS QUESTION ?
21. Amanda invests $5,000 in a CD at an annual interest rate of 2%. What will her investment be worth at the end of three years?​
Find the GCF of the numbers using lists of factors. 1. 8,36. 2. 18,72. 3. 14, 28, 49​
Without using a calculator evaluate: - 81 + 203²
3x * (7 * x) so, in school we are doing properties of operations and im confused on this one!
England’s so-called "golden age," that included the works of shakespeare, occurred under the reign of which monarch?.
Which process contributes to the formation of layers in protoplanets when unstable elements release particles and energy?.