Object Oriented Data and Processes ChckPnt 2 Wk8

Object Oriented Data and Processes ChckPnt 2 Wk8 - Identify...

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

View Full Document Right Arrow Icon
Identify Task Mow lawn Declare Lawn Mower as Real Declare Pull start as Real Declare safety Rod as Real Psuedocode Hold down safety bar Pull start cord Adjust Wheel Height Start Lawnmower Push forward At obstacle change direction Yard = task Push mower Complete task End Program Objects involved in task Person, hands, feet, eyes Yard, grass, obstacles Mower, handle, wheels, blade, Identify how to encapsulate the data and processes. Class Mower Body As Real Wheels As Real Subprogram SetMotor ( power) Set Pull Cord = Starting Trigger Start Mower End Sub Program Subprogram adjust idle Adjust idle End Subprogram Subprogram = mow lawn Push mower till obstacle Obstacle = change direction Task = yard Mow till task complete End subprogram Function Enter - Mower ( ) as Real
Background image of page 1

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

View Full DocumentRight Arrow Icon
Set “start mower” = starting mower End Function Function Task ( ) as Real Set Complete Task = TaskComplete End Function End Class Describe the architectural difference between Object oriented and structured designs. Which makes more sense and why? Object oriented refers to an approach to program design and coding that places
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/07/2011 for the course IT 240 242 taught by Professor Some during the Spring '10 term at University of Phoenix.

Page1 / 2

Object Oriented Data and Processes ChckPnt 2 Wk8 - Identify...

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

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