Write a program with the following features: User defined module with the following functions ...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program with the following features: • User defined module with the following functions • mysum: takes in a list and returns the sum of the list • mymean: takes in a list and returns the average of the list, must use the sum function inside of the mean function • mysd: takes in a list and returns the standard deviation, use the mean function inside the standard deviation function • main program prompts the user to enter values until user stops • returns the sum, mean, and standard deviation of the values . • runs continuously asking the user if they would like to • Add values to list • Clear list . . • Print stats • Quit Your program may not use any built in functions for calculating the sum, mean, and standard deviation, you must build these up yourself. The standard deviation is σ= N = /[(x₁ -μ)², where μ = - i-1 N where mu is the mean of the set, N is the number of points, and x sub iis each point. Š Write a program with the following features: • User defined module with the following functions • mysum: takes in a list and returns the sum of the list • mymean: takes in a list and returns the average of the list, must use the sum function inside of the mean function • mysd: takes in a list and returns the standard deviation, use the mean function inside the standard deviation function • main program prompts the user to enter values until user stops • returns the sum, mean, and standard deviation of the values . • runs continuously asking the user if they would like to • Add values to list • Clear list . . • Print stats • Quit Your program may not use any built in functions for calculating the sum, mean, and standard deviation, you must build these up yourself. The standard deviation is σ= N = /[(x₁ -μ)², where μ = - i-1 N where mu is the mean of the set, N is the number of points, and x sub iis each point. Š
Expert Answer:
Answer rating: 100% (QA)
Python program that meets your requirements It defines a userdefined module with functions for sum m... View the full answer
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date:
Students also viewed these programming questions
-
The following balance sheet for the Los Gatos Corporation was prepared by a recently hired accountant. In reviewing the statement you notice several errors. LOS GATOS CORPORATION Balance Sheet At...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Please help me calculate the current assets and current liabilities. Cash and cash equivalents Deposits Marketable securities Inventory Property & equipment, net Loan to shareholders Notes receivable...
-
The height of a hill in meters is given by z = 2xy 3x2 4y2 18x + 28y + 12, where x is the distance east and y is the distance north of the origin. (a) Where is the top of the hill and how high is...
-
1. Write a c18 program to control the speed of DC motor by using a PWM with Fpwm-20 kHz and Fosc=32 MHz. The reference speed comes from five pushbuttons where. [6 points] pushbutton Reference speed...
-
Table B. 13 presents data on the thrust of a jet turbine engine and six candidate regressors. Use all possible regressions and the \(C_{p}\) criterion to find an appropriate regression model for...
-
In 2010, Amir ante Corporation had pretax financial income of $168,000 and taxable income of $120,000. The difference is due to the use of different depreciation methods for tax and accounting...
-
As a chief financial officer (CFO), which company between Jetblue Airway and Delta do you feel is in better shape, from the standpoint of a manager? Why? (Show several ratios/trends/other pieces of...
-
In 1913, how long did the average worker stay with the plant? What was the average tenure of a worker? Assume the one-millionth vehicle was produced in 1916 at a cost of $8084 (in 2013 US$). By how...
-
Melanie has worked at a local bookstore for six years, helping to grow a loyal customer base. The bookstore has done so well that the owners are planning to open another location across town, closer...
-
Radners Game Town orders virtual reality headsets from Hawking, Inc. Hawking delivers, but Radner rejects the shipment without telling Hawking the reason. If Hawking had known the reason, it could...
-
What types of defects are recognized in product liability law?
-
Pep Paints agrees to sell Grade A-1 latex outdoor paint to Monar Painters to be delivered September 8. On September 7, Pep tenders Grade B-2 paint. Monar rejects the Grade B-2 paint. If, two days...
-
A buyer or lessee can always reject delivered goods on discovery of a defect, regardless of previous opportunities to inspect. (True/False)
-
When does an implied warranty of merchantability arise?
-
Question The figure shown below, neglecting the length and weight of the rope and pulleys. im 100 N 16m 60'N D 4m Delermine the tension of the rope at its support at D so that it will be in...
-
Where are the olfactory sensory neurons, and why is that site poorly suited for their job?
-
Add the following new constructor in the BMI class: /** Construct a BMI with the specified name, age, weight, * feet, and inches */ public BMI(String name, int age, double weight, double feet, double...
-
Write a program that lets the user create a weighted graph dynamically. The user can create a vertex by entering its name and location, as shown in Figure 29.28. The user can also create an edge to...
-
Write a program that reads a Celsius degree in a double value from the console, then converts it to Fahrenheit and displays the result. The formula for the conversion is as follows: fahrenheit = (9 /...
-
A nickel crystals work function is measured to be 5.22 eV at 25C. As the temperature increases by 300C, the work function drops by 50 meV. By how much does this shift the threshold wavelength for...
-
A crystal sample of bacteriorhodpsin, a light-sensitive protein found in halobacteria that responds to light energy, has crystal planes separated by 0.20 nm. If a beam of 11 keV x rays illuminates a...
-
Investigators have created structures consisting of linear chains of ionized atoms on a smooth surface. Electrons are restricted to travel along the chain. The energy levels of the electrons match...
Study smarter with the SolutionInn App