Lab Manual Object Oriented Programming with JAVA (15ECSP203)

Size: px
Start display at page:

Download "Lab Manual Object Oriented Programming with JAVA (15ECSP203)"

Transcription

1 Lab Manual Object Oriented Programming with JAVA (15ECSP203)

2 Sl. No. Contents 1. Course Outcomes (COs) 2. List of Experiments 3. Introduction to Object Oriented Programming 4. Standard Operating Procedure 5. Java Tools 6 Procedure to Create and Execute Java Project in Eclipse IDE 7. Example for Experiments

3 Course Outcomes (COs) At the end of the course the student should be able to: 1. Apply Object Oriented Programming concepts to solve a given problem. 2. Apply design patterns to design a solution for a given problem. 3. Apply inheritance, polymorphism and exception handling mechanism to implement reusable, robust java programs. 4. Perform unit testing for an identified method/methods of a class/classes. 5. Implement user interface java programs for a given scenario. List of Experiments Sl. No. Category Topics for experiments to be conducted under each category Arrays, Strings and StringBuffer 1. Exercises Classes and Objects Inheritance and Polymorphism Runtime Error Management : Exception Handling Classes and Objects 2. Structured Enquiry Inheritance and Polymorphism Runtime Error Management : Exception Handling GUI Design and Event Handling 3. Open Ended Problem domain will be given to a group of students, which is based on the exercises of the laboratory course. Implementation has to be carried out in the laboratory.

4 Introduction to Object Oriented Programming The object oriented paradigm is built on the foundation laid by the structured programming concepts. The fundamental change in OOP (Object Oriented Programming) is that a program is designed around the data being operated upon rather upon the operations themselves. Data and its functions are encapsulated into a single entity. OOP facilitates creating reusable code that can eventually save a lot of work. A feature called polymorphism permits to create multiple definitions for operators and functions. Another feature called inheritance permits to derive new classes from old ones. OOP introduces many new ideas and involves a different approach to programming than the procedural programming. Benefits of object oriented programming Data security is enforced (Data Centric). Inheritance saves time (Reusability). User defined data types can be easily constructed. Large complexity in the software development can be easily managed. Standard Operating Procedure The Standard Operating Procedure (SOP) defines how the laboratory course is conducted for Object Oriented programming with JAVA lab and it is defined by the following steps. 1. The student has to come to lab with class notes and it is used as a ready reference for the concepts discussed in the class room. 2. The first activity for the student is to practice the class room programs (code) and verify the programs with different test cases. 3. All the students once complete the class room programs, they will be given an assignment and it is individual activity. This assignment test the ability of the student to apply the concepts taught in the class room. This assignment is guided assignment where the student is assisted on demand, in solving the problem. 4. The step 3 is optional and all the students are evaluated as per the category of experiments.

5 5. Evaluation procedure : The student has to first submit the written proposed solution for a given problem statement and it is verified (evaluated as per the rubrics) by the faculty then the student can type the code and demonstrate. Evaluation Students Assessment Through ISA (80%) + ESA (20%) Assessment Marks Internal Semester Assessment (80%) Exercises 40 Structured Enquiry 20 Open Ended and Course Activity * * Indicates marks from theory CIE. Semester End Assessment (20%) 20 TOTAL MARKS * Java Tools The students will be introduced to the following topics Introduction to the java environment Use of IDE (Eclipse) Defining simple classes and creating objects.

6 Procedure to Create and Execute Java Project in Eclipse IDE 1. Choose File New Java Project from the Eclipse menu bar, as in the following example : 2. The following window will be displayed. Enter the Project name and make sure the "Use Project folder as root for sources and class files" option is selected in the "Project layout" section as shown in the image below:

7 3. If you click the "Configure default..." link in the "Project Layout" area, you can make these settings your default settings for new projects. Select "Project" for the "Source and output folder" option and click "OK" button. We recommend that students configure Eclipse in this way. 4. After returning to the New Project Wizard dialog box, click Finish to actually create the project you just described. The following screen will be displayed, denoting a workspace with one project to choose from the Package Explorer: Note: If you forgot to close the Welcome screen (shown in the prior step), then you will not see the above window. To close the Welcome screen, click the X on the tab labeled

8 Welcome (towards the top left of the Eclipse window). Now you should see the workspace. 5. Congratulations, you have created your first Java project! But, we're only part way there. Next comes putting some substance (code) into the project to make a working program! 6. We need to create a source file where we will write our program. Right click on the "HelloWorld" project in the Package Explorer tabbed pane on the left side of the screen and navigate to New Class, as in the following example: 7. Another window will be displayed. Then click in the text box labeled "Name:" and type in HelloWorld, as in the following example:

9 Click Finish. This step will create a new file named HelloWorld.java and add it to the project for you. It will also open a tabbed window where you can edit the HelloWorld.java source file. 8. Now that we've completed the setup we can write the program. Enter the following text into the HelloWorld.java window. 9. Go to the left Package Explorer pane. The HelloWorld folder should be opened, but if it is not, double click on folder to open it. Then, double click on the "(default package)" to

10 access thehelloworld.java file. Right click on the file and select Run As Java Application. Example for Experiments 1. Design java application to model Employee of an ABC organization. Consider types of employees as a. Manager b. Sales Person Perform the following a. Implement simple inheritance where Employee (employee ID, First Name, Last Name, Current salary) is super class, consider Manager (number of stock options) and SalesPerson (number of sales, commission rate) as subclasses. b. Define parameterized constructors in class hierarchy. c. Define methods to display status of employee (override tostring() ) and increase current payment (salary) as giving bonus by a small amount. d. Identify the different options of giving bonus (to increase current pay by small amount) and consider type of employee while giving bonus. Apply polymorphism for methods using inheritance in class hierarchy. e. Create an array of super class variables and populate array with sub class objects. Call methods using array of objects. 2. Create class Employee with name, Id, cellnum, designation, department, salary permanent (boolean) as members. Also create separate class for member name as EmpName, department as Department and salary as Salary. Members of EmpName are firstname, midname, lastname. Members of Salary are basic, dapercent, hra, pf, insurance. Members of Department are deptname,deptcode. Create an instance of Employee and initialize all its members from user input console. Access the same instance by more than one reference of Employee. Count the number of references and objects being created. [class,references,objects]. 3. Create a super class Bindu {x,y} and subclass Bindu3d {z}

