October 21, 2016 Meeting

We will meet in the board room at 25N at 5:45 tonight.

Tonight’s Agenda:

  • Welcome & Introductions for anyone new tonight
  • Focus on the key concept of Procedures
    • Break a project into manageable units of work
    • Create reusable code blocks that are unit testable
    • Make your program’s code more readable; easier to follow the logic
  • Develop an algorithm together to solve a problem
  • Look at pseudocode; how does it help with the initial approach to problem solving
  • How do we break down the terms used in pseudocode into code blocks to be implemented?
  • Sample AP Exam Question: We will analyze and develop a programmatic solution to Sample Question #8 for the AP Computer Science Principles Course and Exam shown below:

The program segment below is intended to move a robot in a grid to a gray square. The program segment uses the procedure GoalReached which evaluates to true if the robot is in the gray square and evaluates to false otherwise. The robot in each grid is represented as a triangle and is initially facing left. The robot can move into a white or gray square but cannot move into a black region.

REPEAT UNTIL (GoalReached ())
{
IF (CAN_MOVE (forward)){MOVE_FORWARD()}
IF (CAN_MOVE (right)){ROTATE_RIGHT()}
IF (CAN_MOVE (left)){ROTATE_LEFT ()
}

apexamquestion8illustration

Notes for tonight’s meeting: Introduction to procedures FVGCC

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s