Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

to be completed in python 3. ara An CIS 231 -Lab 10 (10 points) Due: Start of Next Class No late labs Objectives: Write a

to be completed in python 3.

image text in transcribed

ara An CIS 231 -Lab 10 (10 points) Due: Start of Next Class No late labs Objectives: Write a program that uses lists and functions. Tasks: Listed below. When finished, upload your source code and turn in a You can work with another person on this lab. Make sure all of your names are listed at the top of your code. One copy is sufficient for both team members Notes: Write a Python program that will do the following, in this order (note similarities to Lab 1. Ask the user for how many values they would like to enter. This value must be between 1 and 15, inclusive (enforce the range.) Hereafter this quantity will be known as "numValues Create a list of numValues values (floats) by calling a function named input_nums ( That function, which is called just once, will handle the input of the numValues values and storing them into a list that it returns. 2. 3. Call a function named in order ( that gets passed your list and prints the 4. Call a function named rev_order () that gets passed the list and prints the 5. Call a function named abo_bel_ equ () that gets passed the list and then numbers in their order in the list (i.e. order of entry) by iterating through the list in order numbers in reverse order by iterating through each value and not modifying the list. outputs the average of all values in the list followed by the amount of values in the list that are above the average, below the average, and equal to the average 6. Call a function named hi_lo() that gets passed the list and then outputs the highest and lowest numbers in the list. Make sure all functions are self-contained and do not globally access anything outside that function (ie. Anything it needs is passed in as a parameter.) Also, the "magic functions" sum(), max(), and min() are off-limits for this lab. And don't forget. 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

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions

Question

25.0 m C B A 52.0 m 65.0 m

Answered: 1 week ago

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago