Ask Experts Questions for FREE Help !
Ask
    jamesben91's Avatar
    jamesben91 Posts: 1, Reputation: 1
    New Member
     
    #1

    May 22, 2014, 07:50 PM
    Project Question
    A common programming task is computing statistics of a set of numbers. (A statistic is a number that summarizes some property of a set of data.) Common statistics include the mean (also known as the average) and the standard deviation (which tells how spread out the data are from the mean). If calc is a variable of type StatCalc, then the following methods are
    defined:
    • calc.enter(item); where item is a number, adds the item to the dataset.
    • calc.getCount() is a function that returns the number of items that have been added to the dataset.
    • calc.getSum() is a function that returns the sum of all the items that have been added to the dataset.
    • calc.getMean() is a function that returns the average of all the items.
    • calc.getStandardDeviation() is a function that returns the standard deviation of the items.
    Typically, all the data are added one after the other by calling the enter() method over and over, as the data become available. After all the data have been entered, any of the other methods can be called to get statistical information about the data. The methods getMean() and getStandardDeviation() should only be called if the number of items is greater than zero.
    The getMax() method should return the largest of all the items that have been added to the dataset, and getMin() should return the smallest.
    Test your new class by using it in a program to compute statistics for a set of non-zero numbers entered by the user.


    Read numbers from the user and add them to the dataset. Use 0 as a sentinel value (that is, stop reading numbers when the user enters 0). After all the user’s non-zero
    Studs ad's Avatar
    Studs ad Posts: 134, Reputation: 9
    Junior Member
     
    #2

    May 22, 2014, 09:48 PM
    Sounds like homework project
    odinn7's Avatar
    odinn7 Posts: 7,691, Reputation: 1547
    Entomology Expert
     
    #3

    May 22, 2014, 10:06 PM
    Yep, that's homework...we aren't allowed to do your homework for you. It also looks like we're required to make a program and test it out? You think someone here would take their time to do that for free?

    Nice copy & paste though.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Project topics for undergraduates final year project [ 2 Answers ]

I need accounting project topics for my final year project for undergraduates

Project topics in accounting for my final year project [ 1 Answers ]

I need three topics in accounting for my final year project as an undergradute

How does a change in a project's cost of capital affect the project's IRR [ 1 Answers ]

How does a change in the cost of capital affect the project's internal rate of return

I have quiz project question [ 1 Answers ]

If we have a small flash light and we plugged in 20 v does it reach to ultraviolet

I have a question about a pulley system project [ 1 Answers ]

Am building a platform lift. I am using a 16 ft long by 21" wide plank. I am using a 8 pulleys in this system. See photo.http://i186.photobucket.com/albums/x309/scottmn_photo/items/platform.jpg I want the platform to raise up level. Is this the optimal set up? Is there another configuration...


View more questions Search