Purchase Solution

Object-Oriented Data and Processes Pseudocode

Not what you're looking for?

Ask Custom Question

Identify a task you perform regularly, such as 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?

Purchase this Solution

Solution Summary

This solution provides a short pseudocode that accomplishes the task of driving a car.

Solution Preview

Pseudo code for Driving a Car:

driveCar(key,door,gear,accelerator,clutch)
{
if (water_of_car is less) then
fillWater();
if (oil_of_car is less) then
fillOil();
getIntoCar();
insertKey();
enginestatus=startEngine();

if(enginestauts==ON)
releaseHandBreak();
moveCar();

while(engineStatus==ON)
{
if(moveCar) then
switchGear();
}//end of while

}// end of driveCar()

// sub modules

fillWater()
{
Fill the radiator with enough Water;
}
fillOil()
{
fill the Oil tank;
}

getIntoCar()
{
open door;
go inside the car;
}

insertKey()
{
take the key and insert it into the key holder;
}

startEngine()
{
press the start button to start the engine of the ...

Purchase this Solution


Free BrainMass Quizzes
Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Javscript Basics

Quiz on basics of javascript programming language.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

C# variables and classes

This quiz contains questions about C# classes and variables.

C++ Operators

This quiz tests a student's knowledge about C++ operators.