This is an old revision of the document!
Corning Community College
CSCS1320 C/C++ Programming
~~TOC~~
To implement a programmatic solution (ie simulation) of a real life process- the obtaining, processing, and display of your status in the course.
In addition to the new skills required on previous projects, to successfully accomplish/perform this project, the listed resources/experiences need to be consulted/achieved:
Throughout the semester, you've been accumulating points for your class participation, journal, and projects.
This information has been accessible via the status tool.
Throughout the semester, your class-related activities have been numerically captured and made available to you via the status tool.
Now that we are nearing the end, and your programming skillset is significantly expanded, I would like you to write a program to take this data and calculate your grade (reflective of currently recorded data).
I've designed a tool that will take all your status data and 'flatten' it… converting all the necessary data into one stream of values. To obtain this data, simply run the flattenstatus command and the file status.flat will be created in your current working directory.
For example:
lab46:~/src/cprog/gfo0$ flattenstatus lab46:~/src/cprog/gfo0$ cat status.flat -1 0 1 1 0 0 1 1 1 1 1 1 1 1 1 1 0 0 0 1 1 1 1 -2 1 1 1 0 1 0 1 0 1 0 0 1 -3 11 13 6 9 4 9 5 9 6 9 19 20 6 0 18 20 -4 lab46:~/src/cprog/gfo0$
Your program needs to do the following:
Final program output should resemble the following:
lab46:~/src/cprog/gfo0$ ./mygrade Participation Component: 20 / 28 Journal Component: 20 / 36 Projects Component: 30 / 36 Total: 70 /100 lab46:~/src/cprog/gfo0$
As a bonus opportunity, I offer you the following:
Despite how much automation I may have on the backend of things to generate all this data, there is still a considerable amount of manual interaction on my part (as much as I'd love to entirely script the process, evaluation still very much requires that human element), and that means there's always the chance of errors creeping in.
I will consider for bonus points the implementation of a “check” argument, which if provided on your script's command-line, will perform necessary tallys and sanity checks (for example, if a project is out of 39 points, do all your values check out; similarly, do all the line-by-line point items add up to the reported total you have?), and nicely displays any inconsistencies (so that you can report them to me for potential correction).
To successfully complete this project, the following criteria must be met:
To submit this program to me using the submit tool, run the following command at your lab46 prompt:
$ submit cprog gfo0 gfo0.c Submitting cprog project "gfo0": -> gfo0.c(OK) SUCCESSFULLY SUBMITTED
You should get some sort of confirmation indicating successful submission if all went according to plan. If not, check for typos and or locational mismatches.