11 a. include a parameterized constructor in class Bindu to initialize object. b. include a method in class Bindu to print data members of object. Override the same method in sub class and reuse the inherited method in it c. Create final static member printarr (Bindu[ ]) which print array of objects. In this method use above method to print member of individual objects of array. d. Write test class to create to array of Bindu3d type. Use the above method to print all the objects of array. 4. A bank maintains two kinds of accounts Savings account and Current account. The savings account provides simple interest, deposit and withdrawal facilities. The current account only provides deposit and withdrawal facilities. Current account holders should also maintain minimum balance. If balance falls below minimum level a service charge is imposed. Create an abstract class Account that stores customer name, account number type of account and abstract methods. From this derive the classes Curr_Account (double balance, double min_bal, double servicecharge / penalty) and and Sav_Account (double balance). Include the necessary methods in order to achieve the following: a. Define parameterized constructor in a class hierarchy. b. Allow deposit and update the balance. c. Display the balance. d. Compute interest and add to balance. e. Permit withdrawal and update the balance (check for minimum balance). f. Apply polymorphism if required for methods in class hierarchy. g. Create an array of super class / object and populate with subclass objects and call the overridden / object methods. h. Write a test program to demonstrate the above said implementations. 5. Define a interface EMPInterface (void displayemp(), void givebonus (double amount)). Define an abstract class Employee(empID, fname, lname, salary). Define a concrete class Manager (noofotockoptions), subclass of Employee and define interface methods. Perform the following

12 a. Define appropriate constructors in a class hierarchy. b. Ensure the bonus amount should not be negative and zero using exception handling mechanism (use throws and throw clauses of exception handling). c. Create array of interface reference variables and populate with manager objects. d. Write a test program to implement the above said requirements of interface implementation and exception handling. 6. Create an interface mobilephone {makeaudiocall (string ellnum), makevideocall (string cellnum), Boolean iscamerfeatured()} a. Create a subclass BudgetPhone, smartphone and implement methods appropriately. b. Create an exception class cameranotfound use it handle exception when a video call attempt is made on non camera phone. In such case audio call should be made to handle such exceptions. 7. Create window through which an account of a customer for a bank can be created and stored as objects. Also include a feature to search customer based on account number. 8. Create a window to input minor1, minor2 and assignment marks for a student and store it as object, also provide feature to display total marks of each student and number of students in each grade. 9. Write a java program to accept user name in a text box. Accept the class of the user (Faculty, student, admin etc.,) using radio buttons and the hobbies of the user using checkboxes. Display the selected options in a textarea/textbox. 10. Simulate loan application. The loans are four wheeler loan and two wheeler loan. The application has to provide functionality to calculate EMI, pay EMI and display the customer details along with his loan details till he clears the loan. The rate of interest for two wheeler loan changes from lower to higher value, the application should update the changes. Consider some collection (array) to store different loan objects. Define appropriate classes, constructors, objects and other constructs to complete the implementation.

Chapter 5 Object-Oriented Programming

Chapter 5 Object-Oriented Programming Chapter 5 Object-Oriented Programming Develop code that implements tight encapsulation, loose coupling, and high cohesion Develop code that demonstrates the use of polymorphism Develop code that declares

More information

ALIGARH MUSLIM UNIVERSITY Department of Computer Science. JAVA Lab Assignment Course: MCA II nd Semester Academic Session:

ALIGARH MUSLIM UNIVERSITY Department of Computer Science. JAVA Lab Assignment Course: MCA II nd Semester Academic Session: ALIGARH MUSLIM UNIVERSITY Department of Computer Science Dated: 25-01-2016 JAVA Lab Assignment Course: MCA II nd Semester Academic Session: 2015-2016 CSM-241: Object Oriented Programming Using JAVA Note:

More information

Write a java program to prints the count of odd and even no s entered.

Write a java program to prints the count of odd and even no s entered. Dated: 27-01-2014 ALIGARH MUSLIM UNIVERSITY Department of Computer Science CS-2P1: Object Oriented Programming Using JAVA Java Lab Assignment Course: MCA (Semester-II nd ) Academic Session: 2013-2014 Note:

More information

Lecture Contents CS313D: ADVANCED PROGRAMMING LANGUAGE. What is Inheritance?

Lecture Contents CS313D: ADVANCED PROGRAMMING LANGUAGE. What is Inheritance? CS313D: ADVANCED PROGRAMMING LANGUAGE Computer Science department Lecture 5: Inheritance & Polymorphism Lecture Contents 2 What is Inheritance? Super-class & sub class Protected members Creating subclasses

More information

CS313D: ADVANCED PROGRAMMING LANGUAGE

CS313D: ADVANCED PROGRAMMING LANGUAGE CS313D: ADVANCED PROGRAMMING LANGUAGE Computer Science department Lecture 5: Inheritance & Polymorphism Lecture Contents 2 What is Inheritance? Super-class & sub class Protected members Creating subclasses

More information

COWLEY COLLEGE & Area Vocational Technical School

