1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
jolli1 [7]
4 years ago
9

Write a program that utilizes a loop to read a set of five floating-point values from user input. Ask the user to enter the valu

es, then print the following data: Total Average Maximum Minimum Interest at 20% for each original value entered by the user. Use the formula: Interest_Value = Original_value + Original_value*0.2
Computers and Technology
1 answer:
rjkz [21]4 years ago
3 0

Answer:

Python code is given below

Explanation:

# create an empty array

arr = []

# loop 5 times

for i in range( 0 , 5 ):

   x = float(input('Enter a number : '))

   # add x to arr

   arr.append( x )

sum = 0

# find the sum of all elements in arr

for x in arr:

   sum += x

# calculate average

average = sum / len(arr)

print('\n%15s %15s\n' %('Original Value' , 'Interest Value'))

for Original_value in arr:

   # calculate interesr value

   Interest_Value = Original_value * 0.2

   print('%10f %15f' %( Original_value , Interest_Value ))

print('\nTotal :', sum)

print('Average :', average)

print('Maximum :', max(arr))

print('Miniimum :', min(arr))

You might be interested in
Help me pleaseeee!!!!!
belka [17]

Answer:

15 unit square

Explanation:

7 0
3 years ago
Read 2 more answers
If classes C1 and C2 both implement an interface Cint, which has a method whichIsIt, and if C1 c = new C1( ); is performed at on
Assoli18 [71]

Answer:

FALSE

Explanation:

Because C1 and C2 implement the same interface, they both implement whichIsIt. The variable c is known as a polymorphic variable, meaning that it can change from being an C1 to a C2. So, the message c.whichIsIt( ); may invoke C1's whichIsIt or C2's whichIsIt. This can only be known at runtime.

5 0
3 years ago
9. Alcohol begins to affect your brain
shusha [124]

Answer:

m

Explanation:

4 0
3 years ago
Read 2 more answers
(TCO B) The symbol shown as a three-sided box that is connected to the step it references by a dashed line is what?
belka [17]

Answer: annotation symbol

Explanation:

The symbol shown as a three-sided box that is connected to the step it references by a dashed line is referred to as the annotation symbol.

The annotation symbol is referred to as a flowchart symbol that is used to hold comments. It is a tag that's applied to a family so that the family can be identified in a project.

4 0
3 years ago
Who initially developed what is now known as the internet?
Lyrx [107]

in 1990, when computer scientist Tim Berners-Lee invented the World Wide Web.

5 0
3 years ago
Other questions:
  • Write a java program called allDigitsOdd that returns whether every digit of a positive integer is odd. Return true if the numbe
    6·1 answer
  • "The process was placed in a suspended state by an agent; either itself, a parent process, or the OS, for the purpose of prevent
    10·1 answer
  • Which technology was used in fourth generation of computer​
    13·2 answers
  • Question 1 :The most common business firewall technique is to use a firewall server in conjunction with:This task contains the r
    11·1 answer
  • When you want to specify multiple criteria, and all criteria must be true for a record to be included in the results, when the _
    9·1 answer
  • Which task is performed by the artificial intelligence programmer?
    7·1 answer
  • An ____ is a collection of tools, features, and interfaces that enables users to add, update, manage, access, and analyze the co
    10·1 answer
  • Wassup anybody tryna play 2k
    6·2 answers
  • Malware that locks or prevents a device from functioning properly until a fee has been paid is known as:
    11·1 answer
  • Adding a border to an image is one way to manipulate media to spice up a project. Where do you find the Picture Styles command t
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!