$24
SPECIFICATIONS
I have provided an unchangeable cscd240Lab14.c file.
I have provided
fileUtil.h, a portion of fileUtil.c
genericArray.h
stock.h
utils.h, utils.c
You only need to write following:
fileUtil.c
countRecords
stock.c
buildStock
printStock
cleanStock
compareSymbols
compareNames
comparePrices
Think of each one of these as a Comparator compare method from Java
genericArray.c
fillArray
This is different from what we wrote in class. The parameters are different so please read the documentation.
sortArray
Use the selectionSort to sort the array – qsort won’t work and I will explain why in class.
TO TURN IN
Submit a zip file
Lab14 folder - containing all C files and H files My Makefile
Your input files – meaning mine and at least one other that you made (not a copy and paste of mine) A valgrind run named cscd240lab14val.txt
Your zip named your last name first letter of your first name lab14.zip (Example: steinerslab14.zip)
NOTE: A simple output run is included as simpleOutput.txt