COWLEY COLLEGE & Area Vocational Technical School COWLEY COLLEGE & Area Vocational Technical School COURSE PROCEDURE FOR JAVA PROGRAMMING CIS1868 3 Credit Hours Student Level: This course is open to students on the college level in either freshman or

More information

Course Code Course Name Theory Practical Tutorial Theory TW/Practical Tutorial Total. Internal assessment. End Sem. Exam. Avg.

Course Code Course Name Theory Practical Tutorial Theory TW/Practical Tutorial Total. Internal assessment. End Sem. Exam. Avg. Course Code Course Name Theory Practical Tutorial Theory TW/Practical Tutorial Total ITL304 Java Programming Lab -- 2+2* -- -- 2 -- 2 Examination Scheme Theory Marks Course Code Course Name Internal assessment

More information

Inheritance and Polymorphism

Inheritance and Polymorphism Object Oriented Programming Designed and Presented by Dr. Ayman Elshenawy Elsefy Dept. of Systems & Computer Eng.. Al-Azhar University Website: eaymanelshenawy.wordpress.com Email : eaymanelshenawy@azhar.edu.eg

More information

CS111: PROGRAMMING LANGUAGE II

CS111: PROGRAMMING LANGUAGE II 1 CS111: PROGRAMMING LANGUAGE II Computer Science Department Lecture 8(a): Abstract Classes Lecture Contents 2 Abstract base classes Concrete classes Dr. Amal Khalifa, 2014 Abstract Classes and Methods

More information

Programming II (CS300)

Programming II (CS300) 1 Programming II (CS300) Chapter 05: Inheritance and Interfaces MOUNA KACEM mouna@cs.wisc.edu Fall 2018 Inheritance and Interfaces 2 Introduction Inheritance and Class Hierarchy Polymorphism Abstract Classes

More information

(800) Toll Free (804) Fax Introduction to Java and Enterprise Java using Eclipse IDE Duration: 5 days

(800) Toll Free (804) Fax   Introduction to Java and Enterprise Java using Eclipse IDE Duration: 5 days Course Description This course introduces the Java programming language and how to develop Java applications using Eclipse 3.0. Students learn the syntax of the Java programming language, object-oriented

More information

CS313D: ADVANCED PROGRAMMING LANGUAGE

CS313D: ADVANCED PROGRAMMING LANGUAGE CS313D: ADVANCED PROGRAMMING LANGUAGE Computer Science department Lecture 4(b): Inheritance & Polymorphism Lecture Contents What is Inheritance? Super-class & sub class The object class Using extends keyword

More information

Lesson Plan. Subject: OBJECT ORIENTED PROGRAMMING USING C++ :15 weeks (From January, 2018 to April,2018)

Lesson Plan. Subject: OBJECT ORIENTED PROGRAMMING USING C++ :15 weeks (From January, 2018 to April,2018) Lesson Plan Name of the Faculty Discipline Semester :Mrs. Reena Rani : Computer Engineering : IV Subject: OBJECT ORIENTED PROGRAMMING USING C++ Lesson Plan Duration :15 weeks (From January, 2018 to April,2018)

More information

CS/B.TECH/CSE(OLD)/SEM-6/CS-605/2012 OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70

CS/B.TECH/CSE(OLD)/SEM-6/CS-605/2012 OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70 CS/B.TECH/CSE(OLD)/SEM-6/CS-605/2012 2012 OBJECT ORIENTED PROGRAMMING Time Allotted : 3 Hours Full Marks : 70 The figures in the margin indicate full marks. Candidates are required to give their answers

More information

Course materials Reges, Stuart, and Stepp, Martin. Building Java Programs: A Back to Basics Approach. 2d ed. (Boston: Addison-Wesley, 2011).

Course materials Reges, Stuart, and Stepp, Martin. Building Java Programs: A Back to Basics Approach. 2d ed. (Boston: Addison-Wesley, 2011). AP Computer Science A Advanced Placement Computer Science A is a fast-paced course equivalent to a college introductory programming class. Students will learn about the exciting kinds of problems tackled

More information

Inheritance, and Polymorphism.

Inheritance, and Polymorphism. Inheritance and Polymorphism by Yukong Zhang Object-oriented programming languages are the most widely used modern programming languages. They model programming based on objects which are very close to

More information

JAVA MOCK TEST JAVA MOCK TEST II

JAVA MOCK TEST JAVA MOCK TEST II http://www.tutorialspoint.com JAVA MOCK TEST Copyright tutorialspoint.com This section presents you various set of Mock Tests related to Java Framework. You can download these sample mock tests at your

More information

CSE 1325 Project Description

