You are on page 1of 4

COMPONENT B:CALA TEACHER’S GUIDE

LEARNING AREA : COMPUTER SCIENCE

LEVEL : A ‘LEVEL

CALA TOPIC : OBJECT ORIENTED PROGRAMMING

TASK TITTLE : VB.NET PROGRAMS THAT IMPLENT CLASSES

CALA TYPE : PRACTICAL

COMPETENCES/SKILLS : RESEARCH, PROBLEM SOLVING, DESIGN

DEVELOPMENT AND TESTING

BACKGROUND

Object oriented programming is a software design approach in which programmers simulate real
life objects in programming codes. This is because in life we talk of objects in order to obtain
functionality through the use of classes, encapsulation, polymorphism and inheritance when
designing computer programs.

TASK

THE CALA HAS TWO PARTS A AND B

THE CALA

A programmer is tasked to design a program with the following specifications:

 An animal class with private states, namely: Animalname, colour, weight


 The class has public methods :GetAnimalname , Getcolour ,Getweight
 There exists only one instance of this class ,which dog name bhoki , black in colour
weight 10kg

Design and code a vb.net program that implements classes the details of the above scenario.

PART B

Create a class called account that stores customer name, account number and type of account

From this, derive the classes CurentAcc and SavingAcc and make the specific to their requirements

Include the necessary methods in order to achieve the following tasks:

 Accept deposit from customer and update the balance


 Display the balance
 Compute and deposit interest
 Permit withdrawal and update the balance
 Checks for the minimum balance balance and impose penalty, if neccessary
COMPONENT B: LEARNER’S CALA GUIDE

LEARNING AREA : COMPUTER SCIENCE

LEVEL : A ‘LEVEL

CALA TOPIC : OBJECT ORIENTED PROGRAMMING

TASK TITTLE : VB.NET PROGRAMS THAT IMPLENT CLASSES

CALA TYPE : PRACTICAL

COMPETENCES/SKILLS : RESEARCH, PROBLEM SOLVING, DESIGN

DEVELOPMENT AND TESTING

BACKGROUND

Object oriented programming is a software design approach in which programmers simulate real
life objects in programming codes. This is because in life we talk of objects in order to obtain
functionality through the use of classes, encapsulation, polymorphism and inheritance when
designing computer programs.

TASK

THE CALA HAS TWO PARTS A AND B

THE CALA

A programmer is tasked to design a program with the following specifications:

 An animal class with private states, namely: Animalname, colour, weight


 The class has public methods :GetAnimalname , Getcolour ,Getweight
 There exists only one instance of this class ,which dog name bhoki , black in colour
weight 10kg

Design and code a vb.net program that implements classes the details of the above scenario.
[15]

PART B

Create a class called account that stores customer name, account number and type of account

From this, derive the classes CurentAcc and SavingAcc and make the specific to their requirements

Include the necessary methods in order to achieve the following tasks:

Accept deposit from customer and update the balance


 Display the balance
 Compute and deposit interest
 Permit withdrawal and update the balance
 Checks for the minimum balance and impose penalty, if necessary [15]

CALA TIP: You are reminded to make use of comments, indentation ad blank line to make your
code simple and easy to understand

HOW YOU WILL BE ASSESSED

Marks will be awarded for:

Ability to design vb.net interface that implement classes to capture the details of the scenario in
Part A

 Ability to create a class called account in Part B:


 Accepts deposits from customers and update the balance
 Display the balance
 Compute and deposit interest
 Permit withdrawal and update the balance
 Checks for the minimum balance and impose penalty, if necessary

You might also like