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

A change of heart How has Craig’s family influenced him?
Consider the function ƒ(x) = x2. Which of the following functions shifts ƒ(x) downward 5 units and to the right 3 units? A) ƒ(x) = (x – 5)2 – 3 B) ƒ(x) = (x –
Enter a formula in cell B10 to return the value of 35000 if the net profit after tax cell B9 is greater than or equal to 470000 or 100 if it is not
What branch commands the military
When a projector is placed 10 meters from a screen as shown, it produces an image 3 meters high. If the tallest image that the projector can produce without dis
find x. A. 21√2 B. 7 C. 21√3 over 2 D. 21√2 over 2
write a letter to the honourable minister of agriculture on ways of bossing agriculture in your country​
write brackets () in this statement to make it correct 6 + 4 x 5 - 3 = 14
Campbell, J. (1988). "The Journey Inward." The Power of Myth. What information is missing from this entry but required by APA style? a. month of publication
number is equal to 6022 x 10^23