CSE 1325 Project Description CSE 1325 Summer 2016 Object-Oriented and Event-driven Programming (Using Java) Instructor: Soumyava Das Project III Assigned On: 7/12/2016 Due on: 7/25/2016 (before 11:59pm) Submit by: Blackboard (1 folder

More information

How to Access If Rubrics does not appear on your course navbar, click Edit Course, Tools, Rubrics to activate..

How to Access If Rubrics does not appear on your course navbar, click Edit Course, Tools, Rubrics to activate.. KODIAK QUICK GUIDE Rubrics Overview Rubrics allow you to establish set criteria for grading assignments; you can attach Rubrics to Dropbox folders or Discussion topics so that the criteria are available

More information

Lesson 10B Class Design. By John B. Owen All rights reserved 2011, revised 2014

Lesson 10B Class Design. By John B. Owen All rights reserved 2011, revised 2014 Lesson 10B Class Design By John B. Owen All rights reserved 2011, revised 2014 Table of Contents Objectives Encapsulation Inheritance and Composition is a vs has a Polymorphism Information Hiding Public

More information

STUDENT LESSON A20 Inheritance, Polymorphism, and Abstract Classes

STUDENT LESSON A20 Inheritance, Polymorphism, and Abstract Classes STUDENT LESSON A20 Inheritance, Polymorphism, and Abstract Classes Java Curriculum for AP Computer Science, Student Lesson A20 1 STUDENT LESSON A20 Inheritance, Polymorphism, and Abstract Classes INTRODUCTION:

More information

Avg. Of Test 1 and Test 2. Exam

Avg. Of Test 1 and Test 2. Exam Subject Code ECL303 Subject Code ECL303 Subject Name OOP using JAVA laboratory Subject Name OOP using JAVA laboratory Teaching Scheme Credits Assigned (Hrs.) Theory Practical Tutorial Theory TW/Pracs Tutorial

More information

Lab 1: Introduction to C Programming. (Creating a program using the Microsoft developer Studio, Compiling and Linking)

Lab 1: Introduction to C Programming. (Creating a program using the Microsoft developer Studio, Compiling and Linking) Lab 1: Introduction to C Programming (Creating a program using the Microsoft developer Studio, Compiling and Linking) Learning Objectives 0. To become familiar with Microsoft Visual C++ 6.0 environment

More information

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 60 0 DEPARTMENT OF INFORMATION TECHNOLOGY QUESTION BANK III SEMESTER CS89- Object Oriented Programming Regulation 07 Academic Year 08 9 Prepared

More information

Expense Management. User Guide. Tenant Resale Module. NEC NEC Corporation. November 2010 NDA-30988, Issue 2

Expense Management. User Guide. Tenant Resale Module. NEC NEC Corporation. November 2010 NDA-30988, Issue 2 Expense Management Tenant Resale Module User Guide NEC NEC Corporation November 2010 NDA-30988, Issue 2 Liability Disclaimer NEC Corporation reserves the right to change the specifications, functions,

More information

Lab #1: A Quick Introduction to the Eclipse IDE

Lab #1: A Quick Introduction to the Eclipse IDE Lab #1: A Quick Introduction to the Eclipse IDE Eclipse is an integrated development environment (IDE) for Java programming. Actually, it is capable of much more than just compiling Java programs but that

More information

Programming II (CS300)

Programming II (CS300) 1 Programming II (CS300) Chapter 05: Inheritance and Interfaces MOUNA KACEM mouna@cs.wisc.edu Spring 2018 Inheritance and Interfaces 2 Introduction Inheritance and Class Hierarchy Polymorphism Abstract

More information

Graphical Interface and Application (I3305) Semester: 1 Academic Year: 2017/2018 Dr Antoun Yaacoub

Graphical Interface and Application (I3305) Semester: 1 Academic Year: 2017/2018 Dr Antoun Yaacoub Lebanese University Faculty of Science Computer Science BS Degree Graphical Interface and Application (I3305) Semester: 1 Academic Year: 2017/2018 Dr Antoun Yaacoub 2 Crash Course in JAVA Classes A Java

More information

Basic Object-Oriented Concepts. 5-Oct-17

Basic Object-Oriented Concepts. 5-Oct-17 Basic Object-Oriented Concepts 5-Oct-17 Concept: An object has behaviors In old style programming, you had: data, which was completely passive functions, which could manipulate any data An object contains

More information

Cleaning a Course Shell Quick Reference

Cleaning a Course Shell Quick Reference Cleaning a Course Shell Quick Reference Page 1 of 25 Announcements From the Course Home page select Announcements. Select the per page dropdown and select 200 to get everything on one page. Select the

More information

Name Return type Argument list. Then the new method is said to override the old one. So, what is the objective of subclass?

Name Return type Argument list. Then the new method is said to override the old one. So, what is the objective of subclass? 1. Overriding Methods A subclass can modify behavior inherited from a parent class. A subclass can create a method with different functionality than the parent s method but with the same: Name Return type

More information

WA1278 Introduction to Java Using Eclipse

WA1278 Introduction to Java Using Eclipse Lincoln Land Community College Capital City Training Center 130 West Mason Springfield, IL 62702 217-782-7436 www.llcc.edu/cctc WA1278 Introduction to Java Using Eclipse This course introduces the Java

More information

For 100% Result Oriented IGNOU Coaching and Project Training Call CPD TM : ,

For 100% Result Oriented IGNOU Coaching and Project Training Call CPD TM : , Course Code : MCS-032 Course Title : Object Oriented Analysis and Design Assignment Number : MCA (3)/032/Assign/2014-15 Assignment Marks : 100 Weightage : 25% Last Dates for Submission : 15th October,

More information

Object-Oriented Programming

Object-Oriented Programming iuliana@cs.ubbcluj.ro Babes-Bolyai University 2018 1 / 40 Overview 1 2 3 4 5 2 / 40 Primary OOP features ion: separating an object s specification from its implementation. Encapsulation: grouping related

More information

Create Billing Request_Student_SPD_ Revision Document Generation Date Date Modified Last Changed by ctbrand2 12/16/2014 Status

Create Billing Request_Student_SPD_ Revision Document Generation Date Date Modified Last Changed by ctbrand2 12/16/2014 Status Department Responsibility/Role File Name Create Billing Request_Student_SPD_20141216115811 Revision Document Generation Date Date Modified Last Changed by ctbrand2 12/16/2014 Status 12/16/2014 11:58:00

More information

[ L5P1] Object-Oriented Programming: Advanced Concepts

[ L5P1] Object-Oriented Programming: Advanced Concepts [ L5P1] Object-Oriented Programming: Advanced Concepts Polymorphism Polymorphism is an important and useful concept in the object-oriented paradigm. Take the example of writing a payroll application for

More information

Business Process Document Student Records: Defining Class Enrollment Blocks

Business Process Document Student Records: Defining Class Enrollment Blocks Department Responsibility/Role File Name Version Document Generation Date 12/5/2007 Date Modified 12/5/2007 Last Changed by Status SA 8.9 - Student Records Defining Class Enrollment Blocks- _BUSPROC.doc

More information

Ascending. Load. Descending. Save. Exit. Numbers

Ascending. Load. Descending. Save. Exit. Numbers 1. Create an abstract class shape. Derive three classes sphere, cone and cylinder from it. Calculate area and volume of all (use method overriding) [30] 2. Design an HTML page containing 4 option buttons

More information

Dr. Manal Helal CC316:Object Oriented Programming, Fall 2015 AASTMT College of Engineering & Technology

Dr. Manal Helal CC316:Object Oriented Programming, Fall 2015 AASTMT College of Engineering & Technology OOP Term Project Ideas Goal: To learn how to build and evolve large-scale programs using object-oriented programming, and work in teams learning from each other. Topics: In exploring object-oriented programming,

More information

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur 603203. DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK Degree & Branch : B.E E.C.E. Year & Semester : II / IV Section : ECE 1, 2 &

More information

IT101. Inheritance, Encapsulation, Polymorphism and Constructors

IT101. Inheritance, Encapsulation, Polymorphism and Constructors IT101 Inheritance, Encapsulation, Polymorphism and Constructors OOP Advantages and Concepts What are OOP s claims to fame? Better suited for team development Facilitates utilizing and creating reusable

More information

Data Structures (list, dictionary, tuples, sets, strings)

Data Structures (list, dictionary, tuples, sets, strings) Data Structures (list, dictionary, tuples, sets, strings) Lists are enclosed in brackets: l = [1, 2, "a"] (access by index, is mutable sequence) Tuples are enclosed in parentheses: t = (1, 2, "a") (access

More information

CSC 210 COMPUTER SCIENCE II

CSC 210 COMPUTER SCIENCE II CSC 210 COMPUTER SCIENCE II PRESENTED AND APPROVED: NOVEMBER 2, 2012 EFFECTIVE: FALL 2013-14 Prefix & Number CSC 210 Course : Computer Science II Purpose of this submission: New Course New Change/Updated

More information

Java Object Oriented Design. CSC207 Fall 2014

Java Object Oriented Design. CSC207 Fall 2014 Java Object Oriented Design CSC207 Fall 2014 Design Problem Design an application where the user can draw different shapes Lines Circles Rectangles Just high level design, don t write any detailed code

More information

Enhanced Entity- Relationship Models (EER)

Enhanced Entity- Relationship Models (EER) Enhanced Entity- Relationship Models (EER) LECTURE 3 Dr. Philipp Leitner philipp.leitner@chalmers.se @xleitix LECTURE 3 Covers Small part of Chapter 3 Chapter 4 Please read this up until next lecture!

More information

3 CREATING YOUR FIRST JAVA APPLICATION (USING WINDOWS)

3 CREATING YOUR FIRST JAVA APPLICATION (USING WINDOWS) GETTING STARTED: YOUR FIRST JAVA APPLICATION 15 3 CREATING YOUR FIRST JAVA APPLICATION (USING WINDOWS) GETTING STARTED: YOUR FIRST JAVA APPLICATION Checklist: The most recent version of Java SE Development

More information

Java for Programmers Course (equivalent to SL 275) 36 Contact Hours

Java for Programmers Course (equivalent to SL 275) 36 Contact Hours Java for Programmers Course (equivalent to SL 275) 36 Contact Hours Course Overview This course teaches programmers the skills necessary to create Java programming system applications and satisfies the

More information

TOOLS AND TECHNIQUES FOR TEST-DRIVEN LEARNING IN CS1

TOOLS AND TECHNIQUES FOR TEST-DRIVEN LEARNING IN CS1 TOOLS AND TECHNIQUES FOR TEST-DRIVEN LEARNING IN CS1 ABSTRACT Test-Driven Development is a design strategy where a set of tests over a class is defined prior to the implementation of that class. The goal

More information

Data Structures and Algorithms Design Goals Implementation Goals Design Principles Design Techniques. Version 03.s 2-1

Data Structures and Algorithms Design Goals Implementation Goals Design Principles Design Techniques. Version 03.s 2-1 Design Principles Data Structures and Algorithms Design Goals Implementation Goals Design Principles Design Techniques 2-1 Data Structures Data Structure - A systematic way of organizing and accessing

More information

SCHEME OF COURSE WORK

SCHEME OF COURSE WORK SCHEME OF COURSE WORK Course Details: Course Title Object oriented programming through JAVA Course Code 15CT1109 L T P C : 3 0 0 3 Program: B.Tech. Specialization: Information Technology Semester IV Prerequisites

More information

Admin. CS 112 Introduction to Programming. Recap: OOP Analysis. Software Design and Reuse. Recap: OOP Analysis. Inheritance

Admin. CS 112 Introduction to Programming. Recap: OOP Analysis. Software Design and Reuse. Recap: OOP Analysis. Inheritance Admin CS 112 Introduction to Programming q Class project Inheritance Yang (Richard) Yang Computer Science Department Yale University 308A Watson, Phone: 432-6400 Email: yry@cs.yale.edu 2 Recap: OOP Analysis

More information

CS 112 Introduction to Programming

CS 112 Introduction to Programming CS 112 Introduction to Programming Inheritance Hierarchy; Polymorphism Yang (Richard) Yang Computer Science Department Yale University 308A Watson, Phone: 432-6400 Email: yry@cs.yale.edu Admin q Class

More information

UNIVERSITI SAINS MALAYSIA. CIT502 Object-Oriented Programming and Software Engineering

UNIVERSITI SAINS MALAYSIA. CIT502 Object-Oriented Programming and Software Engineering UNIVERSITI SAINS MALAYSIA First Semester Examination Academic Session 2003/2004 September/October 2003 CIT502 Object-Oriented Programming and Software Engineering Duration : 3 hours INSTRUCTION TO CANDIDATE:

More information

Objective Questions. BCA Part III Paper XIX (Java Programming) page 1 of 5

Objective Questions. BCA Part III Paper XIX (Java Programming) page 1 of 5 Objective Questions BCA Part III page 1 of 5 1. Java is purely object oriented and provides - a. Abstraction, inheritance b. Encapsulation, polymorphism c. Abstraction, polymorphism d. All of the above

More information

Admin. q Admin and recap q Class inheritance

Admin. q Admin and recap q Class inheritance Admin CS 112 Introduction to Programming q Class project Please work on forming teams Inheritance Hierarchy; Polymorphism Yang (Richard) Yang Computer Science Department Yale University 308A Watson, Phone:

More information

END TERM EXAMINATION

END TERM EXAMINATION END TERM EXAMINATION THIRD SEMESTER [BCA] DECEMBER 2007 Paper Code: BCA 209 Subject: Object Oriented Programming Time: 3 hours Maximum Marks: 75 Note: Attempt all questions. Internal choice is indicated.

More information

MARS AREA SCHOOL DISTRICT Curriculum TECHNOLOGY EDUCATION

MARS AREA SCHOOL DISTRICT Curriculum TECHNOLOGY EDUCATION Course Title: Java Technologies Grades: 10-12 Prepared by: Rob Case Course Unit: What is Java? Learn about the history of Java. Learn about compilation & Syntax. Discuss the principles of Java. Discuss

More information

CSCI 161: Introduction to Programming I Lab 1b: Hello, World (Eclipse, Java)

CSCI 161: Introduction to Programming I Lab 1b: Hello, World (Eclipse, Java) Goals - to learn how to compile and execute a Java program - to modify a program to enhance it Overview This activity will introduce you to the Java programming language. You will type in the Java program

More information

[Course Overview] After completing this module you are ready to: Develop Desktop applications, Networking & Multi-threaded programs in java.

[Course Overview] After completing this module you are ready to: Develop Desktop applications, Networking & Multi-threaded programs in java. [Course Overview] The Core Java technologies and application programming interfaces (APIs) are the foundation of the Java Platform, Standard Edition (Java SE). They are used in all classes of Java programming,

More information

CS313D: ADVANCED PROGRAMMING LANGUAGE

CS313D: ADVANCED PROGRAMMING LANGUAGE CS313D: ADVANCED PROGRAMMING LANGUAGE Computer Science department Lecture 6 : Abstraction Lecture Contents 2 Abstract classes Abstract methods Case study: Polymorphic processing Sealed methods & classes

More information

Dropbox. Dropbox includes a number of functions for managing the submission of assignments including:

Dropbox. Dropbox includes a number of functions for managing the submission of assignments including: Dropbox Dropbox includes a number of functions for managing the submission of assignments including: Create categories of dropbox folders, like Quizzes or Discussions. Associate the submitted assignments

More information

Diploma in Android Programming (DAP)

Diploma in Android Programming (DAP) Diploma in Android Programming (DAP) Duration: 01 Year Total credit: 32 1 st Semester (DAP) Theory Course Course Title (T-L-P) Credit Code CSP-80 Operating Systems T 04 CSP-45 Programing in JAVA T 04 CSP-46

More information

CS111: PROGRAMMING LANGUAGE II

CS111: PROGRAMMING LANGUAGE II 1 CS111: PROGRAMMING LANGUAGE II Computer Science Department Lecture 4(b): Subclasses and Superclasses OOP OOP - Inheritance Inheritance represents the is a relationship between data types (e.g. student/person)

More information

PART 1. Eclipse IDE Tutorial. 1. What is Eclipse? Eclipse Java IDE

PART 1. Eclipse IDE Tutorial. 1. What is Eclipse? Eclipse Java IDE PART 1 Eclipse IDE Tutorial Eclipse Java IDE This tutorial describes the usage of Eclipse as a Java IDE. It describes the installation of Eclipse, the creation of Java programs and tips for using Eclipse.

More information

What are the characteristics of Object Oriented programming language?

What are the characteristics of Object Oriented programming language? What are the various elements of OOP? Following are the various elements of OOP:- Class:- A class is a collection of data and the various operations that can be performed on that data. Object- This is

More information

CLASS DESIGN. Objectives MODULE 4

CLASS DESIGN. Objectives MODULE 4 MODULE 4 CLASS DESIGN Objectives > After completing this lesson, you should be able to do the following: Use access levels: private, protected, default, and public. Override methods Overload constructors

More information

Course Syllabus C # Course Title. Who should attend? Course Description

Course Syllabus C # Course Title. Who should attend? Course Description Course Title C # Course Description C # is an elegant and type-safe object-oriented language that enables developers to build a variety of secure and robust applications that run on the.net Framework.

More information

Object Oriented Programming is a programming method that combines: Advantage of Object Oriented Programming

Object Oriented Programming is a programming method that combines: Advantage of Object Oriented Programming Overview of OOP Object Oriented Programming is a programming method that combines: a) Data b) Instructions for processing that data into a self-sufficient object that can be used within a program or in

