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

  Explain description design analyses

Description Design Analyses (perhaps include sub-categories for each process) Description of Units being Designed What do they remove? Explain how do they operate?

  Calculate the minimal sum logic for each output

How would I do this problem? When it says 4-bit two's complement numbers, what does it mean?

  What features look for switches and explain why want feature

You have been called in to consult on a new network design for CNT Books. The requirements of this design are summarized as follows: *The building has 3 floors. *There are 300 user workstations and 10 servers.

  How far could it transmit a signal

A step-index multimode fiber has a modal dispersion of about 30 ns/km. Using the formula for maximum data rate for a given dispersion, about how far could it transmit a signal at 1Gbit/s?

  Secure computing

Secure Computing

  Distinguish object frameworks-components-system installation

Distinguish object frameworks and components in terms of ease of modification before system installation, ease of alteration after system installation, and overall cost savings from code reuse.

  Design an application to take and process a pizza order

Design an application to take and process a pizza order. The user should be able to make pizza order choices from listboxes, and the application should display the order price.

  Explain bindings which are required to determine semantics

Write simple assignment statement with one arithmetic operator in some language you know. For each component of statement, write various bindings which are needed to determine semantics.

  Determine present worth-future worth of soldering machine

The initial cost is in week 0 and the payments are in years 1-4. Determine the present worth, future worth, and annual worth for.

  Plan for processing the potential crime incident scene

Describe your plan for processing the potential crime/incident scene. Some of the items you will want to cover include

  A virtual boolean method that indicates

Data members should include all those inherited plus any you want to add  Member functions should include any inherited methods, plus at least  A virtual Boolean method that indicates whether the player gets another card  A method that announces that..

  Determine number in cs register

If code segments for the 8086 program start at address 70400H, what number will be in CS Register? Suppose the same code segment base.

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