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

When inspecting tires, what should you look for?
can someone please help me
In the context of draining the pool, AMOUNT OF WATER in the pool is the independent variable dependent variable
APA evil Goethe International ​
The number seats granted to each state and the size of each district within each both based on which criteria?
please help me..!!.....
X - (-2) = 10 how can i solve this?
You are part of a rowing team. Every 1, miles you stop to take a drink of water. How many times will you stop to drink water if you row 10.2 miles?​
Which statement best describes how energy and matter move in a wave? A A wave transports matter without transporting energy. B A wave transports energy withou
What was the main role of kings in the European feudal system in the Middle Ages? O A. To serve as professional soldiers during wartime B. To give nobles land i