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

First president of brazil
In general terms, it can be said that Islamic society was more violent than its contemporaries. was usually extremely intolerant toward Christians and Jews. rel
Which one of the following phrases describes many countries within Asia and Africa? A. LDCs experiencing slow population growth B. MDCs experiencing slow popula
in comparison with the inner planets of our solar system, which list of characteristic of the outer planets is accurate? a. larger with more moons b. smaller wi
The accumulation of small changes in a gene pool over a relatively short period is called: A: anagenesis B: cladogenesis C: microevolution D: punctuated equilib
What is another word for Acadians
what is 0.3 repeating as a fraction in simplest form
an example of a constant acceleration is
What did Napoleon do to bring back order in France?
Which desert does the Huang river curve around