More information

3D Graphics Programming Mira Costa High School - Class Syllabus,

3D Graphics Programming Mira Costa High School - Class Syllabus, 3D Graphics Programming Mira Costa High School - Class Syllabus, 2009-2010 INSTRUCTOR: Mr. M. Williams COURSE GOALS and OBJECTIVES: 1 Learn the fundamentals of the Java language including data types and

More information

Homework 2 Implementing the University Application Due: November 7, 2004 (Sunday midnight)

Homework 2 Implementing the University Application Due: November 7, 2004 (Sunday midnight) Homework 2 Implementing the University Application Due: November 7, 2004 (Sunday midnight) In this assignment, you will implement the University application from homework 1. Instead of implementing your

More information

Object Oriented Design

Object Oriented Design Object Oriented Design Chapter 12 continue 12.6 Case Study: Payroll System Using Polymorphism This section reexamines the CommissionEmployee- BasePlusCommissionEmployee hierarchy that we explored throughout

More information

Overview of OOP. Dr. Zhang COSC 1436 Summer, /18/2017

Overview of OOP. Dr. Zhang COSC 1436 Summer, /18/2017 Overview of OOP Dr. Zhang COSC 1436 Summer, 2017 7/18/2017 Review Data Structures (list, dictionary, tuples, sets, strings) Lists are enclosed in square brackets: l = [1, 2, "a"] (access by index, is mutable

More information

CompuScholar, Inc. 9th - 12th grades

CompuScholar, Inc. 9th - 12th grades CompuScholar, Inc. Alignment to the College Board AP Computer Science A Standards 9th - 12th grades AP Course Details: Course Title: Grade Level: Standards Link: AP Computer Science A 9th - 12th grades

More information

CS6301 PROGRAMMING AND DATA STRUCTURES II QUESTION BANK UNIT-I 2-marks ) Give some characteristics of procedure-oriented language. Emphasis is on doing things (algorithms). Larger programs are divided

