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

Where can you find Mercury metal in the earth
How to calculate pressure
help 99 points for this
How many amino acids are attached to a single transfer rna?
A projectile is fired straight up with a positive velocity of 100 m/s when the projectile returns
what elements of internal monologue in Modernist writing
what are your ideas about the chiniese and silk production. Why do you think they so carefully guarded the secret of how to produce silk?
Which of the early north american cultures were known as the canal builders? a. the hohokum b. the arena c. the hop well d. the anasazi
which option accurately describes the first two stages of photosynthesis? A) Stage 1: Chlorophyll captures light energy. Stage 2: Light energy is converted to c
why does john tell elizabeth to cut some flowers? what does the author reveal about their relationship?