MthSc 360: Project 1
Here are the rules for Project 1.
Write a script which does the following:
- Calls the function MakeData(s) with the last four digits of your
social security number. For example if your social security number
is 123-45-6789, then your script should have a line similar to
T = MakeData(6789).
MakeData will return a vector of 10 to 30
"temperatures."
- Plots the temperatures, where the values on the x-axis of the plot
are simply the indices, and the values on the y-axis are
the temperatures. The temperatures should be connected by
straight lines,
- Displays a title, which includes your name, and appropriate labels
for the x and y axes.
- Calculates the average temperature and the standard deviation.
- Draws a horizontal red line at the average temperature.
- Draws a horizontal blue line at the average plus one standard
deviation.
- Draws a horizontal green line at the average minus one standard
deviation.
- Plots blue circles on top of those data points which are strictly
larger than the average plus one standard deviation.
- Plots green + signs on top of those data points which are
strictly lower than the average minus one standard deviation.
- Prints out a formatted message which gives the number of data
points, the average temperature, the standard deviation,
the number of data points which are strictly larger than the
average plus one standard deviation, and the number of data
points which are strictly less than the average minus one
standard deviation.
- When you get your script (program) running correctly, print a
copy of the command window, print a copy of your script, and
print a copy of your plot. Turn these in as part of your portfolio.
Save a copy of your script on your backup disk.
If you want, you can send me an email copy of your script.
Professor:
Daniel D. Warner,
Mathematical Sciences,
Clemson University
Send questions and comments to:
warner@math.clemson.edu
Last Updated: September 2, 1996