07-CodingWeek2

07-CodingWeek2 - HDCC105 October 10, 2011 CODE, CODING,...

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 DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight 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

This note was uploaded on 01/12/2012 for the course HDCC 105 taught by Professor Staff during the Fall '11 term at Maryland.

Page1 / 14

07-CodingWeek2 - HDCC105 October 10, 2011 CODE, CODING,...

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

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