The objectives of this lab are to become familiar with using arrays in C. Once again we will be using a makefile to build these programs; however, this time you must write the makefile yourself again from scratch (1 Point).
(Hint: the easiest way to do this is to copy a makefile from a previous lab and modify if).
Your makefile should properly compile and link the source files needed to make the three programs described below. The commands we will use to compile your programs are:
make averages
make water
10 20 30 30 40 50
Average of the 6 values read is: 30.000000
There are 2 values equal to the average.
The values greater than the average:
40
50
The values less than the average:
10
20
10 20 30 30 40 50
Average of the 6 values read is: 30.000000
There are 2 values equal to the average.
There are 2 values greater than the average:
40
50
There are 2 values less than the average:
10
20
Use the "grade" command to turn in the all of the source and data files (.c,.h, and .dat files) and the makefile in your Lab13 directory. Your command will look like the following.
If you are in Section 001 use:
grade -lab13s1,ee160 *.c *.h makefile
If you are in Section 002 use:
grade -lab13s2,ee160 *.c *.h makefile
If you are in Section 003 use:
grade -lab13s3,ee160 *.c *.h makefile
If you are in Section 004 use:
grade -lab13s4,ee160 *.c *.h makefile
You should verify that you turned in things successfully, which you can do with the command (which simply leaves the file names off from the previous command).
grade -lab13s1,ee160
OR
grade -lab13s2,ee160
OR
grade -lab13s3,ee160
NOTE: This is the last of the regular lab assignments. For the remaining weeks of the semester, you should work in the lab with your team on the final project.