{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

07-CodingWeek2

07-CodingWeek2 - HDCC105 CODE CODING CONTROVERSY...

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

View Full Document Right Arrow Icon

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

View Full Document Right Arrow Icon

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

View Full Document Right Arrow Icon

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

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: HDCC105 October 10, 2011 CODE, CODING, CONTROVERSY Programming Languages • There are different categories of programming languages. • Some are compiled (human-readable code checked for syntax and turned into machine-executable code all at once before the program can run. • Some are interpreted (human-readable code checked for syntax and turned into machine-executable code line by line as needed while running). Pseudocode while there is music playing { if the floor is clear ahead { flip a coin if it was heads then do a basic figure otherwise do a promenade figure } otherwise if we are at a corner do a turning figure otherwise it must be crowded so do a figure that stalls you } C-style Code while (musicPlaying()) { if (floor.clearAhead()) { //assumes object called floor if (flipCoin()==heads) perform(basic); else perform(promenade); } else if (floor.corner()) perform(turn); else if (floor.trafficAhead()) //assumes object called floor perform(stall); } Language, control, goal....
View Full Document

{[ snackBarMessage ]}

Page1 / 14

07-CodingWeek2 - HDCC105 CODE CODING CONTROVERSY...

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

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