Project 6: Calculate Mean
Intro Problem: Suppose we asked 10 of your classmates how much they spent on their last haircut and obtained the following values:
5, 0, 50, 70, 100, 10, 30, 40, 140, 25
One characteristic we may be interested in with this information is "How much do my classmates typically spend on a haircut?"
There are a few different measures we could use (mean, median, mode). The mean is $47 which could represent a typical haircut cost for your classmates.
Project 6: Your program initializes an array called 'dataset'.
Task: Correctly initialize the variable 'average' which corresponds to the average (mean) of the dataset.
**If your code works for 5 test cases, you can enter your e-mail address
Universal Computational Math Methods:
pow(5,2) returns 25.0
abs(-3.0) returns 3
sqrt(49.0) returns 7.0