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

How do I do thiis question?
what is the average rate of change for f(x)=x^2 9x=18 from x= -10 to x=10
in early georgia history, john reynolds was the first a) settler. b) explorer. c) court judge. d) royal governor.
The molar mass of oxygen gas (O2) is 32.00 g/mol. The molar mass of C3H8 is 44.1 g/mol. What mass of O2, in grams, is required to completely react with 0.025 g
Which work is the best example of an adaptation? A. A speech given by a political candidate B. A popular song played on the radio C. A recently discovered
the warmest temperature ever recorded on earth was 58°c, in libya, on september 13, 1922. the coldest temperature ever recorded on earth was –89°c, in antarctic
Did I balance this correctly?
unicellular organisms would most likely have _____.
What is the most important reason to continue efforts to preserve coral reefs?
what would seven less than the quotient of x and 9 in a an expression?