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

What gas dominated earth’s early atmosphere? Group of answer choices water vapor hydrogen Methan Nitrogen
What precautions should a diabetic patient with chronic kidney disease take to maintain an optimal health status?
SOLVE THIS PLEASE!!!
Draw the reflection of the quadrilateral across the x-axis.
Discuss TWO ways in which some cultural views that exist may affeca relationship negatively.​
help me please . Very much appreciated​
F.O. Find the perimeter and area of the triangle. 10 yd Syd Byd The perimeter of the triangle is yd. (Type a whole number or a fraction.)
Read the sentences with the missing verb. Fill in the blanks with the appropriate present tense forms of the verb ser. 1. Cardi y yo 2. El profesor 3. Tú 4. V
discuss two ways how some cultural views that exists may affect relationship negatively​
Banded iron formations show us when volcanic activity started on earth the oceans began forming on earth oxygen became plentiful on earth rocks were first forme