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:
![Write a program with the following features: User defined module with the following functions mysum: takes](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/651143edc79ec_1695630317834.jpg)
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 killing and disassembly of a hog in a slaughter plant is very' labour-intensive, because the tasks cannot easily be automated. This is because each hog is slightly different and the carcasses...
-
The graph in the accompanying figure shows the average annual percentage change y = (t) in the U.S. gross national product (GNP) for the years 20052011. Graph dy/dt (where defined). 7% 6 5 4 3 2 1 0...
-
What can managers do in order to increase EVA ? ( Hint: Use the formula shown above as your starting point.)
-
You were recently approached by one of your clients, Wendy Wonders, the Chief Financial Officer of Rock Group Limited ( RGL), a Canadian public company with a 31 December year- end. RGL manufactures...
-
How do managers know which investment to make given that there are usually a variety of choices?
-
Jamie Lynn is the revenue manager at a 250room fullservice hotel property. Her comp set includes five full and limitedservice properties: The demand and revenue performance of Jamie Lynn's hotel for...
-
Case 2 : what happens in the absence of markets Please read: Campus Parking in UCLA (https://luskin.ucla.edu/sites/default/files/download-pdfs/PoliticsAndEconomicsOfCampusParking.pdf) Case Discussion...
-
Convert the following information into: a) a semantic net b) a frame-based representation A Ford is a type of car. Bob owns two cars. Bob parks his car at home.His house is in California, which is a...
-
Visit www.pearsonglobaleditions.com/malhotra to read the video case and view the accompanying video. Marriott: Marketing Research Leads to Expanded Offerings highlights Marriotts success in using...
-
The water level in a tank is \(20 \mathrm{~m}\) above the ground. A hose is connected to the bottom of the tank, and the nozzle at the end of the hose is pointed straight up. The tank cover is...
-
A simple experiment has long been used to demonstrate how negative pressure prevents water from being spilled out of an inverted glass. A glass that is fully filled by water and covered with a thin...
-
A golf ball is hit on a level fairway. When it lands, its velocity vector has rotated through an angle of 90. What was the launch angle of the golf ball? Pyo By Dyz =0 Uso Range R x max dya
-
Contribution margin actually forgone? 10-30 Using the high-low approach to estimate cost drivers. Carney Cabinets Ltd is a furniture manu- facturing company with its factories located in six cities...
-
A report from the college dean indicates that for the previous semester, the grade distribution for the Department of Psychology included 135 As, 158 Bs, 140 Cs, 94 Ds, and 53 Fs. Determine what kind...
-
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 /...
-
52. A city receives a copy of its original charter from the year 1799 as a gift from a citizen. The docu ment will be put under glass and displayed in the city hall for all to see. The fair value is...
-
50. A city has a solid waste landfill that was filled 12 percent in Year 1 and 26 percent in Year 2. Dur ing those periods, the government expected that total closure costs would be $2 million. As a...
-
48. The City of Wolfe bought a $20,000 machine with a five-year life and no salvage value for its school system. It was capitalized but no other entries were ever made. The machine was monitored...
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App