Use any built in functions for finding the calculations

Assignment Help Basic Computer Science
Reference no: EM13696942

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: EM13696942

Questions Cloud

Professional liability-select an allied health : Professional Liability-select an allied health
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..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Explaining distributed music in physical cds and mp3 files

For some time, popular music has been distributed on physical CDs. It can now be distributed in MP3 files. Explain the nature of the similarity or difference.

  How components of computer system interact in system

How do components of computer system interact within system? What improvements or additions to system do you believe would benefit you or make system more user-friendly?

  How can two cubical

how can two cubical (six sided) dice be labelled using numbers {0,1,2,3,4,5,6} so that when the two dice are thrown, the sum has a uniform probability distribution over the integers ( 1,2...12}.The same number can repeat more than once on a face of e..

  What is the difference between the if then elseif

What is the difference between the If Then ElseIF clause and a Nested If Block? Please provide examples of how you would use each.

  Productcost and productprice are numeric variables

if productCost and productPrice are numeric variables, and productName isa string variable, which of the following statements are valid assignments

  What does it mean if they are public or private

When creating classes you have member functions and member variables. What are they and what data types can you use for member variables

  Deployment and ongoing operation after implementations

Your plan requires two sections, one for deployment and another for ongoing operation after implementation. The vendor offers a contracting service for installation at $140 per hour.

  The evolution of e-marketing tools

The Evolution of E-Marketing Tools

  Design robot that can perform any function or activity

Design a robot that can perform any function or activity you choose from an automatic laundry robot to a customer service robot.

  The case sstudy on an digital forensic investigation plan

As part of the auditing team in capacity of a Digital Forensics expert, your task is to prepare a report explaining the possible methods that can be adopted in this particular scenario, resources required for the methods chosen for this investigat..

  Write a c++ program that calculates distance of a golf ball

write a C++ program that calculates the distance of a golf ball fallen in with each one-seconds interval drop from airplane calculate the distance in the current time Interval (ft) and total distance the golf ball falls at the end of each interval..

  Takes non-negative integer

Then implement function drawLevy() so it takes non-negative integer n as input and draws the levy curve Ln using instructions obtained from function levy(). Don't forget doc strings and comments.

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