This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
haas:spring2016:cprog:projects:gfo0 [2016/04/12 16:56] – [0x4: Data Processing] wedge | haas:spring2016:cprog:projects:gfo0 [2016/04/13 16:46] (current) – [Bonus] wedge | ||
---|---|---|---|
Line 7: | Line 7: | ||
======Project: | ======Project: | ||
+ | |||
+ | =====Errata===== | ||
+ | |||
+ | * __correction__: | ||
=====Objective===== | =====Objective===== | ||
Line 24: | Line 28: | ||
This information has been accessible via the **status** tool. | This information has been accessible via the **status** tool. | ||
+ | =====Program===== | ||
+ | |||
+ | 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 ' | ||
+ | |||
+ | For example: | ||
+ | |||
+ | <cli> | ||
+ | lab46: | ||
+ | lab46: | ||
+ | -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: | ||
+ | </ | ||
+ | |||
+ | Your program needs to do the following: | ||
+ | |||
+ | * check for and open the **status.flat** file | ||
+ | * if error occurs, display message and exit | ||
+ | * reading one integer at a time, load the values into an array according to their category | ||
+ | * there will be three categories (arrays), each one identified by a header/ | ||
+ | * -1 indicates the start of participation data (28% of grade) | ||
+ | * -2 indicates end of participation data / start of journal data (36% of grade) | ||
+ | * -3 indicates end of journal data / start of project data (36% of grade) | ||
+ | * -4 indicates end of project data (and end of data stream) | ||
+ | * once loaded into their arrays, calculate the grade component | ||
+ | * tally up all three, and print out the results | ||
+ | |||
+ | Final program output should resemble the following: | ||
+ | <cli> | ||
+ | lab46: | ||
+ | Participation Component: 20 / 28 | ||
+ | Journal Component: | ||
+ | Projects Component: | ||
+ | Total: | ||
+ | lab46: | ||
+ | </ | ||