Week 8 Checkpoint 2 Object

Week 8 Checkpoint 2 Object - Function Enter Car () as Real...

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

View Full Document Right Arrow Icon
Week 8 Checkpoint 2 Object-Oriented Data and Processes Declare Car Door as Real Declare Car as Real Declare Brake Pedal as Real Declare Drive as Real Open Car Door Sit in Car Close CarDoor Press BrakePedal Start Car Put car in Drive Release BrakePedal Accelerate Car End Program Class Car Operation Declare Car as Real Declare Car Entry 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
Declare Car Driver as Real Subprogram Enter Car Set Enter Car = Open Car Door Get into Car Close Car Door End Subprogram Subprogram Drive Car Set Drive Car = Start Car Put Car in Drive Release Brake Pedal Accelerate Car End Subprogram
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Function Enter Car () as Real Set Enter Car = Car Entry End Function Function Drive Car () as Real Set Drive Car = Car Driver End Function End Class A programmer using the top-down, modular approach to program design begins by determining fundamental tasks. An object-oriented programmer, on the other hand, determines the fundamental objects associated with a problem. I see both object oriented and structured designs as benefactors depending on the situation. I enjoy the fundamentals of object orientated programming....
View Full Document

Page1 / 3

Week 8 Checkpoint 2 Object - Function Enter Car () as Real...

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