More information

SAULTCOLLEGE OF APPLIED ARTS AND TECHNOLOGY SAULT STE. MARIE, ONTARIO COURSE OUTLINE

SAULTCOLLEGE OF APPLIED ARTS AND TECHNOLOGY SAULT STE. MARIE, ONTARIO COURSE OUTLINE SAULTCOLLEGE OF APPLIED ARTS AND TECHNOLOGY SAULT STE. MARIE, ONTARIO COURSE OUTLINE COURSE TITLE: CODE NO. : SEMESTER: 3 PROGRAM: AUTHOR: Computer Programmer Fred Carella DATE: Fall 2013 PREVIOUS OUTLINE

More information

Learning Portal AE: Customization and Configuration in Microsoft Dynamics CRM 2016 Hands-On-Lab

Learning Portal AE: Customization and Configuration in Microsoft Dynamics CRM 2016 Hands-On-Lab 2 Learning Portal 80729AE: Customization and Configuration in Microsoft Dynamics Hands-On-Lab 80729AE: Customization and Configuration in Microsoft Dynamics Table of Contents 80729AE: Customization and

More information

Contents. I. Classes, Superclasses, and Subclasses. Topic 04 - Inheritance

Contents. I. Classes, Superclasses, and Subclasses. Topic 04 - Inheritance Contents Topic 04 - Inheritance I. Classes, Superclasses, and Subclasses - Inheritance Hierarchies Controlling Access to Members (public, no modifier, private, protected) Calling constructors of superclass

