0% found this document useful (0 votes)
44 views

Assignment 2 - SWP

This document provides details for Assignment 2 in software programming. It includes 7 questions to answer related to object-oriented programming concepts in Java like abstraction, encapsulation, polymorphism, inheritance, multiple inheritance, advantages and disadvantages of OOP, method overloading and overriding, constructors, and exception handling. It also includes 2 programming problems to code console applications that display messages based on a given age and simulate a student course registration and examination process. Students are to submit their responses by November 24 either as a hardcopy or via the learning management system.

Uploaded by

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

Assignment 2 - SWP

This document provides details for Assignment 2 in software programming. It includes 7 questions to answer related to object-oriented programming concepts in Java like abstraction, encapsulation, polymorphism, inheritance, multiple inheritance, advantages and disadvantages of OOP, method overloading and overriding, constructors, and exception handling. It also includes 2 programming problems to code console applications that display messages based on a given age and simulate a student course registration and examination process. Students are to submit their responses by November 24 either as a hardcopy or via the learning management system.

Uploaded by

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

Assignment 2 – Software Programming

Assignment No 02 (T3, T5)


Relevant Modules M04

Issue date 2023 /09/26

Due date 2023 /11/24

Submission type Hardcopy to relevant Instructor / softcopy LMS

01. Explain following OOP concepts with java code examples (12 Marks)
i. Abstraction ii. Encapsulation

iii. Polymorphism iv. Inheritance

02. Explain multiple inheritance? (08 Marks)


03. What are the advantages & disadvantages of OOPS concepts? (At least 5 features for each) (10 Marks)
04. Compare Overloading & Overriding Concept? (10 Marks)
05. Why use constructor concept to the programming? (10 Marks)
06. Explain Exception handling mechanism & give different types of Exception handling processes by using
java code examples? (20 Marks)
07. Write console applications to following questions. (Java code)

a) Displays a different message depending on the age given. Here are the possible responses (15 Marks)

• Age is less than 16 should display “You cannot drive.”’


• Age is less than 18 should display “You cannot vote.”
• Age is less than 25 should display “You cannot rent a House.”
• Age is 25 or over should display “You can do anything that is legal.”
• Notice that a person who is under 16 should get three messages.

b) Read the following statements (15 Marks)

• At the begin student must select the course. (Courses should display through the list)
• For student’s course registration, student Name should be entered.
• Each student must do two assignments (give facilities to enter assignment marks)
• Average assignments marks should greater than 60% (It should be display)
• Also, total attendance should be greater than 80% (give facilities to enter attendance)
• Each student completed her pre requirements, he can sit for the final examination.
• Final exam should pass with more than 50% marks.
• A student can collect his certificate after passed the final exam.

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