0% found this document useful (0 votes)
14 views8 pages

BSVZamora - Lab - Exp - 6 (Declaring Classes)

The document outlines a laboratory exercise for a course on Object Oriented Programming, focusing on declaring classes in Java. It includes program outcomes, learning objectives, and specific tasks such as creating a room class and an address book class with various functionalities. Additionally, it provides grading rubrics for evaluating the students' programming assignments.

Uploaded by

brandonsydzamora
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views8 pages

BSVZamora - Lab - Exp - 6 (Declaring Classes)

The document outlines a laboratory exercise for a course on Object Oriented Programming, focusing on declaring classes in Java. It includes program outcomes, learning objectives, and specific tasks such as creating a room class and an address book class with various functionalities. Additionally, it provides grading rubrics for evaluating the students' programming assignments.

Uploaded by

brandonsydzamora
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 8

COLLEGE OF COMPUTER STUDEIS

INFORMATION TECHNOLOGY DEPARTMENT

CCS0023L
(Object Oriented Programming)

EXERCISE

6
Declaring classes

Student Name / Group


Name: Zamora, Brandon Syd V.
Name Role
Members (if Group):

Section:
TX24
Professor:
I. PROGRAM OUTCOME/S (PO) ADRESSED BY THE LABORATORY EXERCISE
b. Analyze a complex problem and identify and define the computing requirements appropriate
to its solution.
g. Analyze the local and global impact of computing information technology on individuals,
organizations and society.

II. COURSE LEARNING OUTCOME/S (CLO) ADDDRESSED BY LABORATORY


EXERCISE
1 Understand the fundamental principle of object oriented programming.
3 Apply appropriate modern computing tools and resources to solve computing activities with
an understanding of limitations.

III. INTENDED LEARNING OUTOME/S (ILO) ADDRESSES BY THE LABORATORY


EXERCISE
 Create Java programs that utilizes the use of classes and objects

IV. BACKGROUND INFORMATION

To define a class, we write:

<modifier> class <name> {


<attributeDeclaration>*
<constructorDeclaration>*
<methodDeclaration>*
}
– where
 <modifier> is an access modifier, which may be combined with other types
of
modifier.

public class StudentRecord {

//we'll add more code here later

}
– where,
 public - means that our class is accessible to other classes outside the package
 class - this is the keyword used to create a class in Java
 StudentRecord - a unique identifier that describes our class
V. EXPERIMENTAL PROCEDURE:

1. Write a program to create a room class, the attributes of this class is


roomno, roomtype, roomarea and ACmachine. In this class the
member functions are setdata and displaydata.

2. Address Book Entry. Your task is to create a class that contains an


address book entry. The following table describes the information that an
adressbook entry has.

a. Provide the necessary accessor and mutator methods for all the
attributes.
b. Constructors

3. AddressBook. Create a class address book that can contain 100 entries of
AddressBookEntry objects (use the class you created in the first exercise). You
should provide the following methods for the address book.
a. Add entry
b. Delete entry
c. View all entries
d. Update an entry

1.

2.
3.
VI. QUESTION AND ANSWER:

1. Differentiate setters and getters.

Getters (accessors) are methods that return the value of an object's attribute, allowing you to read it
from outside the class.

Setters (mutators) are methods that update or assign a value to an attribute, enabling you to modify
it from outside the class.

2. What is the importance of constructor?

Constructors are essential for initializing objects, ensuring attributes are set correctly and
allowing flexibility in how objects are created

Note: The following rubrics/metrics will be used to grade students’ output in the lab Exercise
2.

Program (100 pts.) (Excellent) (Good) (Fair) (Poor)


Program Program executes Program executes Program executes Program does not
execution (20pts) correctly with no with less than 3 with more than 3 execute (10-11pts)
syntax or runtime errors (15-17pts) errors (12-14pts)
errors (18-20pts)
Correct output Program displays Output has minor Output has Output is incorrect
(20pts) correct output errors (15-17pts) multiple errors (10-11pts)
with no errors (12-14pts)
(18-20pts)
Design of output Program displays Program displays Program does not Output is poorly
(10pts) more than minimally display the designed (5pts)
expected (10pts) expected output required output (6-
(8-9pts) 7pts)
Design of logic Program is Program has slight Program has Program is
(20pts) logically well logic errors that do significant logic incorrect (10-
designed (18- no significantly errors (3-5pts) 11pts)
20pts) affect the results
(15-17pts)
Standards Program code is Few inappropriate Several Program is poorly
(20pts) stylistically well design choices inappropriate written (10-11pts)
designed (18- (i.e. poor variable design choices
20pts) names, improper (i.e. poor variable
indentation) (15- names, improper
17pts) indentation) (12-
14pts)
Delivery The program was The program was The program was The program was
(10pts) delivered on time. delivered a day delivered two days delivered more
(10pts) after the deadline. after the deadline. than two days after
(8-9pts) (6-7pts) the deadline. (5pts)

Topic Encapsulation and Inheritance


Lab Activity No 6a
Lab Activity Room Record
CLO 1,3
Program execution (20)
Correct output (20)
Design of output (10)
Design of logic (20)
Standards (20)
Delivery (10)
TOTAL

Topic Encapsulation and Inheritance


Lab Activity No 6b
Lab Activity Address Book Entry
CLO 1,3
Program execution (20)
Correct output (20)
Design of output (10)
Design of logic (20)
Standards (20)
Delivery (10)
TOTAL

Topic Encapsulation and Inheritance


Lab Activity No 6c
Lab Activity AddressBook
CLO 1,3
Program execution (20)
Correct output (20)
Design of output (10)
Design of logic (20)
Standards (20)
Delivery (10)
TOTAL

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy