Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Assignment 1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

FACULTY COMPUTER MEDIA AND TECHNOLOGY MANAGEMENT

Course Name (Code) Object Oriented Programming (BCS 2233)


Bachelor of Computer Science (Honours)
Program
Bachelor of Information Technology with Business managemant (BIBM)
Semester (Session) 2 (2023/2024)

Course Learning Outcome No. & Assessed for the Assessment


CLO1: Ability to identify computational problem (C1)
CLO2: Ability to translate a computer program to solve real life problems using
CLO Assessed:
an object oriented program language (such as JAVA) and tools. (C2)
CLO3: Ability to apply the object oriented concept and approach in solving problems. (C3)
PLO2: ability to use current techniques, skills and tools in any related field in Information
Technology and Busiess Management(practical Skills)
PLO1- ability to apply current knowledge and adapt to emerging application in any related field of
Information Technology and Business Management(Knowledge)
PLO/LO /SS Evaluated: PLO3- ability to identify analyses and apply critical thinking skills to
troubleshoot and solve technical problems (Critical Thinking and Problem
Solving)

Assessment Type Percentage contributes to total


Assignment 1 15%
(Number) mark

Release Date (Week) (week 12) Submission Date

Student Name

Matric Number

Administrative Procedure

Prepared by: Checked and approved by:

__________________________________ _________________________________
Name: SURIATI JAMALLUDIN Name:
Date : 5/5/2024 Date :

Comment(s): Total Marks:

/50
MEMBERS NAME & MATRIC NO:

ATTRIBUTE CLO Very Poor Poor Average Good Excellent Marks


1 2 3 4 5
Draw UML 2 Unable to create Measurement marks is Partially create Able to create UML according to Correct UML according /5
(TASK 1) UML according to between range of level 1(very UML scenario to scenario.
scenario poor) to level 3(average)
Draw UML 2 Totally incorrect Measurement marks is Partially correct Correct answer Good explanation /5
(TASK 2f) answer between range of level 1(very answer
poor) to level 3(average)
Develop and 2 Unable to create Measurement marks is Partially success in Measurement marks is between Program able to /10
execute program between range of level 1(very developing range of level 3(average) to level execute with 0 errors
program poor) to level 3(average) program 5(excellent) and according to
(TASK 1) requirement.
Develop and 2 Unable to create Measurement marks is Partially success in Measurement marks is between Program able to /10
execute program between range of level 1(very developing range of level 3(average) to level execute with 0 errors
program poor) to level 3(average) program 5(excellent) and according to
(TASK 2g) requirement.
Correct Incorrect answer Correct answer for 2/5 Correct answer for Correct answer for 4/5 questions Correct answer for 5/5 /10
answer on for all questions questions 3/5 questions questions
inheritance
and
polymorphis
m (TASK 2a-
3)
Plagiarism 2 Plagiarism Measurement marks is Plagiarism Measurement marks is between Authentically done /10
occurred between range of level 1(very occurred range of level 3(average) to level independently.
poor) to level 3(average) semantically. 5(excellent)
Total /50

Page 2
Complete ALL tasks in group of TWO.

TASK 1
Write a Java Program to create array of objects for THREE (3) passengers to book a
bus PERMATA ticket. You are required to:

a. Create a class with methods getdata() to read the information (Ticket_Id,


Customer_name, seat_no, date, departure_time (hh,min) and confirmation status
(y/n)). Store the ticket information for THREE (3) passengers.
b. Another member method search_info() to print the status of the ticket, providing a
ticket number.
c. Draw a Unified Modeling Language diagram describes classes and their
attributes, constructors and methods as well as the connections between classes
for the above scenario.
d. Write a complete Java Program that produce the following output:

Page 3
TASK 2
Write a Java program to create a class called `Animal` with two attributes: `name` and
`type`. The `Animal` class should have a `makeSound()` method. Create two child classes
of the `Animal` class: `Kambing` and `Kucing`. The `Kambing` class should override the
`makeSound()` method to print "Embekk!". The `Kucing` class should override the
`makeSound()` method to print "Meow!". In the main method, create an instance of each
child class and call the `makeSound()` method on each instance.

Answer the following questions


a. What is inheritance?
b. What are the benefits of using inheritance? (
c. What is polymorphism?
d. What are the different types of polymorphism?
e. How did the `makeSound()` method in the `Kucing` and `Kambing` classes
overload and override the `makeSound()` method in the `Animal` class? (4
marks)
f. Draw a Unified Modeling Language diagram describes classes and their
attributes, constructors and methods as well as the connections between
superclass and subclasses for the above scenario.
g. Write a complete executable program in Java.

Page 4

You might also like