W05-ProgramStart

W05-ProgramStart - Starting a C Program 10/3/05 1 Program1...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
10/3/05 1 Starting a C Program 10/3/05 2 Program1 Grading Execution (45) All required files present (source, grading criteria) 15 Compiles (without Warnings or Errors) 15 Executes (produces expected output) 15 Inspection (10) Programmed correctly as specified. 10 Style (45) Required file (header) comment 15 Internal (in-line) appropriate comments 15 15 10/3/05 3 Example /* * Name: Gary Watson * Collaborator(s): None * Instructor: Gary Watson * Date: 10/3/03 * Assignment: Class Example * Description: Print a football cheer. */ #include <stdio.h> int main (void ) { /* print the message */ printf("Go Beavers!"); return 0; } File Header Comment Blank Lines (readability) Inline Comment Indenting – Use Tab Key!
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
10/3/05 4 Varibles and Integers • The course text covers this nicely 10/3/05 5 Solving a Problem • Print the squares and cubes of integers from 1 through 3. • Declare variables needed. • Calculate the numbers. • Print the results. 10/3/05
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 6

W05-ProgramStart - Starting a C Program 10/3/05 1 Program1...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online