More information

SELENIUM TRAINING COURSE CONTENT

SELENIUM TRAINING COURSE CONTENT SECTION 1 : INTRODUCTION SELENIUM TRAINING COURSE CONTENT What is automation testing? When Automation Testing is needed? What is the use of automation testing? Different Automation Tools available in the

More information

I pledge by honor that I will not discuss this exam with anyone until my instructor reviews the exam in the class.

I pledge by honor that I will not discuss this exam with anyone until my instructor reviews the exam in the class. Name: Covers Chapters 1-3 50 mins CSCI 1301 Introduction to Programming Armstrong Atlantic State University Instructor: Dr. Y. Daniel Liang I pledge by honor that I will not discuss this exam with anyone

More information

Welcome to DECIBEL. Welcome to DECIBEL (An Intranet Application), your Online Resource Centre.

Welcome to DECIBEL. Welcome to DECIBEL (An Intranet Application), your Online Resource Centre. Welcome to DECIBEL Welcome to DECIBEL (An Intranet Application), your Online Resource Centre. Through DECIBEL, we ve provided you with lots of useful information, available with just a few clicks of a

More information

LAB 1: FAMILIARITY WITH NETBEANS IDE ENVIRONMENT

LAB 1: FAMILIARITY WITH NETBEANS IDE ENVIRONMENT Statement Purpose: The purpose of this Lab. is to familiarize student with the programming environment they will be going to using throughout this course. This Lab. introduces the basics of NetBeans IDE

More information

OOPs Concepts. 1. Data Hiding 2. Encapsulation 3. Abstraction 4. Is-A Relationship 5. Method Signature 6. Polymorphism 7. Constructors 8.

OOPs Concepts. 1. Data Hiding 2. Encapsulation 3. Abstraction 4. Is-A Relationship 5. Method Signature 6. Polymorphism 7. Constructors 8. OOPs Concepts 1. Data Hiding 2. Encapsulation 3. Abstraction 4. Is-A Relationship 5. Method Signature 6. Polymorphism 7. Constructors 8. Type Casting Let us discuss them in detail: 1. Data Hiding: Every

More information

UNIT 3 INTRODUCTORY MICROSOFT EXCEL LESSON 6 MAKING THE WORKSHEET USEFUL

UNIT 3 INTRODUCTORY MICROSOFT EXCEL LESSON 6 MAKING THE WORKSHEET USEFUL UNIT 3 INTRODUCTORY MICROSOFT EXCEL LESSON 6 MAKING THE WORKSHEET USEFUL Objectives Sort data in a worksheet. Use the AutoFilter to extract specified data from the worksheet. Hide worksheet columns or

More information

Final Assignment for CS-0401

