Purchase Solution

Common Task in Pseudocode with Data and Processes

Not what you're looking for?

Ask Custom Question

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?

Purchase this Solution

Solution Summary

283 words convert the everyday task of using a bank account into object-orientated pseudocode.

Solution Preview

I have a bank account. I want to use this account to save and withdraw money. I also want to check how much money left in this account.
1. Here is a structured design that accomplishes this task.
I have a public variable, say balance. I have three tasks related to this balance.
(1) Save money
void save(double money) { balance = balance + money; }
(2) Withdraw money
void save(double money) {
// check if the balance has enough money to be withdrawed
if ...

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.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

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.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

C++ Operators

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