Starting from:
$30

$24

Lab 2 Solution

SPECIFICATIONS




I have provided an unchangeable cscd340Lab2.c file.



I have provided



fileUtil.h



genericArray.h



stock.h



myUtils.h, myUtils.c



You only need to write following:



fileUtil.c

countRecords



openInputFile_Prompt



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



TO TURN IN

Submit a zip file




Lab2 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 cscd340lab2val.txt



Your zip will be named your last name first letter of your first name lab2.zip (Example: steinerslab2.zip)




NOTE: A simple output run is included as simpleOutput.txt

More products