P. 1
IT210 / IT 210 / Week 8 CheckPoint: Object-Oriented Data and Processes

IT210 / IT 210 / Week 8 CheckPoint: Object-Oriented Data and Processes

|Views: 2,784|Likes:
Published by Number1Tutor
CheckPoint: Object-Oriented Data and Processes
 Resource: Ch. 8 in Extended Prelude to Programming: Concepts and Design (2nd ed.)
 Due Date: Day 5 [Individual] forum
 Identify a task you perform regularly, such as cooking, mowing the lawn, or driving a car.
 Write a short, structured design (pseudocode only) that accomplishes this task.
 Think about this task in an object-oriented way, and identify the objects involved in the task.
 Identify how you can encapsulate the data and processes you identified into an object-oriented design.
 Describe the architectural differences between the object-oriented and structured designs. Which of the designs makes more sense to you? Why?
CheckPoint: Object-Oriented Data and Processes
 Resource: Ch. 8 in Extended Prelude to Programming: Concepts and Design (2nd ed.)
 Due Date: Day 5 [Individual] forum
 Identify a task you perform regularly, such as cooking, mowing the lawn, or driving a car.
 Write a short, structured design (pseudocode only) that accomplishes this task.
 Think about this task in an object-oriented way, and identify the objects involved in the task.
 Identify how you can encapsulate the data and processes you identified into an object-oriented design.
 Describe the architectural differences between the object-oriented and structured designs. Which of the designs makes more sense to you? Why?

More info:

Published by: Number1Tutor on May 22, 2011
Copyright:Traditional Copyright: All rights reserved
List Price: $3.99 Buy Now

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
See more
See less

01/11/2013

$3.99

USD

pdf

text

original

Driving a vehicle Open the drivers side door Sit in the driver’s seat Close the drivers side

door Adjust seatbelt and lock accordingly Put key into ignition switch Check blind spots, and adjust (center and sides) mirrors Put the car in the correct gear Accelerate by pressing on gas pedal Its best to consider this task as objective based, and further identify each objective in the task

Objects: 1. The vehicle itself has several components (mirror, gear, gas, gas pedal, door, ignition, seat-belt) 2. Key Identify the ways you can encapsulate the information and processes you observed

The following describes a service –oriented approach. The performer is responsible for only control functions and there is various worker components that perform the task. For example.close = true Set Seat-belt. there are options to alternate an object oriented design more efficient without costing the flexibility or reuse of the experiment. Objectives are completed both quickly and efficiently.into an object-oriented design. the object-oriented designed is equally flexible and can be reused easily. each particular component is designed to be independent. the design has enough flexibility to support required changes inside the system. by implementing both structured analysis and design.on = true Call Ignition Call Mirror adjust Call Gearngage Call GasPedal End With Car The primary difference between a structured design and an Object-Oriented design is the manner in which control is handled. For example. but the results are not nearly as efficient. the design is not prepared to be reused in a different domain. In an Object-Oriented design. you can simply apply the second and get the very best data. . Ultimately. In order for the task to be successful. you have to make the effort to get the services needed from various service suppliers. The structured approach tends to be more efficient. Consequently. The model of control is separated from the functions in a structure approach. Object-oriented design provides a much better design compared to a structured design. The best structured designs have a single “smart” controller. this approach becomes the most efficient because regardless of the original method. However. The structured design is more logical because the results are more efficient and simpler to comprehend. With Car Set Door. Normally. the control is separated into every object.

You're Reading a Free Preview

Download
scribd