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

In some cases concerning _____, a governor may refuse to extradite a fugitive. terrorist acts bank robbery child custody violent crime
Which activity produces the smallest amount of greenhouse gases?
its fact or opinion drag dealers belong in prison
what is 4.16 repeating as a fraction
How did the growth of the rail networks impact the meatpacking industry?
Which of the following powers is not specifically granted to the president? a. Serving as administrative head of the nation b. Convening Congress c. Drafting
Non-intersecting lines that are separated by equal distances at every point can best be described as _____. a. parallel b. perpendicular c. skew d. adjacent
3 over 20 as a percent
Which three major rivers flow through the land claimed by France?
What is a connotation?