Find statistics of the given list of integers

Assignment Help Basic Computer Science
Reference no: EM13696941

You will be writing a homework using functions to get a list of integers from a user and then find statistics of the given list of integers. You are not allowed to use any built in functions for finding the calculations in this assignment.

The functions required for this assignment will be:

printMenu()-Prints a menu of options to the screen
getList()-Gets list of integers from user using a while loop and returns the list
getMean(userList)-Returns the average of the integers contained in the list given by the user
getMedian(userList)-Returns the median of the integers contained in the list given by the user
printGraph(userList)-Prints a horizontal histogram of the elements in the list
getMin(userList)-Finds the lowest value in the set using a for loop and then prints value to screen
getMax(userList)-Returns the highest value in the set using a for loop
Example output:

Welcome to the List Statistics Calculator
To begin, enter a list of integers or to end the list!
Enter an integer: 67
Enter an integer: 100
Enter an integer: 50
Enter an integer: 100
Enter an integer: 50
Enter an integer: 50
Enter an integer: 60
Enter an integer: q
Please choose the statistic that you would like to calculate!
1. Mean
2. Median
3. Min
4. Max
5. Graph
Please enter your choice, or 0 to exit: 1
The mean of this data set is 68.142
Please choose the statistic that you would like to calculate!
1. Mean
2. Median
3. Min
4. Max
5. Graph
Please enter your choice, or 0 to exit: 2
The median of this data set is 60
Please choose the statistic that you would like to calculate!
1. Mean
2. Median
3. Min
4. Max
5. Graph
Please enter your choice to exit:3
The max of this data set is 100
Please choose the statistic that you would like to calculate!
1. Mean
2. Median
3. Min
4. Max
5. Graph
Please enter your choice, or 0 to exit: 4
The min of this data set is 50
Please choose the statistic that you would like to calculate!
1. Mean
2. Median
3. Min
4. Max
5. Graph
Please enter your choice to exit: 5
50: X X X
60: X
67: X
100: X X
Please enter your choice to exit: 0
Goodbye!
When you've finished your homework, use the submit command to submit the file. You must be logged into your account and you must be in the same directory as the file you're trying to submit. At the Linux prompt, type

submit cs201 HW6 hw6.py

Reference no: EM13696941

Questions Cloud

Determine the refrigeration load ql : Determine the refrigeration load QL and The COP of the refrigerator - If the isentropic efficiency of compressor is 0.8 calculate the actual work of the compressor.
Functions involving double hash on c++ : Functions involving double hash on c++
Use headers and sub-headers to segment breaks : Main Body of Information - Use Headers and Sub-headers to segment breaks in subject matter. Your content should include IT concepts, practices, terms, and illustrations presented in this course. Use critical thinking and explanatory discussions..
Use any built in functions for finding the calculations : Use any built in functions for finding the calculations in this assignment.
Find statistics of the given list of integers : You will be writing a homework using functions to get a list of integers from a user and then find statistics of the given list of integers. You are not allowed to use any built in functions for finding the calculations in this assignment.
The security administrator of a major organization : You have just been hired as the security administrator of a major organization that was recently breached by a social engineer. After a thorough analysis of the network security, you have determined that there was no security plan in place and ..
The sunbeam owners spares club : Sunbeam was a marque of advanced cars built by various companies from 1901 to 1981. Initially a manufacturing company making their own cars, they eventually remodelled other production cars until they became a marque of the Rootes company until..
Discuss what settings are often changeable via the keyboard : 1. Discuss what settings are often changeable via the keyboard on a notebook, such as volume, screen brightness, and Bluetooth and/or Wi-Fi.2. The touchpad device should be the laptop's primary pointing device, but other options are the TrackPoin..
The government denied st. marie the reward : John H. Surratt was one of John Wilkes Booth's alleged accomplices in the murder of President Lincoln. On April 29, 1865, the Secretary of War issued and caused to be published in newspapers the following proclamation: "$25,000 reward for the a..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Create account ease of use age appropriateness

Go through and find2 NETS standardshttp://www.iste.org/standards/nets-for-studentsfor each of the above lesson plans you chose and explain why they would be met when using this Web 2.0 tool with the lesson plan you chose.

  What are the dod-specific requirements for an organization

What are the DOD-specific requirements for an organization's IT infrastructure and U.S. compliance laws that may affect the firm?

  Evaluate the technology, connectivity

Your company has assigned you the task of evaluating its computer networks. You are to write a memo covering 15 points on which you will evaluate the technology, connectivity, and functioning of the company's computer networks.

  A string may use more than one type of delimiter

A string may use more than one type of delimiter t bracket information into "blocks" for example, A string is properly delimited if each right delimiter is matched with a perceding left delimiter of the same type in such a way that either the resu..

  Create a class to represent a triangle by storing

Create a class to represent a triangle by storing the lengths of its sides. Make the data members private and provide the typical get/set (accessor/mutator) routines associated with your data members.

  What is the paintcomponent method

How does a program intentionally cause the paintComponent method to execute?

  Explain make-buy decision for management prerogative

Make-buy decision is the significant management prerogative. You are manager of software organization which has average software development cost of $20.00/LOC.

  Describing data-s confidentiality and integrity

They are asking candidates to describe briefly how they would satisfy StoreItRite's requirements as stated above. How would a successful candidate respond?

  Write down the vbscript code that employs a do until loop

question 1. write the vbscript code that uses a do until loop to display all of the integer values stored in the array

  Write the following sum using summation sigma notation

Write the following sum using summation (sigma) notation

  Write a program that translates a name into pig latin

Use the pig latin rule of moving the first letter to the end of the word and adding "ay". Output the pig latin name on the screen. The name "Walt" translates into pig latin Altway. Karen to Arenkay, Steve to Tevesay.

  Design a class named location for locating a maximal value

Design a class named Location for locating a maximal value and its location in a two-dimensional array.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd