This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
haas:fall2017:cprog:projects:dtr0 [2017/08/20 16:56] – created wedge | haas:fall2017:cprog:projects:dtr0 [2018/02/02 18:42] (current) – wedge | ||
---|---|---|---|
Line 3: | Line 3: | ||
< | < | ||
</ | </ | ||
- | |||
- | ~~TOC~~ | ||
======Project: | ======Project: | ||
Line 45: | Line 43: | ||
<code c> | <code c> | ||
/* | /* | ||
- | | + | |
- | | + | |
* | * | ||
* | * | ||
- | * A program by NAME for CSCS1320 COURSE | + | * A program by NAME for COURSENUMBER COURSENAME |
* | * | ||
- | * Compile with: gcc -o datatypes datatypes.c | + | * Compile with: gcc -o dtr0 dtr0.c |
- | * Execute with: ./datatypes | + | * Execute with: ./dtr0 |
*/ | */ | ||
Line 103: | Line 101: | ||
<cli> | <cli> | ||
- | lab46: | + | lab46: |
TYPE: unsigned char, bytes: 1, low: 0, high: 255, qty: 256 | TYPE: unsigned char, bytes: 1, low: 0, high: 255, qty: 256 | ||
TYPE: | TYPE: | ||
Line 109: | Line 107: | ||
TYPE: | TYPE: | ||
... | ... | ||
- | lab46: | + | lab46: |
</ | </ | ||
This output includes some mock additional entries, actual values abstracted. Instead of displaying ' | This output includes some mock additional entries, actual values abstracted. Instead of displaying ' | ||
+ | |||
=====Reflection===== | =====Reflection===== | ||
Be sure to provide any commentary on your journal regarding realizations had and discoveries made during your pursuit of this project. You should also consider adding extra comments into your program so that it can be a more valuable reference going forward. | Be sure to provide any commentary on your journal regarding realizations had and discoveries made during your pursuit of this project. You should also consider adding extra comments into your program so that it can be a more valuable reference going forward. | ||
Line 138: | Line 137: | ||
* signed long long int | * signed long long int | ||
- | =====Submission===== | + | =====Review of Compiling/ |
- | To successfully complete this project, the following criteria must be met: | + | Just to review the compilation/ |
- | | + | < |
- | * Executed program | + | lab46: |
- | * Output | + | lab46: |
- | * Each type must show a mathematically correct quantity | + | </ |
- | * high and low values **must** be computed logically | + | |
+ | Assuming there are no syntax errors or warnings, and everything compiled correctly, you should just get your prompt back. In the event of problems, the compiler will be sure to tell you about them. | ||
+ | |||
+ | Conceptually, | ||
+ | |||
+ | < | ||
+ | gcc -Wall --std=c99 -o BINARY_FILE SOURCE_FILE | ||
+ | </ | ||
+ | |||
+ | The BINARY_FILE comes **immediately after** the **-o**, **NOT** the SOURCE_FILE (it must never **immediately** follow a **-o**). It can precede, and such is perfectly valid (especially if you feel that way more intuitive). | ||
+ | |||
+ | The **-Wall** (treat all warnings | ||
+ | |||
+ | To execute your binary, we need to specify a path to it, so we use **./**, which references the current directory (the dot ' | ||
+ | |||
+ | < | ||
+ | lab46: | ||
+ | Hello, World! | ||
+ | lab46: | ||
+ | </ | ||
+ | |||
+ | =====Submission Criteria===== | ||
+ | To be successful in this project, the following criteria must be met: | ||
+ | |||
+ | * Project | ||
+ | * Late submissions will lose 25% credit per day, with the submission window closing on the 4th day following the deadline. | ||
+ | * Early submissions can earn 1 bonus point per day in advance of the posted due date. | ||
+ | * All code must compile cleanly (no warnings or errors) | ||
+ | * Use the **-Wall** | ||
+ | * all requested functions must be implemented | ||
+ | * all requested functionality must conform to stated requirements | ||
+ | * Executed programs | ||
+ | * output formatted, where applicable, must match that of project requirements | ||
+ | | ||
+ | | ||
* Code must be nicely and consistently indented (you may use the **indent** tool) | * Code must be nicely and consistently indented (you may use the **indent** tool) | ||
* Code must be commented | * Code must be commented | ||
- | * have a properly filled-out comment banner at the top | + | * Any "to be implemented" |
- | | + | |
- | * Output Formatting (including spacing-- overall field alignment is not needed) of program must conform to the provided | + | * Sufficient comments explaining |
* Track/ | * Track/ | ||
- | * Submit a copy of your source code to me using the **submit** tool. | + | * Submit a copy of your source code to me using the **submit** tool by the deadline. |
+ | * Make sure your submitted source code is in a file called **dtr0.c** | ||
+ | * Make sure it outputs exactly like the sample output above. | ||
- | To submit this program to me using the **submit** tool, run the following | + | ====Submit Tool Usage==== |
+ | Let's say you have completed work on the project, and are ready to submit, | ||
<cli> | <cli> | ||
- | $ submit cprog dir0 dtr0.c | + | lab46: |
Submitting cprog project " | Submitting cprog project " | ||
- | -> dtr0.c(OK) | + | -> dtr0.c(OK) |
SUCCESSFULLY SUBMITTED | SUCCESSFULLY SUBMITTED | ||
+ | lab46: | ||
</ | </ | ||
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. | 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. | ||
+ | I'll be evaluating the project based on the following criteria: | ||
+ | |||
+ | < | ||
+ | 39: | ||
+ | *: | ||
+ | *: | ||
+ | *: | ||
+ | *: | ||
+ | *: | ||
+ | *: | ||
+ | *: | ||
+ | *: | ||
+ | *: | ||
+ | *:dtr0:no compiler warnings nor errors for dtr0.c [4/4] | ||
+ | </ |