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

9y-36=-15x in Slope intercept form
How does God solve the problem that the first lines of "The Creation" pose? a. He makes a man. b. He makes the sun and stars. c. He causes rain to fall on Earth
how were the beginnings of the Almoravid and Almohad empires similar?
What is the mass of a truck if it produces a force of 14,000n while accelerating at a rate of 5m/s?
Up to a point, the elongation of a spring is directly proportional to the force applied to it. Once you extend the spring more than 10.0 centimeters, however, i
What are some causes and effects of rapid population growth between 1900 and 1945?
Because they contain a source of high-quality protein that’s equivalent in value to animal protein, _______ are an excellent addition to a meat-free diet. A. ch
What is 13,406 word form
what happens as thermal energy is transferred from the core to the mantle
Why were the French and the British having a conflict over the Ohio river valley?