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

  Find the error in the following pseudocode

Find the error in the following pseudocode

  Business requirements drove the system''s initial development

Discuss how the business requirements drove the system's initial development.

  Solve the following logcal problems

Solve the following logcal problems: a. 10110001 OR 00011010 b. 11100110 XOR 10111011

  How to do electronic configuration

How to do electronic configuration

  As a beginning business analyst

As a beginning business analyst, you have been tasked by the project manager to develop the system requirements related to the handling of outstanding purchase orders.

  The design pattern capability is built into the ide

Review the Design Patterns you have learned this module (CRC Cards and Sun Blue Print Designs.) Use the Internet to find at least two other design patterns. What are the advantages and disadvantages of each? What happens when the design patter..

  Project plan this is for a company selling airline

this is for a company selling airline parts ltbrgt ltbrgtsection 1 written project plan ltbrgt ltbrgtyou are now in the

  Write recurrence relation corresponding to pseudo-code

Write the recurrence relation corresponding to the pseudo- code, don't forget the cost of the base case. iii. Write the solution of your recurrence, showing how you have solved the recurrence.

  Display an appropriate error message

User Radio Buttons with a shared event procedure and a Select Case to determine which text box (State name or abbreviation) should have the focus and which should be set to Readonly.

  Computer science vs computational science

Write an appropriate ME expression capturing the essence  - Weak artificial intelligence

  Write a method to set and retrieve an instructors department

write a method to set and retrieve an instructor's department

  File format would you choose

What file format would you choose for the following tasks: 1. A cartoon strip 2. A 3D model for use on a multimedia presentation on the web

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