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

Match each pair of monomials with their greatest common factor
Is Darwin legacy justified ????
Katie has 2 red pens, 5 blue pens, 3 green pens, and 6 orange pens in her backpack. If Katie randomly selects 1 pen, what is the probability she will select 1 g
What different feelings do romeo and juliet express in the balcony scene gradesavver?
Raises taxes and establishes public education A. Elizabeth I B. Philip II C. Louis XIV D. Peter the Great E. Catherine the Great
help solve algebra 15a=6a-90
Sofia is planning her physical activities for the week and wants to choose an activity that will help her build stamina. She should choose an activity that mak
2(3y − 1)(y − 3) is the factored form of
Riley is playing a game that requires rolling a number cube numbered 1-6 and spinning a spinner with three consonants and one vowel. The sections of the spinner
What does hem of her chiffon skirt chase itself around her strong legs mean?