Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Python program that will do the following, in this order: 1. Declare an initially empty list. 2. Input 15 floats from the user

Write a Python program that will do the following, in this order:

1. Declare an initially empty list.

2. Input 15 floats from the user and add them, in the order they are entered, to the list.

3. Output the 15 floats in their order in the list by iterating through the list, then iterate through the list in reverse order, followed by their average (compute the sum via code, not a Python library function). Do not create/copy/change the list (e.g. dont use .reverse())

4. Output the amount of values in the list that are above the average, below the average, and equal to the average. (Note: do not sort the array.)

5. Output the highest and lowest numbers input (via code, not a Python library function).

*All numbers need to be printed to (only) one decimal place.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Semantics In Databases Second International Workshop Dagstuhl Castle Germany January 2001 Revised Papers Lncs 2582

Authors: Leopoldo Bertossi ,Gyula O.H. Katona ,Klaus-Dieter Schewe ,Bernhard Thalheim

2003rd Edition

3540009574, 978-3540009573

More Books

Students also viewed these Databases questions

Question

Explain the steps in the marketing planning process.

Answered: 1 week ago

Question

2. What is their level of comprehension?

Answered: 1 week ago

Question

a sin(2x) x Let f(x)=2x+1 In(be)

Answered: 1 week ago