You are on page 1of 5

Founded 1991 by Md.

Alimullah Miyan

College of Engineering and Technology


Department of Computer Science and Engineering

Home Assignment of Spring Semester 2021


Program: Bachelor of Computer Science and Engineering
Course Instructor: Rubayea Ferdows

Course Code: CSC 383 Submission Date: 7 May, 2021by 12 pm


Course Title: Java Programming Full Marks: 100
Section: F Date: 2 May, 2021

Instructions: (1) Answer all the questions. (2) Take a photo or download the question paper as soon as you open it. (3)
Marks allocated are indicated in the right margin. (4) After completing the assignment, take a photo of your answer
script, convert it to PDF and send it to google classroom. (5) You must write your name, ID number and page number on
every page of your answer script. Also, please sign on every page. Write your mobile number on the first page only.
(6)Full assignment should be hand written. (7) If necessary, you may contact your course instructor by phone.

1. Compare and contrast abstract classes and interfaces. Explain with CLO1 10
examples, why you would use an abstract class and why you would use an PO1
interface. C2
CLO2 10
2. Find out the error of the given program and explain how to solve it. PO1
Abstract class Parent { C2
static void m1()
{
System.out.println("From parent "+ "static m1()");
}
Abstract void m2()
{
System.out.println("From parent "+ "non-static(instance) m2()");
}
}

class Child extends Parent


{ static void m1()
Please contact if required:
Course Instructor: Rubayea Ferdows, email: rubayea@iubat.edu, Contact:
Founded 1991 by Md. Alimullah Miyan

{
System.out.println("From child static m1()");
}
public void m2()
{
System.out.println("From child "+ "non-static(instance) m2()");
}
}
class Main {
public static void main(String[] args)
{
Parent obj1 = new Child();
obj1.m1();
obj2.m2();
}
}

3. Assume you have a savings account in A2Z Bank. After creating the account, you have CO2 10
deposited some amount of money there. You had applied for a debit card and now you have PO1
got it. The bank employee informed you that to activate your account you need to call the C2
customer care. After calling the customer care they ask you some verification questions.
Then they sent you a SMS and asked you to confirm that you got the message without
sharing the pin code. Now by using the pin code you can do the transaction by your debit
card.
The JAVA features you can assume from the given situation give a brief explanation on that
with an example program.

Please contact if required:


Course Instructor: Rubayea Ferdows, email: rubayea@iubat.edu, Contact:
Founded 1991 by Md. Alimullah Miyan

4. Write a Java program that reads and displays information about students registered in CSC- CLO3 20
383.
● Create a class CSC383Student with instance variables including ID, Name, Gender PO2
to represent a student. C3
● The class also holds instance variables including FinalExamMark, MidExamMark,
TermExamMark, AssignmentMark, and AttendanceMark to calculate the
TotalMarks. The values of all these variables are within the range 0-100, inclusively.
● The constructor initializes all the attributes (except FinalMarks) during the creation
of a new object.
● ComputeFinalMarks() method computes the final mark of a CSC383 student and
assigns this value to the instance variable FinalMarks. The following formula is used
to compute the final mark:
TotalMarks=0.3* FinalExamMark+0.25* MidExamMark+0.25*
TermExamMark+0.15* AssignmentMark+0.05*Attendance Mark
● ComputeFinalGrade() method computes the final grade according to the IUBAT
grading system.
● Create a driver or a test class TestCSC383Student to create the CSC383Student
object and print the corresponding students’ grade.

5. Assume that you went shopping with your friends to buy a mobile phone. After selecting CLO2 20
the phone which cost 30000 taka. You are interested to give the payment through a debit PO1
card but unfortunately the card has only 15000 taka limit now you have only one option for C3
payment which is credit card for the rest of the amount because the max limit was 50000
taka. Also some reward points will be added with the previous points.
The JAVA features you can assume from the given situation give a brief explanation on
that with an example program.

6. You are asked to develop a dynamic website. The site should be a blog site where multiple CO3 15
users can create their account and post their blogs. The admin will check the posts and keep PO2
a track about the users. If needed the admin can delete any post or also ban a user for any C4
violation of the rules.
After analyzing the given requirements explain the JAVA OOP features that will be
needed here along with database connection.

Please contact if required:


Course Instructor: Rubayea Ferdows, email: rubayea@iubat.edu, Contact:
Founded 1991 by Md. Alimullah Miyan

7. JavaFX is a Java library used to develop Desktop applications as well as Rich Internet CLO3 15
Applications. As a software developer you are asked to develop an Inventory PO3
Management System by using JavaFX. Now design the feedback form of the customer for C5
this system by adding all the necessary fields of different types with labels.
Create the design in your compiler and take a screenshot and finally attach with the
pdf.

Course Learning Outcome (CLO):

CLO1 Explain the fundamentals of Java syntax and semantics.

CLO2 Apply Java features to solve problems in an object-oriented approach.


CLO3 Design and develop GUIs using JavaFX and apply them on advanced
applications.

Program Outcomes (POs):


PO#1 ● Engineering Knowledge
-An ability to apply knowledge of mathematics, science, engineering
fundamentals and an engineering specialization to the solution of complex
engineering problems.

PO#2 ● Problem Analysis


-An ability to identify, formulate, research literature, and analyze complex
engineering problems reaching substantiated conclusions using first principles
of mathematics, natural sciences and engineering sciences.

PO#3 ● Design and Development


-An ability to design solutions for complex engineering problems and design
systems, components or processes that meet specified needs with appropriate
consideration for public health and safety, cultural, societal, and environmental
considerations.

Please contact if required:


Course Instructor: Rubayea Ferdows, email: rubayea@iubat.edu, Contact:
Founded 1991 by Md. Alimullah Miyan

Bloom's Taxonomy Indicators


The Cognitive Domain
C1-Remembering: Recall or retrieve previous learned information.

C2-Understanding: Comprehending the meaning, translation, interpolation, and


interpretation of instructions and problems. State a problem in one's own words.

C3-Applying: Use a concept in a new situation or unprompted use of an abstraction.


Applies what was learned in the classroom into novel situations in the workplace.

C4-Analyzing: Separates material or concepts into component parts so that its


organizational structure may be understood. Distinguishes between facts and inferences.

C5-Evaluating: Make judgments about the value of ideas or materials.

C6-Creating: Builds a structure or pattern from diverse elements. Put parts together to
form a whole, with emphasis on creating a new meaning or structure.

Please contact if required:


Course Instructor: Rubayea Ferdows, email: rubayea@iubat.edu, Contact:

You might also like