0% found this document useful (0 votes)
50 views2 pages

Quezon City University: Pf101 - Object Oriented Programming

Box1 has dimensions of length 6, breadth 7, and height 5. Box2 has dimensions of length 12, breadth 13, and height 10. Students are instructed to create a Box class with data members for length, breadth, and height, then create two Box objects to calculate and display the volumes of Box1 and Box2. The output should display the volumes of Box1 as 210 and Box2 as 1560, along with a screenshot of the code and output including date and time.

Uploaded by

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

Quezon City University: Pf101 - Object Oriented Programming

Box1 has dimensions of length 6, breadth 7, and height 5. Box2 has dimensions of length 12, breadth 13, and height 10. Students are instructed to create a Box class with data members for length, breadth, and height, then create two Box objects to calculate and display the volumes of Box1 and Box2. The output should display the volumes of Box1 as 210 and Box2 as 1560, along with a screenshot of the code and output including date and time.

Uploaded by

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

QUEZON CITY UNIVERSITY

COLLEGE OF COMPUTER SCIENCE AND INFORMATION TECHNOLOGY

PF101 – OBJECT ORIENTED PROGRAMMING

NAME:
SCORE PERCENTAGE

STUDENT NO:
YEAR/SECTION:
DATE:

INSTRUCTIONS:

- Create a program that will demonstrate the proper way of defining a class. The program demonstrates
a Box class, with three data members’ variable, (length, breadth and height)

The program will compute for the volume (Object) of the box with the following given specifications:

Box1.height = 5.0
Box1.length = 6.0
Box1.breadth = 7.0

Box2.height = 10.0
Box2.length = 12.0
Box2.breadth = 13.0

Sample Output:

Volume of Box1 : 210


Volume of Box2 : 1560

Note:

1. Attached your VB project here in our google classroom


2. Take a screenshot of your output, source code and paste here in this document
including time and date of your computer.

You might also like