Final Assignment for CS-0401 Final Assignment for CS-0401 1 Introduction In this assignment you will create a program with an Graphical User Interface that will help customers to decide what car and car features that they want. In

More information

1.00 Lecture 13. Inheritance

1.00 Lecture 13. Inheritance 1.00 Lecture 13 Inheritance Reading for next time: Big Java: sections 10.5-10.6 Inheritance Inheritance allows you to write new classes based on existing (super or base) classes Inherit super class methods

More information

Agenda. Objects and classes Encapsulation and information hiding Documentation Packages

Agenda. Objects and classes Encapsulation and information hiding Documentation Packages Preliminaries II 1 Agenda Objects and classes Encapsulation and information hiding Documentation Packages Inheritance Polymorphism Implementation of inheritance in Java Abstract classes Interfaces Generics

More information

MyProgram m i ng Lab. get with the programming. Through the power of practice and immediate personalized

MyProgram m i ng Lab. get with the programming. Through the power of practice and immediate personalized get with the programming Through the power of practice and immediate personalized feedback, MyProgrammingLab improves your performance. MyProgram m i ng Lab Learn more at www.myprogramminglab.com Preface

More information

Object-Oriented Programming in C++/Handout 01 Page 1 of 8

Object-Oriented Programming in C++/Handout 01 Page 1 of 8 Object-Oriented Programming in C++/Handout 01 Page 1 of 8 Table of Contents Table of Contents... 1 Learning Objectives... 2 Object-Oriented Approach... 2 Advantages of Object-Oriented Approach... 2 Principles

More information

Dropbox. Dropbox includes a number of functions for managing the submission of assignments including:

Dropbox. Dropbox includes a number of functions for managing the submission of assignments including: Dropbox Page 1 of 10 Dropbox includes a number of functions for managing the submission of assignments including: Create categories of dropbox folders, like Quizzes or Discussions. Associate the submitted

More information

COMPUTER SCIENCE DEPARTMENT PICNIC. Operations. Push the power button and hold. Once the light begins blinking, enter the room code

COMPUTER SCIENCE DEPARTMENT PICNIC. Operations. Push the power button and hold. Once the light begins blinking, enter the room code COMPUTER SCIENCE DEPARTMENT PICNIC Welcome to the 2016-2017 Academic year! Meet your faculty, department staff, and fellow students in a social setting. Food and drink will be provided. When: Saturday,

More information

Lecture 15: Inheritance II

Lecture 15: Inheritance II Lecture 15: Inheritance II Building Java Programs: A Back to Basics Approach by Stuart Reges and Marty Stepp Copyright (c) Pearson 2013. All rights reserved. Interacting with the superclass Changes to

More information

Inheritance (Outsource: )

Inheritance (Outsource: ) (Outsource: 9-12 9-14) is a way to form new classes using classes that have already been defined. The new classes, known as derived classes, inherit attributes and behavior of the pre-existing classes,

More information

CS111: PROGRAMMING LANGUAGE II

CS111: PROGRAMMING LANGUAGE II CS111: PROGRAMMING LANGUAGE II Computer Science Department Lecture 4&5: Inheritance Lecture Contents What is Inheritance? Super-class & sub class The object class Using extends keyword @override keyword

More information

Inheritance -- Introduction

Inheritance -- Introduction Inheritance -- Introduction Another fundamental object-oriented technique is called inheritance, which, when used correctly, supports reuse and enhances software designs Chapter 8 focuses on: the concept

More information

ASSIGNMENT NO 13. Objectives: To learn and understand concept of Inheritance in Java

ASSIGNMENT NO 13. Objectives: To learn and understand concept of Inheritance in Java Write a program in Java to create a player class. Inherit the classes Cricket_player, Football_player and Hockey_player from player class. The objective of this assignment is to learn the concepts of inheritance

More information

CS100J, Fall 2003 Preparing for Prelim 1: Monday, 29 Sept., 7:30 9:00PM

CS100J, Fall 2003 Preparing for Prelim 1: Monday, 29 Sept., 7:30 9:00PM CS100J, Fall 2003 Preparing for Prelim 1: Monday, 29 Sept., 7:30 9:00PM This handout explains what you have to know for the first prelim. Terms and their meaning Below, we summarize the terms you should

More information

Accelerating Information Technology Innovation

Accelerating Information Technology Innovation Accelerating Information Technology Innovation http://aiti.mit.edu Cali, Colombia Summer 2012 Lesson 09 Inheritance What is Inheritance? In the real world: We have general terms for objects in the real

More information

Java. Classes 3/3/2014. Summary: Chapters 1 to 10. Java (2)

Java. Classes 3/3/2014. Summary: Chapters 1 to 10. Java (2) Summary: Chapters 1 to 10 Sharma Chakravarthy Information Technology Laboratory (IT Lab) Computer Science and Engineering Department The University of Texas at Arlington, Arlington, TX 76019 Email: sharma@cse.uta.edu

More information

VB.NET. Exercise 1: Creating Your First Application in Visual Basic.NET

VB.NET. Exercise 1: Creating Your First Application in Visual Basic.NET VB.NET Module 1: Getting Started This module introduces Visual Basic.NET and explains how it fits into the.net platform. It explains how to use the programming tools in Microsoft Visual Studio.NET and

More information

CH. 2 OBJECT-ORIENTED PROGRAMMING

CH. 2 OBJECT-ORIENTED PROGRAMMING CH. 2 OBJECT-ORIENTED PROGRAMMING ACKNOWLEDGEMENT: THESE SLIDES ARE ADAPTED FROM SLIDES PROVIDED WITH DATA STRUCTURES AND ALGORITHMS IN JAVA, GOODRICH, TAMASSIA AND GOLDWASSER (WILEY 2016) OBJECT-ORIENTED

More information