0% found this document useful (0 votes)
118 views46 pages

Ctood Handout

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

Ctood Handout

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 46
218/23, 10:17 PM ‘about blank common UNIVERSITY K L Deemed to be University Department of Computer Science and Engineering-Honors -- KLVZA Course Handout 2022-2023, Even Sem (Course Title COMPUTATIONAL THINKING FOR OBJECT ORIENTED DESIGN ‘Course Code :228C1203 L-TP-S Structure :3-0-2-4 5 ‘Course Coordinator ‘'SREERAM NIMMAGADDA ‘Team of Instructors ‘Teaching Associates Syllabus :Introduction: Understanding Object oriented programming paradigm vs Structured paradigm. Advantages of Object-Oriented programming and its key features — abstraction, encapsulation, inheritance & polymorphism, Java program hierarchy and compilation process. Building static methods. Primitive Data ‘Types and Arrays as a reference data type. Access specifiers for methods. Logic building using control statements and iterative statements. Wrapper classes and implicit casting. Command Line Arguments. Classes and Objects: object, class vs object and object instantiation. Abstraction and encapsulation using accessors and mutators. Constructors — default, user-defined and parametrized, Introduction to Java API, Scanner class, console-based IO. Constructor chaining, this keyword, array of objects, aggregation vs ‘composition, ArrayList, SOLID design principles. Inheritance, method overriding, dynamic polymorphism, dynamic method dispatch, Singleton classes. Inner classes. Abstraction & Applications: Abstract classes, abstract methods, final keyword for methods and classes, template pattern, Introduction to interfaces, Interfaces vs implementation, Factory classes, factory method pattern, Generic classes, application of interfaces to build abstract data structures, Java API for Vector and LinkedList, comparable, comparator and cloneable, iterator interfaces. Anonymous classes, Decorator pattern. Event driven programming with event listeners. Exception handling & File 1O: Introduction to exceptions & errors, Java API for exceptions, try, catch, finally, throw and throws keywords, try with resources, user defined exceptions. File IO, byte streams, character streams, wrapper classes for Object IO using serializable. String based algorithms using StringBuffer and String Builder, String constant pool, regex, garbage collection. ‘Text Books :1 Introduction to Java Programming, Comprehensive Version, 10th Edition by Y. Daniel Liang. 2.Herbert Schildt, “The Complete Reference Java", 7th edition TMH. 3.Timothy A. Budd, “An Introduction to Object-Oriented Programming”, 3/e, Pearson, 2008 Reference Books :1. Deitel&Deitel, “Java — How to program”, 6th edition, PIII, 2007, 2. ‘Cay.S.Horstmann and Gary Cornell “Core Java 2, Vol 1, Fundamentals”, Seventh Edition, PearsonEducation Web Links :www.leetcode.com www.codechef.com www.hackerrank.com MOOCS #1. www-hackerrank.com 2. www.leetcode.com 3.www.codechef.com ‘Course Rationale :The course takes an imperative view of problem-solving using Java programming language. This necessitates a firm foundation on the principles of Object-Oriented Programming (OOP). Student is professionally trained in OOP principles. The students are made to write Java programs on their own for sets of both mathematical and other engineering problems after exposing them to the different constructs of Java language namely abstract classes, Interfaces, packages, and multithreading. Finally, the student is acquainted with basic knowledge of the collection framework. (Course Objectives :The objective of the course is to equip the student with problem solving skills using Object Oriented Programming language — Java and details about the essential ingredients of the programming language and its fundamentals with a rich set of examples COURSE OUTCOMES (Cos): aboutblank m6 218/23, 10:17 PM ‘about blank Blooms co ‘Taxonomy No Course Outeome (CO) PO/PSO Level (BTL) [CO1 [Apply Object oriented paradigm for code re usability. [PO1,PO2,PO3 3 (coz) Design object-oriented solutions to the real-world PO1,PO2,P03,P0s 3 problems through SOLID design principles (C03 [Build Abstract Data Types by applying generic classes “2” | and java APL. Demonstrate Exception handling and String manipulation techniques Develop a real time project by using object-oriented PO3,POS,PSOI,PSO2,PO1,PO2|3 CO4 PSO1,PSO2,PO1,PO2,PO3,POS|3 COS PSO1,PSO2,PO2,PO5 3 programming concepts COURSE OUTCOME INDICATORS (COls):: (Outcome| Highest . 5 “1 No. BIL colt col2z COL3 col 3 ‘Understanding the basic pp y AC ne overloading, command line OOP concepts arguments Bt-2 Brl-3 Understand SOLID design | Apply object, constructors, co2 3 principles, Singleton Array of objects, Class classes, need of inheritance, | Relationships (aggregation, super and protected access _|composition, & Inheritance) Btl-3 Btl2 Apply Vector, LinkedList, Understand working of comparable, comparator, cos 3 abstract, final, interfaces, | cloneable, iterator template pattem, Decorator | interfaces, Anonymous pattern, factory method —_|classes, Event driven pattern, Generic classes. programming with event listeners BUl-3 Cinderandng exceptions |e 20, byte steams, C04 3 character streams, Object IO errors, Java API for exceptions using serializable, String handling. Btl-3 Btl-3 Btl-3 COS 3 Develop projects in java _| Develop interactive Develop GUI based applications OOP concepts _| applications in java applications PROGRAM OUTCOMES & PROGRAM SPECIFIC OUTCOMES (POs/PSOs) Po No Program Outcome Po [Engineering Knowledge:Apply the knowledge of mathematies, science, engineering fundamentals, and an engineering specialization to the solution of complex engineering problems, Problem Analysis: Identify, formulate, review research literature, and analyse complex engineering PO2 | problems reaching substantiated conclusions using first principles of mathematics, natural sciences and engineering sciences abouttblank 2186 218/23, 10:17 PM ‘about blank PO3 Design/Development of Solutions: Design solutions for complex engineering problems and design system components or processes that meet the specified needs with appropriate consideration for the public health and safety, and the cultural, societal, and environmental considerations Pot Conduct Investigations of Complex Problems:Use research-based knowledge and research methods including design of experiments, analysis and interpretation of data, and synthesis of the information to provide valid conclusions for complex problems that cannot be solved by straightforward application of knowledge, theories and techniques applicable to the engineering discipline. Pos Moder Tool Usage:Create, select, and apply appropriate techniques, resources, and modern engineering and IT tools including prediction and modelling to complex engineering activities with an understanding of the limitations. POG The Engineer and Society: Apply reasoning informed by the contextual knowledge to assess socictal, health, safety, legal and cultural issues and the consequent responsibilities relevant to the professional engineering practice. PO7 Environment and Sustainability:Understand the impact of the professional engineering solutions in societal and environmental contexts, and demonstrate the knowledge of, and need for sustainable development POS Ethics: Apply ethical principles and commit to professional ethies and responsibilities and norms of the engineering practice POS Individual and Team Work: Function effectively as an individual, and as a member or leader in diverse teams, and in multidisciplinary settings. PO10 Communication:Communicate effectively on complex engineering activities with the engineering community and with society at large, such as, being able to comprehend and write effective reports and design documentation, make effective presentations, and give and receive clear instructions POI Project Management and Finance: Demonstrate knowledge and understanding of the engineering and management principles and apply these to one’s own work, as a member and leader in a team, to manage projects and in multidisciplinary environments, PO12 Life-long Learning: Recognize the need for, and have the preparation and ability to engage in independent and lifelong learning in the broadest context of technological change. PSO An ability to design and develop software projects as well as Analyze and test user requirements. Pso2| An Ability to gain working Knowledge on emerging software tools and technologies Lecture Course DELIVERY Plan: Book No{CH | Teaching-Learning Sess.No.| CO | COT Topic No|[Page No| Methods EvaluationComponents| /ALM,End Semester Exam,Home Assignment,Lab End Introduction to Semester Exam,Lab In COI-| course, Introduction /T BOOK [1] Semester COM T lo Object Oriented | [2-78] Chalk,PPT,Talk Team, LCE,LIT-Ratings Programming ‘on Global Platforms,SEM- EXAMI Skilling Continuous Evaluation Advantages of Object-Oriented programming and its End Semester late APPLICABLE SESSION NUMBER : 2 Session Outcome: 1 At the end of this session, Students will be able to understand, Advantages of Object- Oriented programming and its key features Session Outcome: 2 At the end of this session, Students will be able to understand,Java program hierarchy and compilation process. in eclipse Teaching- | _ Active ‘Time(min) Topic BIL) Learning | Learning Methods | Methods == NOT 3 Attendance/Recap 1 |Talk APPLICABLE Explain Advantages of Object-Oriented programmin; NOT 20 xD Bes of ObjecteOrrented Prog Bla Talk APPLICABLE, and its key features 4 [Explain Java program hierarchy and compilation process. in eclipse by using the below problem, Problem: | Kavya has s brochure and observed il x NOT 20 as seen one brochure and observed some mobile > ran XPPLICABLE numbers on it, Suddenly she focuses on extreme two AP digits and she want to find sum of first 2 digits and last 2 digits ~-NOT 5 ‘Summarize the session, 2 Talk APPLICABLE SESSION NUMBER : 3 aboutblans 10186 218/23, 10:17 PM ‘about blank Session Outcome: 1 At the end of this session, Students will be able to understand & apply primitive data types Session Outcome: 2 At the end of this session, Students will be able to understand & apply arrays feaching- ‘Active ‘Time(min) Topic BTL| Learning | Learning Methods Methods --- NOT 5 Recap/Attendance 1 Talk APPLICABLE --- NOT, 25 Explanation about primitive data types in java 2 |Chalk APPLICABLE --NO1 10 Explain how to create an array in java 2 |Talk APPLICABLE [Ask the students to solve the below problem Problem: 2 --- NOT, 10 Given a list of numbers find the largest, smallest, and [3 LTC APPLICABLE average of all the elements in an array _ Session Outi SESSION NUMBER : 4 Session Outcome: 1 At the end of this session, Students will be able to members and methods ‘come: 2 At the end of this session, Students will be able to understand, and work with class, data write programs that involve static aboutblans the climate there when packing his luggage. Based on the climate he needs to pack the specific clothing accordingly for the conditions given below. Read temperature in centigrade and display a suitable message according to temperature state below: « Temp <0 then Freezing weather * Temp 0-10 then Very Cold weather + ‘Temp 10-20 then Cold weather + Temp 20-30 then Normal in ‘Temp + Temp 30-40 then Its Hot * Temp >=40 ‘then Its Very Hot Help him to identify the climatic keyword ‘Teaching- Active ‘Time(min) Topic BTL| Learning Learning Methods Methods -- NOT 5 Attendance 1 Talk APPLICABLE Naming conventions for Class names, methods, and data members. Drawing class Diagram. Static variables and static methods and static block. Explain the above topics with the below example. Problem: 1 There is infinite line --NOT 20 of black and white balls in alternate positions as shown |2 PPT APPLICABLE ‘below. In Ist position there is a black ball and in 2nd - [position there is white ball and so on... Develop a java program that accepts a number print the color of the ball at that position 20 Ask the students to solve the below problems Problem:2 |3 LTC --- NOT Sai Raj got a job offer in Kashmir and he is estimating APPLICABLE 1K6 218/23, 10:17 PM ‘about blank conditions, Now your task is to read the temperature and ive him the climatic conditions. --- NOT 5 conclusion 2 Talk APPLICABLE SESSION NUMBER : 5 Session Outcome: 1 Apply modularization - Method and class level Modulatization. Session Outcome: 2 Understand the usage of access specifiers — public, private and default Teaching- | Active ‘Time(min) Topic BTL| Learning | Learning Methods Methods ~-- NOT 5 [Attendance 1 talk APPLICABLE 20 [ALM 3. |Lrc QuiziTest Questions Write a Cuboid class with 3 static variables length, [breadth and height of type double, and a statie method NOT 20 volume (), access them using main () method within the 3. [LTC APPLICABLE same class, Explain the need of a class as a template _ (Eneapsulate data and methods) Syntax ~ Define a class -- NOT, 5 conclusion 2 Talk APPLICABLE SESSION NUMBER : 6 Session Outcome: 1 Apply modularization — Class and package level Session Outcome: 2 Understand the usage of access specifiers — public, private and default Teaching- ‘Active ‘Time(min) Topic BTL| Learning | Learning Methods Methods --- NOT 5 Attendance 1 Talk APPLICABLE. ckage lev --NOT 20 Modularize the Cuboid class toa package level with |. ppp RpPCCABLE appropriate access specifiers al To the above modularized code, add a method isCube () that returns true if all dimensions are same, else returns false. Predict the Output of the following: class Access { Not public static int x; private static int y; public static void |, i 20 cal(int aint b) { x=a+ 1; y=; } } public class Ss [Ete APPLICABLE /Access_Specifier { public static void main(String args{]) { Access.cal(2, 3); System.out.printin(Access.x + "+ ‘Access.y); } } --- NOT conclusion 2 Talk APPLICABLE. aboutblans 126 218/23, 10:17 PM ‘about blank SESSION NUMBER : 7 Session Outcome: 1 Work with control statements in java Session Outcome: 2 Work with iterative statements in java Teaching- ‘Active ‘Time(s Topic BTL| Learning | Learning Methods Methods --- NOT 5 Attendance 1 Talk APPLICABLE NOT 10 Explain branching statements in Java 2 PPT APPLICABLE --- NOT 10 Explain looping statements in java. 2 |PPT APPLICABLE, [Ask the Students to Solve the below problem: Problem 1 Create a class Utility with three static methods. Sort () ‘which accepts an array of integers to sort them, Nor findSmallest () which accepts an array of integers to find . TOT ABLE 20 smallest value, findLargest () which accepts an array of [> —|ETC APPLICABLE integers to find largest value, Access these methods from main () of Demo class of different package. (Take input through command line.) --- NOT 5 conclusion 2 Talk APPLICABLE Session Outi Session Outi SESSION NUMBER : 8 icome: 1 Students will understand how to obtain input through command line arguments jcome: 2 Students will understand and use the Wrapper classes and methods in them Teaching- ‘Active ‘Time(min) BIL| Learning | Learning Methods | Methods ~ NOT 5 ‘Attendance/Recap 1 \Talk APPLICABLE, Write a Java Program to read your name through Nor 10 ie a Java Program to read your name throug! 3 |LTC APPLICABLE command line arguments. “ Explain about Wrapper classes — Byte, Short, Integer, -- NOT 10 Float, Double, Boolean, Character. Ask students to 2 |pPr APPLICABLE explore the Java API and Mathclass in java.lang package —_ 20 Ask the students to solve the below problem: Problem 1: [3 |LTC ~- NOT Create a class Student with static variables name, id, APPLICABLE gender, dept, phoneNo, three subject marks, and a static _ method displayDetails () to display name, last five digits of your ID Number, gender, department, phone number as (111-222-3333) and percentage of marks. Read all the input using command line arguments, access the about blank rats 2613, 1017 eM about tank displayDetails () from main () within the same class. Hint: Name must not ha iny whitespace --- NOT 5 conclusion 2 Talk APPLICABLE SESSION NUMBER : 9 Session Outcome: 1 Students will understand Method Overloading Session Outcome: 2 Students will apply Method Overloading Teaching- | Active ‘Time(min) Topic BTL) Learning | Learning Methods Methods --- NOT 5 [Attendance 1 [Talk ‘APPLICABLE Explain the Method Overloading by using the below code snipptes. 1. Predict the output class Adder{ static int add(int a,int b){return a+b;) static int add(int aint b,int ©) {retum a=bte;} } class TestOverloadingl { public static 'void main(String[] args){ Nor ‘System.out.printIn(Adder.add(11,11)); te APPLIC. 20 System.out printin(Adder add(11.11,11)); }} 2. Prediet the > [ETC APPLICABLE output class Adder static int add{int a, int b) fretum a1b;} static double add(double a, double b) {retumabs} } class TestOverloading?{ public static void main(String[] args){ System.out.printIn(Adder.add(11,11)); ‘System. out printin(Adder.add(12.3,12.6)): }} Ask the students to solve the below problem Problem : 1 Create a class Area with three static overloading methods calculateArea (double radius) to find area of a circle, ---NOT 20 calculateArea (double |, double b) to find area of a 3 |Lre APPLICABLE rectangle and calculateArea (ints) to find area of a _ square. Access them from the main () of same elass. (Use Command Line Arguments). --NOT 5 conclusion 2 Talk APPLICABLE SESSION NUMBER : 10 Session Outcome: 1 Students will understand the reference variables, ereation of objects using new Session Outcome: 2 The students will know how to access the instance members using objects Teaching- | Active Time(min) Topic BTL) Learning | Learning Methods Methods -- NOT Attendance 1 Talk APPLICABLE. 20 Create a Cuboid class with 3 instance variables length, 3 LTC --- NOT [breadth and height of type double, and a method volume APPLICABL (0. Create 2 objects with different values and print the o aboutblans ales 218/23, 10:17 PM ‘about blank volume. Discuss - Assigning Object reference variables. Predict the output of the following code snippets assuming the above definition of Box class. 1. class BoxDemo2 { public static void main(String args[]) { Box mybox! = new Box(); Box mybox2 = mybox!; |mybox I width=10; System.out println(mybox2.width); } } 2. class BoxDemo2 { public static void main(String args[]) { Box mybox1 = new Box(); mybox|,width=10; mybox1 height=20; Box mybox2 = mybox1; ‘System. out printIn(mybox2.width); mybox2—null; ‘System.out printin(mybox2.width); System.out.printin(mybox! width); } } 20 ALM 3 |LTc Leading question ~- NOT 5 conclusion 2 |Talk APPLICABLE SESSION NUMBER : 11 Session Outcome: 1 Students will understand the usage of Accessor ani Session Outcome: 2 Students will understand and use the toString() method. \d mutator methods ‘Teaching- ‘Active ‘Time(min) Topic BTL| Learning | Learning Methods Methods --- NOT 5 Attendance 1 Talk APPLICABLE Need for accessors and mutators, Create a Cuboid class 'with 3 private instance variables length, breadth and height of type double, and a publie method volume of Not rretum type double (). Add 3 setter methods with return : 20 type boolean (the instance variable is set when the 3 jLrc APPLICABLE argument is +ve) for each of the 3 instance members Also add 3 getter methods of return type, which retum the value appended with m (meters). Use toString() method to print the details of Cuboid as Length : 10.0 m Breadth : 10.0 m Height: 10.0 m Volume NOT 100.0 cum Access each of these methods through an ; : 20 object of Cuboid from the main() method of Demo class. PPT APPLICABLE Set the instance variables by obtaining input from _ console, (Use Seannet) NOT 5 conclusion 2 Talk APPLICABLE Session Outi Session Outi SESSION NUMBER : 12 ‘come: 1 Students will understand the need for constructors jcome: 2 Students will use this keyword. and types of constructors ‘Time(min) aboutblans To} BTL] Teaching- Learning Active Learning 15146 218/23, 10:17 PM ‘about blank Methods Methods —NOT 5 Attendance 1 Talk APPLICABLE Define constructors, rules, and types. I. Implicit vs —NOT 20 Explicit 2. No-argument, parameterized constructor, copy|2_ | PPT APPLICABLE constructors = Define the no-argument, parameterized constructor, and copy constructors for the Cuboid class, The no-argument NOT. 20 structors ss LTc APPLICABLE constructor will set the instance variables to 0. Explain “ garbage collection and ge() --- NOT 5 conclusion 2 Talk APPLICABLE SESSION NUMBER : 13 Session Outcome: 1 Students will understand how to obtain input through Console using Scanner Session Outcome: 2 Students will be able to develop 1O based applications Teaching: | Active ‘Time(min) BTL) Learning | Learning Methods | Methods --NOT Attendance 1 [Talk APPLICABLE 20 ALM 3 {LTC QuizrTest p|Etc Questions Introduce the Scanner Class in Java with the following example, import java.util.Seanner; class Input { public static void main(String[] args) Scanner input = new Scanner(System.in); // Getting float input System.out print("Enter float: "); float myFloat = Not input.nextFloat(); System.out.printin( "Float entered = " + TOT ABLE 10 myFloat); // Getting double input System.out print( "Enter per APPLICABLE double: "); double myDouble = input.nextDouble(); System.out printin("Double entered = " + myDouble); // Getting String input System.out.print("Enter text: "); String myString = input.next(); System.out.printin("Text entered "= myString): } } Write a Java Program to read Student ID, name, marks of --NOT 10 3 subjects through Scanner, and display the details along |3 /LTC ‘APPLICABLE with total and percentage obtained _ ~ NOI 5 conclusion 2 {Talk APPLICABL SSION NUMBER : 14 Session Outcome: 1 Students will be able to overload constructor Session Outcome: 2 Students will be able to apply constructor chaining aboutblans 1616 218/23, 10:17 PM ‘about blank Teaching- | Active ‘Time(min) Topie BTL) Learning | Learning Methods | Methods == NOT 5 Attendance 1 |Talk APPLICABLE (Overload the Cuboid class with all 3 types of NOT constructors and create 3 objects each invoking a : 10 different type of constructor from the main method of ||? |PPT ‘APPLICABLE Demo class 50 Enhance the above code by chaining the constructors. |) | ppp PPCCABLE lustrate the importance of constructor chaining AP Predict the output of the following. class Temp { Temp) { this(5); System.out.printin("The Default constructor"); } Temp(int x) { this(5, 15); System.out.printIn(x); } Temp(int x, int y) { System.out.printin(x * y); } public Nor static void main(String args[]) { new TempO; } } re ‘APPLIC. 10 Reference: https://geeksforgecks.com class Test {Test [> [ETC APPLICABLE (nt w) { System.out.printin(w); } static Test Q { System.out.printin(10); } public static void main (String args[]) { Test new Test(50); } } Can a constructor be static? -- NOT 5 conclusion 2 |Talk APPLICABLE SESSION NUMBER : 15 Session Outcome: 1 Students will understand and implant aggregation Session Outcome: 2 Students will understand and implant composition Teaching- | Active ‘Time(min) Topic BIL) Learning | Learning Methods | Methods -= NOT Attendance 1 {Talk APPLICABLE Explain about Aggregation and composition relationship With the below example. public class Address { String city,state,country; public Address(String city, String state, ‘String country) { this.city = city; this.state = state; Ithis.country = country; } } public class Emp { int id; String name; Address address; public Emp(int id, String name,Address address) { this.id ~ id; this.name = name; _-NoT 00 this.address~address; } void display(){ > Ippr XPPLICABLE System.out.printh name); System.out printin(address.city+" "+address.state+" 7 "+address.country); } public static void main String] args) { Address address =new /Address("'gzb","UP","india"); Address address2-new Address("gno","UP","india"); Emp e=new Emp(111,"varun’ address1); Emp e2=new Emp(112,"arun",address2); e.display(); e2.display(); } } aboutblans 186 218/23, 10:17 PM ‘about blank 20 Ask the students to solve the below problem Problem :1 CreatCreate object for Library class in main () of Demo class and add two new books in the object of Library class and print details of the bookse a class Book with Name, Bld, BAuthor, and YOP (Year of Publication). 'Use proper getter and setter methods. BName must not have any special symbols except ‘-’, Bld must not have any whitespace and special symbols, BAuthor must not have any special characters and digits, and YOP should contain only a 4-digit number. Use toString() to format the details of the book. Create Library class with array of references of the class Book as instance variable, a static variable BCount which represents total number of books, addNewBook() to store the details of a new Book, printAlIBooks() to print details of all Books, searchBookID() to search for a book based on Bld, searchBookName() to search for a book based on Name, modifyAuthor() to modify the book author name based on name of the book. 3 JLTc --- NOT APPLICABLE conclusion 2 |Talk ~- NOT APPLICABLE Session Outi Session Outi SESSION NUMBER : 16 ‘ome: 1 Understand and apply ArrayList and its various operations jcome: 2 Understand the SOLID Design Principles.x ‘Time(min) Topic Teaching- BTL| Learning Methods Active Learning Methods Attendance 1 |Talk -- NOT, APPLICABLE 20 Discuss importance of ArrayList class and its various operations 2 |ppr --- NOT APPLICABLE, 10 Ask the students and discuss the below problem to solve Problem 1: Create GeometricShape Class with attributes borderColor (String), filled (Boolean type) with getters, setters and toString(). This is inherited by Rectangle ‘Class with length and width as attributes. GeometrieShape class is further inherited by Circle class ‘with radius field as its instance variable. Add mutators, accessors and toString () methods. And create objects of Rectangle and Circle classes and access them from main () of Demo class Create two ArrayList of type Rectangle and Circle and add few objects in to them and access ‘their methods using ArrayList PPT -- NOT. APPLICABLE, 10 Explain the SOLID design principles 2 | Talk --- NOT, APPLICABLE conclusion 2 | Talk --NOT, APPLICABLE aboutblans: 18146 218/23, 10:17 PM ‘about blank SESSION NUMBER : 17 Session Outcome: 1 Students will understand inheritance Session Outcome: 2 student will be able to inheritance Active Time(s Top BTL) Learning | Learning Methods | Methods --NOT 5 Attendance 1 [Talk APPLICABLE, --- NOT 10 Explain inheritance 2 | Talk APPLICABLE, Explain the above using GeometricShape Class with attributes borderColor (String), filled (Boolean type). __NOT This is inherited by Rectangle Class with length and 20 ‘width as attributes. Add mutators, accessors and 3 [ETc APPLICABLE |toString() methods. Also create Circle class with radius ~ field also inherits fromGeometrieShape ‘Need for Inheritance with an example and Syntax, NOT 10 “ ple ane Syntax, 2 | Talk APPLICABLE, Terminology — --NOT 5 conclusion 2 | Talk APPLICABLE SESSION NUMBER : | Session Outcome: 1 student will be able to apply method overriding Session Outcome: 2 students will be able to apply dynamic method dispatch ‘Teaching- Active ‘Time(min) Topic BTL) Learning | Learning Methods | Methods ---NOT 5 Attendance 1 |Talk APPLICABLE, Method overriding Enhance the above design of GeometricShape class with area () that simply returns 0 NOT with appropriate access specifiers. Override the area() |, ppp APPLICABLE 20 method in all the sub classes of GeometricShape. a. |* APPLICABLE create objects of Rectangle and Circle classes, and access the overridden area () from main () of Demol class [Dynamic method dispatch Create two references of NOT GeometricShape class and assign the objects of a 20 Rectangle and Circle classes to call area() from main() |? |PPT APPLICABLE of Demo? class. --NOT 5 conclusion 2 |Talk APPLICABLE SESSION NUMBER : 19 saboutblank 19K 218/23, 10:17 PM ‘about blank Session Outcome: 1 Student will be able to undestand singleton classes Session Outcome: 2 students will be able to apply singleton classes, ‘Teaching- Active ‘Time(min) BIL) Learning | Learning Methods | Methods -- NOT 5 'Attendance 1 |Talk APPLICABLE --NOT 20 Discuss importance of Singleton design pattern 2 |ppr APPLICABLE, Discuss Singleton design pattem. By using below |problem Problem:1 A customer of a bank wants to \withdraw/deposit money from his account. There are 3 --NOT 25 ATMs in his town. Help him out by writing a program [3 [LTC APPLICABLE such that his balance will be updated after a transaction ~ in any of the ATMs. (Use ‘Account’ as Singleton Class and it should be Early Instantiated) SESSION NUMBER : 20 Session Outcome: 1 Understand the basic concepts of Abstract Method and Abstract Classes Session Outcome: 2 Usage of Abstract Method and Abstract Classes Teaching- | Active ‘Time(min) Topic BTL| Learning | Learning Methods | Methods NOT 5 Attendance 1 |Talk APPLICABLE Explain the Definition and syntax of Abstract Method with example. Write an abstract class that contains basic details (OT 20 of employee namely name and empid and witha concrete. 2 |PPT APPLICABLE method to display it. Include another abstract method — signature to display confidential details. Extend the abstract class in another class HR with employee confidential details like Salary and Performance and display them in the implementation of the of the definition of -- NOT 20 abstract method LTC APPLICABLE Reference:https://www.softwaretestinghelp.com/javaljava- | interfaces-abstract-classes/ Explain the Definition, syntax, and applications of Abstract classes with example. -- NOT 5 conclusion 2 | Talk APPLICABLE SESSION NUMBER : 21 Session Outcome: 1 Understand final keyword usage with class and instance members Session Outcome: 2 Object class saboutblank 20186 21823, 10.17 PM about bank Teaching- Active ‘Time(min) Topic BTL| Learning | Learning Methods | Methods ~- NOT 5 Attendance 1 | Talk APPLICABLE Usage of final with static members and methods Usage ~-- NOT 20 of final with instance members and methods and class. [2 | PPT APPLICABLE ‘with an example. _ 20 ALM 3s lure Brain storming session ~- NOT 5 conclusion 2 |Talk APPLICABLE SESSION NUMBER : 22 Session Outcome: 1 1, Understand and apply multipleinheritance using Interfaces Session Outcome: 2.2. Understand and apply Template pattern ‘Teaching Active ‘Time(min) Topic BTL] Learning | Learning Methods | Methods ~- NOT 5 Attendance 1 {Talk APPLICABLE Explain Implementation of multiple inheritance usin; NOT 20 xp! pie jon of muluple inheritance using PPT APPLICABLE interfaces andExecution of the program on interfaces “ Discuss the importance of template pattem and expl s NOT 20 iscuss the importance of template pattem and explain. |) | ppp XPPLICABLE ‘the how to apply template pattern ' ~- NOT 5 conclusion 2 |Talk APPLICABLE SESSION NUMBER : 23 Session Outcome: 1 1. Understand importance of factory method design pattern Session Outcome: 2 2. Understand and apply factory method design pattern aboutblans ‘Teaching- Active ‘Time(min) Topic BTL| Learning | Learning Methods | Methods --- NOT 5 Attendance 1 | Talk APPLICABLE, --NOT 20 Explain the importance of factory method design pattern [2 | PPT APPLICABLE 20 Explain the factory method design pattern with a proper [2 |PPT -- NOT, example APPLICABLE, 26 218/23, 10:17 PM ‘about blank examples. --NOT 5 conclusion 2 |ppr ‘APPLICABLE SESSION NUMBER : 24 Session Outcome: 1 1. Understand importance of generic Classes and methods Session Outcome: 2.2. Understand and apply generic classes and methods. Teaching- | Active Time(min) Topic BTL| Learning | Learning Methods | Methods --NOT 5 Attendance 1 |talk APPLICABLE 20 ALM 2 |LTC QuiziTest Questions Explain the importance of generic Classes and methods. ~-NOT 25 Explain the generic Classes and methods with a proper |2 | PPT APPLICABLE Session Outi SSION NUMBER : 25 jcome: 1 Students will be able to work with collection framework classes 1. LinkedList 2. Session Outi Vector. Teaching- Active ‘Time(min) Topic BTL| Learning | Learning Methods | Methods ~- NOT 5 Attendance 1 [Talk APPLICABLE, Difference between ArrayList LinkedList and Vector in NOT 10 jeva. fence betwee yList LinkedL.ist ‘ector 2 |PPT APPLICABLE -- NOT 10 Demo on LinkedList and its methods 2 |PPT APPLICABLE ~- NOT 10 Demo on Vector & its methods 2 |PPT APPLICABLE 20 ALM. 3 |Talk Group Discussion SESSION NUMBER : 26 ‘come: 1 Students will be able to understand and work with comparable, comparator, cloneable, and iterator interfaces ‘Time(min) Topic ‘Teaching- BTL] Learning Methods ‘Active Learning Methods aboutblans 22K6 2623, 1017 eM abou ark NOT 5 [Attendance 1 |Tatk APPLICABLE Difference between comparabl arator, cloneabl Nor 0 ifference between comparable, comparator, cloneable, |) | ppp XPPLICABLE and iterator interfaces 29 Demo on Usage of Comparable and Comparator > \ppr cpp, ‘ABLE interfaces. Demo on Cloneable &iterator interfaces NOT 10 Example program 2. |ppr APPLICABLE NOT 5 conclusion 2 PPT APPLICABLE SESSION NUMBER : 27 Session Outcome: 1 Students will be able to understand and work with Anonymous classes, Decorator patter TTeaching- ‘Time(min) Topic BTL| Learning | Learning Methods | Methods NOT 5 Attendance 1 Talk APPLICABLE. NOT 20 Explain how to create Anonymous classes 2. [per APPLICABLE Explain importance of Decorator Pattern. D: x NOT 00 Explain imporance of Decorator Patten, Demo on | [ppp SPPCCABLE }ecorator pattern ar —NOT 5, conclusion 2 PPT APPLICABLE Session Outi SESSION NUMBER : 28 fcome: 1 At the end of this session students will be able to learn about event drivenprogramming Teaching- AC ‘Time(min) Topic BTL| Learning | Learning Methods | Methods NOT 5 |Attendance 1 Talk APPLICABLE -- NOT 25 Explain Event Handling mechanism. 2 |PPT APPLICABLE --NOT 20 Introduce to various events, Listeners and Handlers 2 Talk APPLICABLE aboutblank 26 218/23, 10:17 PM ‘about blank SESSION NUMBER : 29 Session Outcome: 1 student will be able to devlop event driven applications aboutblans handling with an example. And explain different ways to iprint exception messages in Java. a) Modify the above code to handle the exception that may ariseusing try catch ‘block? public class TryCatchExample! { public static void main(String[] args) { int data=S0/0; ‘System.out.printin("rest of the code"); } } b) Ask the students to write a programs to catchArithmeticException, Teaching- Active ‘Time(min) Topic BTL| Learning | Learning Methods | Methods -- NOT 5 |Attendance 1 |Talk APPLICABLE Develop calculator applications by adding all events and Nor 30 evelop calculator applications by adding all events and |, | pe, APPLICABLE event listeners “ 20 ALM 3. LTC Brain storming session Session Outcome: 1 Understand difference between Exceptions and errors in java Session Outcome: 2 Understand various Exceptions Teaching- Active ‘Time(min) Topic BTL) Learning | Learning Methods | Methods --NOT 5 Attendance 1 | Talk APPLICABLE, Explain difference between Exceptions and errors in Nor 20 Kava “Pi 2 |PPT APPLICABLE --NOT 25 Explain Java API class hierarchy for exception handling 3 |LTC APPLICABLE SSION NUMBER : 31 Session Outcome: 1 Understand difference between Exceptions and errors in java Session Outcome: 2 Understand various Exceptions ‘Teaching- Active ‘Time(min) Topic BTL| Learning | Learning Methods | Methods -- NOT 5 Attendance 1 |Talk APPLICABLE, 40 Explain the usage of try catch bocks in exception 3 |Ltc -- NOT APPLICABLE, 2016 218/23, 10:17 PM ‘about blank ArrayIndexOutOfBoundsException and NumberFormat Exception ~NOT 5 conclusion 2 {Talk APPLICABLE SESSION NUMBER : 32 Session Outcome: 1 Understand the use of nested try catch and multiple try catch blocks Session Outcome: 2 Handle exception using nested try catch and multiple try catch blocks. Teaching- | Active ‘Time(min) Topic BTL) Learning | Learning Methods | Methods --NOT 5 [Attendance 1 [Talk ‘APPLICABLE Explain the concept of multiple catch blocks. Explain ~-NOT 20 exception catching order. Explain catching Multiple |2_—_‘| PPT APPLICABLE Exceptions in a Single catch block. = Predict the ouiput of the following programs. I. public class Test { public static void main(String[] args) { try { ‘System.out.printf("1"); int sum = 9 / 0; NOT 20 ‘System.out printf("2"); } catch(ArithmeticException e) { Lic APPLICABLE System.out print{("3"); } eateh(Exception e) { System.out printf("4"); } } } ~-NOT 5 conclusion 2 |Talk APPLICABLE SESSION NUMBER : 33 Session Outcome: I Understand the Throw and Throws, finally block Session Outcome: 2 Apply the concept of Throw and Throws, finally block Teaching- | Active Time(min) Topic BTL) Learning | Learning Methods | Methods -- NOT 5 Attendance 1 [Talk APPLICABLE --NOT 10 [Explain throw, throws and finally. 2 |PPT APPLICABLE (Create different eases of where java finally block ean be lused. 1. demonstrate the working of finally block when no exception occurs in try block. 2. working of finally Nor 20 Ibtock when an exception occurs in try block but isnot [> |PPT APPLICABLE handled in the catch block. 3. When exception occurs in try block and handled properly in catch block. 10 Find the output of following code using Throws. public [2 |LTC -- NOT class Examplel { int division(int a, int b) throws APPLICABLE ArithmeticException{ int t= ab; return t; } public static ~ aboutblank sis 218/23, 10:17 PM ‘about blank void main(String args{]){ Example] obj = new Example1(); try { System.out.printIn(obj.division(15,0)); } catch(ArithmeticException e){ System.out printIn("You shouldn't divide number by zero"); } } } Session Outi SESSION NUMBER : 34 come: 1 Understand and create User-defined Exception Teaching- ‘Active ‘Time(min) Topic BTL) Learning | Learning Methods | Methods —NOT 5 Attendance 1 Talk APPLICABLE Explain try with res Explain the need of ereati Nor 60 plain try with resources. Explain the need ofereating |) — | ppp RPNCICABLE luser-defined exception A Create a user-defined exception NOT 20 InvalidDimensionException which is thrown by setter 3 LTC APPLICABLE methods of Cuboid class and handled in main() a ~-NOT 5 conclusion 2 |Talk APPLICABLE, SESSION NUMBER : 35, Session Outi come: 1 Understand and use Scanner class for FILE 1/0. Session Outcome: 2 Understand and use various byte stream classes for file handling andUnderstand and use various character stream classes for file handling Teaching- Active ‘Time(min) Topic BTL| Learning | Learning Methods Methods -- NOT, Attendance 1 | Talk APPLICABLE -- NOI 10 Explain importance of Files 2 |PPT APPLICABLE Demo on Seanner class for file handling, Demo on byte -- NOT 30 stream classes, for file handling Demo on character 3. LTC APPLICABLE stream classes for file handling _ --- NOT, 5 conelusion 2 |Talk APPLICABLE SESSION NUMBER : 36 Session Outi come: 1 Understand and use Scanner class for FILE 1/0. Session Outcome: 2 2. Understand and use various byte stream classes for file handling 3. Understand and use various character stream classes for file handling aboutblans 2616 2623, 1017 eM about tank Teaching- | Active Time(min) Topic BTL| Learning | Learning Methods_| Methods —-NOT 5 Attendance 1 |Talk APPLICABLE Explain importance of Files. Demo on Scanner class for Nor 0 file handling. Demo on byte stream classes. forfile =|, lpn APPLICABLE handling Demo on character stream classes for file handling 7 -- NOT s conclusion 1 | raik ‘APPLICABLE SESSION NUMBER : 37 Session Outcome: 1 1. Understand and use wrapper classes for Object 10 using serializable Teaching- | Active Time(min) Topic BTL| Learning | Learning Methods | Methods ~-NOT s [Attendance 1 | taik ‘APPLICABLE Explain the wrapper classes for Object 1O using spor 1 xxplain the wrapper classes for Object 1O using > rate APPLICABLE serializable ar Demo on usage of wrapper classes for Object IO usin; “NOT 20 i ipper class ) 8 is |ure APPLICABLE serializable _ --NOT 10 conclusion 2 | Talk APPLICABLE SESSION NUMBER : 38 Session Outcome: 1 understand string tokenizer Session Outcome: 2 understand string builder Teaching- | Active Time(min) Topi BTL) Learning | Learning Methods | Methods ~-NOT 5 Attendance 1 [Talk APPLICABLE Methods in StringBuffer — length) and capacity() NOT charAt() and setCharAt(), append(), insert), reverse(), 5 : 20 delete(), deleteCharAtQ, replace(), substringQ and other |? |PPT APPLICABLE methods --NOT 20 Usage of StringBuilder Class and its methods 2 |pPr APPLICABLE 5 conclusion 2 ~- NOI APPLICABLE aboutblans 276 218123, 10.17 PM ‘about blank SESSION NUMBER : 39 Session Outcome: I 1. To handle strings using regex package. (Matcher and Pattern classes) Active ‘Time(min) Topic BTL| Learning | Learning Methods | Methods -- NOT 5 Attendance 1 Talk APPLICABLE 10 Explain how to do pattern matching on string data using |y | pp ‘One minute Matcher and pattern paper Predict the output of following: import java.util.regex.*; [public class RegexExamplel { public static void main(String args(]){ //Ist way Pattern Pattern.compile(".s")y/. represents single character --- NOT 30 Matcher m= p.matcher("as"); boolean b= m.matches; [3 [LTC APPLICABLE 12nd way boolean _ 'b2=Pattern.compile(""s").matcher("as").matches(); //3rd ‘way boolean b3 = Pattern.matches(".s", "as"); System.out printin(b#" "+b2#" "+b3); }} --- NOT 5 conclusion 2 |Talk APPLICABLE Tutorial Course DELIVERY Plan: NO Delivery Plan Exists Tutorial Session wise Teaching — Learning Plan No Session Plans Exists Topics CO-Mapping 1 Condi al Statements, Iterative statements in java cos > Advantages of OOP and its key features, Java program hierarchy and cos compilation process. Primitive Data Types and Arrays 3 Arrays cos 4 week-4 cos 5 Array of objects, Aggregation and Composition cos 6 Inheritance cos 1 + Abstract classes + Final keyword + Interfaces cos aboutblank 216 218/23, 10:17 PM ‘about blank Tutorial Session Topics CO-Mapping no 8 + Generic classes + Vector & LinkedList cos + Comparable, Comparator, Cloneable, and Iterator interfaces. * Anonymous 9 = - cos classes + Event driven programming with event listeners. 10 + Exceptions Handling try, catch, finally cos throw and throws keywords + try with resources, user defined exceptions + I 2: cos File 1, byte streams, character streams 12 + StringBuffer + StringBuilder cos Practical Session wise Teaching — Learning Plan SESSION NUMBER : | Session Outcome: 1 At the end of thes session student will be able to develop java programs by applying conditional statement Session Outcome: 2 At the end of thes session student will be able to develop java programs by applying Iterative statement ‘Time(min) Topic Teaching- BTL] Learning Methods ‘Active Learning Methods 50 Chris and Dolly were discussing about their monthly bills to be paid in the due time and identified that they are pending in paying the electrical bill and Dolly asks for the electrical bill details. Here are the details given by Chris for the payment of bill. Generate electricity bill based on numbers of units consumed + if units are <50 ithen rate per unit is 2RS. * Units are >= 51 and <= 100 then rate per unit is 3RS. + units are>= 101 and <= 300 then rate per unit is 5 Rs and add extra 100Rs to the total Dill. « units are >=301 and <= 450 then rate per unit is 6RS and add extra 200 RS to the total bill « units are >450 then per unit is 8RS and add extra 250 RS to the total bill. Now your task is to identify the units utilized and the amount to be pay. 3 |Lrc --- NOT APPLICABLE 50 1.The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequence, such that each number is the sum of the two preceding ones, starting from 0 and 1. That is, F (0) = 0, F (1) = 1 F(n) = F (n- 1) +F (n- 2), forn > 1. Given n, calculate F(n). Now your task to print the Fibonacci series number's up to n number. 2. Given a number N, check if a number is perfect or not. A number is said to be perfect if sum of all its factors excluding the number itself is equal to the number. Now your task to check whether the given number is Perfect number or not. 3. |LTC --NOT APPLICABLE, aboutblans 2916 218/23, 10:17 PM ‘about blank SESSION NUMBER : 2 Session Outi Session Outi jcome: 1 use primitive data types in java come: 2 use arrays aboutblans referral candidate, and each candidate is given an interview ID no.HR staff was given a list containing the list of candidates attended for the interview. if the referral \didate attends the interview he will be in the selected list. Given the list of interview ID numbers, the task of |the HR staff is to search the referral candidates ID no. Help HR staff to complete the task. To model this scenario, create a class Interview with a static method Teaching- ‘Active ‘Time(s BTL| Learning | Learning Methods Methods --- NOT 5 Attendance 1 Talk APPLICABLE 1. The Utopian Tree goes through 2 eyeles of growth every year. Each spring, it doubles in height. Each summer, its height increases by I meter. A Utopian Tree sapling with a height of | meter is planted at the onset of . spring. How tall will the tree be after n growth cycles? 2. 7 NoT 45 Given a base-10 integer, n, convert it to binary (base-2). ure APPLICABLE ‘Then find and print the base-10 integer denoting the maximum number of consecutive I's in n’s binary representation. When working with different bases, it is common to show the base as a subscript. 1. Write a class Palindrome with 3 static methods findReverse() which reverses a given number ‘n’, isPalindrome() to check whether a given number “n” is palindrome or not and displayPalindromeNos() to displays all palindrome numbers up to ‘n’, Access them "using main () from the same class. (Take hard coded NOT 50 value for the variable n) 2. Write a class Palindrome with [3 [LTC APPLICABLE 5 static methods findReverse() which reverses a given _ number ‘n’, isPalindrome() to check whether a given number ‘nis palindrome or not and displayPalindromeNos() to displays all palindrome numbers up to ‘n’, Access them using main () of PalindromeDemo Class which is in the same package. SESSION NUMBER : 3 Session Outcome: 1 apply arrays Teaching- Active Time(min) Topic BTL) Learning Learning Methods | Methods NOT 5 Attendance 1 Talk APPLICABLE 50 For an interview, the candidates are waiting outside for [3 [LTC -- NOT. their turn, Among these candidates one person is the APPLICABLE 0166 218/23, 10:17 PM aboutblank search () which accepts an array of integers which represent all the candidates ID numbers and a referral candidate ID number. If referral candidate ID is present in array return true otherwise, return false. Access the methods in Interview class from main () of HR class. (Take input through command line) 2. Enhance the utility class of Problem W03-P03 with the following static methods to work on 2D Arrays: a) findSum () - to Sum of all elements b) print () - Print the data in matrix form c) printPrincipal () to Print the elements of principal diagonal d) printPrincipalSum () to Print the sum of clements in Principal diagonal 45 3. Consider two closed circuits containing ten resistors each conmected in series and parallel respectively. Find the total resistance of the two circuits. To model the above scenario, create a class Circuit with a static method findTotalResistance () which receives an array of integers which represent resistance of each resistor in the serial circuit and returns the total resistance. findTotalResistance () which receives an array of integers ‘which represent resistance of each resistor in the parallel circuit and retums the total resistance. Access the ‘methods in Circuit class from its own main (). (Take hardcoded input) LTC Session Outi SSION NUMBER : 4 jcome: 1 Develop applications using OOP ‘Time(min) Topic BTL ‘Teaching- Learning Methods Active Learning Methods Attendance Talk 45 1. Design a class named Account that contains: + A. iprivate int data field named id for the account (default 0). + A private data field named balance for the account, (default 0). + A no-arg constructor that creates a default account. * A constructor that creates an account with the specified id and initial balance. + The accessor and mutator methods for id, balance. * Mutators return Boolean (If all the fields must be +ve, return true, else false) + A method named withdraw that withdraws a specified amount from the account. » A method named deposit that deposits a specified amount to the account. + A method to print the details of Account Create another class demo which creates objects of Account using all constructors and access the remailing methods. LIC --- NOT APPLICABLE 50 aboutblans 2. Create a class named ‘Rectangle’ with two data members- length and breadth and a method to calculate the area which is length*breadth’. The class has three constructors which are: a. having no parameter - values of both length and breadth are assigned zero. b. having ‘two numbers as parameters - the two numbers are assigned as length and breadth, respectively. c. having jone number as parameter - both length and breadth are LTC -- NOT. APPLICABLE, a6 218/23, 10:17 PM ‘about blank assigned that number. Now, create objects of the "Rectangle' class having none, one and two parameters and print their areas.3 Design a parking system for a parking lot. The parking lot has three kinds of parking spaces: big, medium, and small, with a fixed number of slots for each size. Implement the ParkingSystem class: + ParkingSystem(int big, int medium, int small) Initializes object of the ParkingSystem class. The number of slots for each parking space are given as part of the constructor. + bool addCar(int carlype) Checks whether ‘there is a parking space of carType for the car that wants to get into the parking lot. carType can be of three kinds: big, medium, or small, which are represented by 1, 2, and 3 respectively. A car can only park in a parking space of its carType. If there is no space available, return false, else park the car in that size space and return true Session Outi Session Outi ION NUMBER : 5 jcome: 1 understand array of objects come: 2 understand and apply aggregation and composition ‘Time(min) Topic BTL ‘Teaching- Learning Methods ‘Active Learning Methods |Attendance 1 Talk --- NOT APPLICABLE 45 1. Create a Student class with ID, name, gender, and [branch. Use getter and setters, The ID must be 9-digit ‘number, name must not have special characters and digits, gender must be either M/F, and branch must be either ECE/CSE/ME/ECSE/CE/BT/E] Use toString () to format the details of Student, Create Department class ‘with array of references of the class Student as instance variable, a static variable stuCount which represents total number of students, addNewStudent() to store the details |, of a new student, printAlIStudents() to print details of all students, searchStudentID() to search for a student based ‘on ID, searchStudentName() to search for a student based jon Name, modifyName() to modify the student name based on ID. Enhance the main () method of Demo class to display a menu of operations as follows: 1. Add new student 2. Print details of all students 3. Search a student ‘based on ID 4. Search based on name 5. Modify name based on ID 6. Exit LIC -- NOT APPLICABLE 50 3. You are playing the following Nim Game with your friend: Initially, there is a heap of stones on the table. + 'You and your friend will altemate taking turns, and you go first. + On each tum, the person whose turn it is will remove | to 3 stones from the heap. * The one who removes the last stone is the winner, * Given n, the inumber of stones in the heap, return true if you can win the game assuming both you and your friend play optimally, otherwise return false. LINK: bit.ly/CTOOD- WSP3 LIC --NOT APPLICABLE, aboutblans: 26 218/23, 10:17 PM ‘about blank SESSION NUMBER : 6 Session Outcome: 1 understand inheritance Session Outcome: 2 apply inheritance Time(s Topic BTL Teaching- Learning Methods Active Learning Methods Attendance Talk -- NOT. APPLICABLE, 20 1. Create GeometrieShape Class with attributes borderColor (String), filled (Boolean type) with three setter, getters and toString (). This is inherited by Rectangle Class with length and width as attributes. The Rectangle class is further inherited by Cuboid class with height field as its instance variable. Add mutators, accessors and toString () methods. Use super keyword. (Multilevel Inheritance) LIC -- NOT. APPLICABLE, 25 2. Create Student class with ID, name, gender, and branch. Use getter and setters. The ID must be 9-digit number, name must not have special characters and digits, gender must be either M/F and branch must be either ECE/CSE/ME/ECSE/CE/BT/EEE. Use toString () {to format the details of Student. Create Department class ‘with ArrayList of type Student as instance variable, addNewStudent() to store the details of a new student, print lIStudents() to print details of all students, searchStudentID() to search for a student based on ID, searchStudentName() to search for a student based on ‘Name, modifyName() to modify the student name based on ID. Enhance the main () method of Demo class to display a menu of operations as follows: 1. Add new student 2. Print details of all students 3. Search a student based on ID 4. Search based on name 5. Modify name based on ID 6. Exit LTC --- NOT APPLICABLE 25 aboutblans 1. Design a class named Triangle that extends GeometricShape. The class contains: * Three double data fields named side1, side2, and side3 with default values 1.0 to denote three sides of the triangle. + A no-arg constructor that creates a default triangle. + A constructor that creates a triangle with the specified side1, side2, and side3. + The accessor methods for all three data fields. + A. method named getArea() that returns the area of this| itriangle. + A method named getPerimeter() that returns the perimeter of this triangle. + A method named toString() that returns a string description for the triangle. The toString() method is implemented as follows: retum "Triangle: sidel =" + sidel +" side2 =" + side2 +" side3 =" + side3; Write a test program that prompts the user to enter three sides of the triangle, a color, and a Boolean value to indicate whether the triangle is filled The program should create a Triangle object with these sides and set the color and filled properties using the input. The program should display the area, perimeter, LTC -- NOT. APPLICABLE, aK 218/23, 10:17 PM ‘about blank color, and true or false to indicate whether it is filled or not. 25 Write the following code in your editor below: « A class named Arithmetic with a method named add that takes integers as parameters and returns an integer denoting their sum, + A class named Adder that inherits from a superclass named Arithmetic. LTC -- NOT. APPLICABLE, SESSION N UMBER : 7 Session Outcome: 1 use abstract classes Session Outcome: 2 Apply final keyword Session Outcome: 3 Apply interfaces, ‘Time(min) Topic BTL| Teaching- Learning Methods ‘Active Learning Methods |Attendance ‘Talk ~-- NOT APPLICABLE 45 1. Complete the code in your editor by writing an overridden getNumberOfTeamMembers method that iprints the same statement as the superclass’ getNumberOffeamMembers method, except that it replaces N with 11 (the number of players on a Soccer team). LINK: https://bit.ly/CTOOD-W7-P 1 LTC -- NOT. APPLICABLE, 25 2. Define an abstract base class Point that includes [protected data members for the (x, y) position of a shape, public method to move a shape, and a public abstract method show() to output a shape. Derive subclasses- line, circle, and rectangle. You can represent a line as two [points, a circle as a center and a radius, and a rectangle as 'two points on diagonally opposite corners. Test the classes by selecting ten random objects of the derived classes, and then invoking the show() method for each LIC -- NOT APPLICABLE, 25 1. We must calculate the percentage of marks obtained in three subjects (each out of 100) by student A and in four subjects (each out of 100) by student B. Create an abstract class 'Marks’ with an abstract method 'getPercentage’. It is inherited by two other classes ‘A’ and 'B' each having a method with the same name which returns the percentage of the students. The constructor of |° student A takes the marks in three subjects as its parameters and the marks in four subjects as its 'parameters for student B. Create an object for each of the ‘wo classes and print the percentage of marks for both the students. LTC --- NOT APPLICABLE SESSION MBER : 8 Session Outcome: 1 use generic classes Session Outcome: 2 use vector and linkedlist aboutblans 06 2023, 1017 M abou ark Teaching- ‘Active ‘Time(min) Topic BTL| Learning | Learning Methods Methods --- NOT 5, Attendance 1 Talk APPLICABLE. 1. Develop a java program to store the details of students —NOT 25 in an LinkedList. Use the Student class of previous lab |2 LTC APPLICABLE programs, = 2, You are the class representative and are required to store the Student Details and ID numbers of all your classmates. Develop a program which takes in the details NOT 40, of the students as dynamic user input and store themin |2 LTC APPLICABLE | Vector. It should print the details and it should also be — able to help you search for a student detail using the ID number 1. Develop a program to read the country names and store in a Vector and then perform the following menu NOT 40 driven operations. a) Search for acountry name b) Sort |2 [ETC APPLICABLE based on country name SSION MIBER : 9 Session Outcome: 1 Develop event driven applications Session Outcome: 2 use collections Teaching- ‘Active ‘Time(min) Topic BTL| Learning | Learning Methods | Methods --- NOT 5 Attendance 1 Talk APPLICABLE [Develop a java program using swing package. The [program must display a student registration page, which reads ID, Name, Gender (Use Radio Buttons) and department (Use Drop down selection) and two buttons -- NOT, 30 Submit and Reset, When the user clicks Submit, then 2 LTC APPLICABLE, validate the data, use JOptionPane to alert ifany data is _ missing or entered wrong, otherwise display the data submitted back on JOptionPane. The reset button clears all the data ; —NOT 30 2. Develop a simple calculator to perform basic 3 lure APPLICABLE arithmetic on 2 integers using GUI al 1, Write a java program that reads Student ID, Name, -- NOT 40 age, gender and prints the details on User Interface. [3 [LTC APPLICABLE (Hint: Use JOptionPane of javax.swing package) — SESSION NUMBER : 10 Session Outcome: 1 understand exception handling Session Outcome: 2 use try catch aboutblans 3846 2023, 1017 M abou ark ‘Teaching- ‘Active ‘Time(min) Topic BTL| Learning | Learning Methods Methods --- NOT 5, Attendance 1 Talk APPLICABLE. 1. Election committee wants to check whether the voter is eligible to vote or not, The person can vote if his age is greater than 18. Help the Election committee by a developing a code which arises exception if the voter age ~ Not 30 is less than 18 then print the exception and “VOTER IS. |2_ [LTC APPLICABLE NOT ELIGIBLE TO VOTE”, otherwise print “VOTER IS ELIGIBLE TO VOTE”. (Hint: Develop user-defined Exception) 2, Enhance the Student class of previous problem, such ‘that when Invalid ID (-ve number) is given it must throw ~- NOT. 30 InvalidIDException, and InvalidNameException when |? [ETC APPLICABLE name has special characters or digits 1. Create a Class Engine with attributes enginelD (int), engine Type (String), horsepower(int), engineWeight (float). add constrictors, getter, setters and toString () for NOT 35 Engine class. Enhance the setters in such a way that if 2 LTC APPLICABLE invalid data is sent the setter will generate an appropriate _ exception, Create 2 objects in main () and access the methods using these objects. Display the details SESSION NUMBER : 11 Session Outcome: 1 understand files ‘eaching- ‘Active ‘Time(min) Topic BTL| Learning | Learning Methods Methods NOT 5 Attendance 1 Talk APPLICABLE 1, Chandu has 2 files, Names.ixt and Address.txt. |Names.txt has 2 columns ID and student names and Dept.xt has 2 columns ID and Address. Fortunately, the NOT 35 IDs in both files are same and sorted. The task is to read |2 LTC APPLICABLE data from both files and print the student data in the _ following format: ID: Name: Address: Print one student details per line on the console. 2. Create a class Book with BName, Bld, BAuthor, and ‘YOP (Year of Publication). Use proper getter and setter methods. BName must not have any special symbols except ‘-', Bld must not have any whitespace and special symbols, BAuthor must not have any special characters Nor 2s and digits, and YOP should contain only a 4-digit > lure APPLICABLE number. Use toString () to format the details of the book. Create 2 objects in main () and access the methods using these objects. Display the details. And create user defined exceptions for all the attributes and if any invalid data is entered throw the appropriate user defined exception. aboutblans 646 218/23, 10:17 PM ‘about blank --- NOT 3. Danya gave integers aa, bb and nn to Archi. Archi 25 lwants to compare an and bn, Help Archi with this task, |? |LTC APPLICABLE SESSION NUMBER : 12 Session Outcome: 1 use string buffer ‘Teaching- Active ‘Time(min) Topic BIL) Learning | Learning Methods | Methods --NOT Attendance 1 |Talk APPLICABLE, 1, Write a program that sets up a String variable to read a paragraph of text. Extract the words from the text and --NOT 35 sort them into alphabetical order. Display the sorted list. |2. |LTC APPLICABLE, of words. You could use a simple sorting method called _ the bubble sort. 2. Define an array of ten String elements each containing an arbitrary string of the form “month/day/year”; for --NOT 25 example,"10/29/99" or “12/5/01”. Analyze each element |2 [LTC APPLICABLE, in the array and output the date represented in the form. ~ 29th October 1999 3. Chef has two strings AA and BB consisting of lowercase alphabets, each of length NN. Help Chef in --- NOT, 25 finding the number of indices i (1 2 |Lre APPLICABLE, Ali...N] < Bfi...N]. Link: https:// bit.ly/CTOOD-W12- _ PI Program Skilling Course DELIVERY Plan: NO Delivery Plan Exists Skilling Session wise Teaching — Learning Plan No Session Plans Exists WEEKLY HOMEWORK ASSIGNMENTS/ PROBLEM SETS/OPEN ENDEDED PROBLEM-SOLVING EXERCISES ete: ‘Assignment | Assignment! Topi it Week| Type No Topic Details co COURSE TIME TABL Hour 1 2 3 4 5 6 8 9 Day [Component aboutblans a6 2623, 1017 eM about tank V-S5,V-|V-S5,V- $6V- |S6,V- VesiVv- |V-S1v- s7Vv- |s7Vv- sv. |s2,V- Theory |$13,V- /S13,V- | -- |ssv- [s3ve | - - si4v- |siav- $25,v. |$25,Ve Sis.V- |S15,V- s26 |826 Mon) S16 S16 Tutorial (- [= = |= =i = = V-$51,V- | V-851,V-] 8 Lab jm owe je |= LSE ESOENS| s30.v. $40 Skiing [= [= [= — |= =F - - V-S9,V- S10,V- SILV- VSLV- S2LV- V-837,V- | V-S37,V- S2,V- |V- $22,V- Vv S38, Vv. $38, Vv. 83,V- |SI7,V- | aye S23,V- |S21V- [ae |Sso'y. Theory |s17,v- |sisv- [S14 |. saa. |s2a.ve [$3 We | S15,V- S, S40,V- $40,V- SI8V- /S19,V- 31% sao. |sasiv. Sanv | AON S19,V- |S20 $50,V- S24 $42, 842. $20 SSLV- $52,V- Tue $53,V- S54 ‘Tutorial — ~~ _ i - - =~ = - v-$53,V- | v-853,V-] Lab a ~~ PM ee save $42 ve vssv- |s5.v- Skilling |~ ~ S6,V-S7 |86,V- |~ ~ ~ ~ ~ s7 aboutblank 3046 21823, 10.17 PM aboutblank V-89,V- $10,V- SILV- SITV- S18,V- 3 v- SION VSSTV- 'S21,V- szoy- |X S38V" ~ My. |S9.V- $39,V- Theory — |$22,V- |-- S25, ero | - -- sav. |" $23,V- srev- [8 SAL. $24 $43,V- S42. S44,v- S45,V- ‘Wed S46,V- S47,V- S48 Tutorial |~ - = - = = - = ~ Lab _ . . . . . V-849,V- | V-S49,V- Sn Vv. sso" [sso |S Ve V-813,V- skin V-SLV-|V-SLV- Stave MIME /2,V-S3|S2,V-83]~ ~ SIS,V- | ~ ~ sie S15,V- S16 'V-S43,V- |V-S43,V- S44,V- |844,V- rh S45,V- |845,V- cory ~ ~ ~ ~ ~ S46,V- |S46,V- | S47,V- |S47,V- S48 S48 Tutorial |— - = - = ~ ~ = _ V- 'V-89,V-|V-S9,V-|\ « V-SI,V- v- Thu |Lab si0,v- |si0,v- [YSN Boe | ESI |save | - $43,V- su |sil . Ss? ” 83 S44 vesi7v-|Mo. |v.ss7,v-|vs37.v-[¥5, ve ive V- oY /S17,V- : oY" | S49,V- 13,v- |s13,v- | ¥S2L% sory. |SIBY Isigiy. [S380 |S38.V- I gso'y. , My, |822,V- yy, |S19.V- v |S39.V- |S39,V- " Skilling |S14V- [Sl4v- [Soo |822,V- |S, |SIRV- [Sagy. [sqovy. |SS1V- S15V- |S15,V- |o4° 23,V- S55", |S20.V- [Sar'y. sary. |S52Ve S16 |S16 S24 [56 |S25,V- |ga9[gqy’ sf S53,V- S26 $54 aboutblank 3946 223,017 PM aboutblank V-S5,V- Theory = |s6,v-s7|7 hoo 7 OF ~ ~ Tutorial [— [= = [= = i - = v- |v. Vv. ve S17,V- |S17,V- Sa S21,V- Sa $13,V- v- Lab SI8V- |Si8v- [Soo |s22.V- [Sisy |S14N- |- - $45,V- Si9,v- |si9,v- [S57 |sa3.ve gre |sis.ve $46 Fri Sm 24 si6 v-843,V- |v-843,v-] s44v- |saay. |S49-V° ve ive V-S9V- |VeS9Ve EEN |Sgay |850,V= Skilling — |$25,V- |$25,V- s10,V- |s10,v- [$4 N. |SS1V- S46,V- | S46,V- 826 |s26 su [sir $52,V- S47V- |s47.v- 85 sas sas 83> v. |v. $49,V- |S49,V- '850,V- |$50,V- Theory |SS1.V- |S51,V- |~ ee ~ fe - - $52,V- |$52.V- '953,V- |$53,V- ssa |ssa Tutorial |[— - = [= = i ~ = Ve ve Lab ~- - SY 825,V- | - - - S47,V- 26 S48 Sat V-837,V- | V-537,V- S38,V-|$38,V° S39,V- | $39,V- V-85,V-|V-85,V- v. y {S40.. |sao.v- S6V- /S6V- |v-s2iv- [8 y [V-SI7V- [Zia [SAL [sary skiting |SPY- |S7.V- |s2zve [EON Isisv- gig [Save |saav- | B |sov. |sav- |saave |S ON" /siav. SIGN: |S43.v-/S43.V- $10,V- |S10,V- |S24 S24) ~ |$20 $20. " |844,v- |S44,v- si |sul S45,V- | S45,V- S46,V- | S46,V- S47.V- |$47,V- s48.__|sas Theory |- - = = [= =i - = Sun Tutorial | | - | - - - 5 _ Lab - - = [= = i ~ = Skilling | = = [= = i ~ = REMEDIAL CLASSES: Supplement course handout, which may perhaps include special lectures and discussions that would be planned, and schedule notified according SEL LEARNING: Assignments to promote self-learning, survey of contents from multiple sources. ‘S.no Topics co ALM References/MOOCS aboutblank 40166 218/23, 10:17 PM ‘about blank DELIVERY DETAILS OF CONTENT BEYOND SYLLABUS: Content beyond syllabus covered (if any) should be delivered to all students that would be planned, and schedule notified accordingly. Sno] Advanced Topics, Additional Reading, Research | Gg ALM References MMOOCS Papers and any EVALUATION PLAN: Evaluation | Evaluation i ‘Assessment | Duration Type Component | Weightage/Marks | ren | ours), |CO!|CO2/CO3|Co4 Cos Skill Sem-End [Weightage [8 15 [15 [15 [15 [2 End Exam Max Marks [50 10 10 [10 [10 [10 |10 Semester ax Marks Summative |End Semester |Weightage _|24 180 6 6 (6 |6 Evaluation |Exam Max Marks [100 25 [25 [25 [25 ae 0 Lab End Weightage [8 10 1s [is [is [is [2 ° Semester Exam |Max Marks |50 10 [10 [10 [10 [10 Ratings on Weightage [4 oir fr fa Global 30 Platforms Max Marks |40 10 [10 |10 10 Weightage [4 08 |08 jos jos jos Continuous 50 In Semester | Evaluation Max Marks |50 10 |10 10 [10 [10 formative ALM Weightage [8 os 2 2 2 (2 Evaluation | AL! Total 26 Max Marks _|40 10 [10 [10 [10 % Home Weightage [4 i ee Assignment 20 and Textbook {Max Marks |40 10 |10 [10 |10 Continuous —|Weightage [6 1o|ro ja fa 2 Evaluation - 90 Lab Exercise [Max Marks |50 10 [10 |10 [10 10 Semester in |Weightage _| 12 90 6 |6 Exam-I Max Marks [50 25 [25 In Semester Semester in |Weightage _|12 00 6 |6 Summative | Exam-II Max Marks _|50 25 |25 Evaluation Total. 34 Lab In Weightage [5 110 1 i ft i % Semester Exam |Max Marks |50 10 |10 |10 |10 |10 Skill In-Sem — |Weightage _|5 10 es ee Exam Max Marks _|50 10 [10 [10 [10 [10 ATTENDANCE POLICY: Every student is expected to be responsible for regularity of his/her attendance in class rooms and laboratories, to appear in scheduled tests and examinations and fulfill all other tasks assigned to him/her in every course In every course, student has to maintain a minimum of 85% attendance to be eligible for appearing in Semester end examination of the course, for cases of medical issues and other unavoidable circumstances the aboutblans ane 218/23, 10:17 PM ‘about blank students will be condoned if their attendance is between 75% to 85% in every course, subjected to submission of medical certificates, medical case file and other needful documental proof to the concerned departments DETENTION POLICY : In any course, a student has to maintain a minimum of 85% attendance and In-Semester Examinations to be eligible for appearing to the Semester End Examination, failing to fulfill these conditions will deem such student to have been detained in that course: PLAGIARISM POLICY Supplement course handout, which may pethaps include special lectures and discussions COURSE TEAM MEMBERS, CHAMBER CONSULTATION HOURS AND CHAMBER VENUE DETAILS: Supplement course handout, which may perhaps include special lectures and discussions Delivery |Sections) Chamber ee Chamber | Signature Name of Faculty [Component | of | Consultation) C9°S¥!t24%0" | Consultation | of Course of Faculty | Faculty| Day (s) 2 Room No: | faculty: HARITHA| DONAVALLI L PMA : : - HARITHA DONAVALLI P SMA | : : - 16 SRIDEVIEMANDI—|L MA,I8- |- - - - MA\ 16 SRIDEVIEMANDI — |P IMA,18- |- - - . MA 16 SRIDEVIEMANDI— |S MA,I8- |- - - - MA 10- Zeelan CMAK L MA,39- |- - - - MA 10- Zeelan CMAK P MA39- |- - - . MA 10- Zeelan CMAK s MA,39- |- - : - MA VELAGAPALLI 1s. - ; L MA,I9- |- - - - PREMALATHA we 15- VELAGAPALLI P MA,I9- |- - - - PREMALATHA Me 15- VELAGAPALLI PREMALATHA s MAT | - - - aboutblank 4246 218123, 10:17 PM ‘about blank SREERAM L 1-MA6- . NIMMAGADDA MA SREERAM P 1-MA6- NIMMAGADDA MA . SREERAM $ I-MA6- . NIMMAGADDA MA 13- RAJESH KUMAR L MA.41- - ESWARAN MA’ 13- RAJESH KUMAR P MA,41- - ESWARAN MA’ 13- RAJESH KUMAR s MA,41- - ESWARAN MA 7 3-MA,7- GANESAN T L MA - 3-MA,7- GANESAN T P MA - 3-MA,7- GANESAN T s MA - 1 ASHOK BEKKANTI|L MA,42- : MA 1 ASHOK BEKKANTI |P MA42- - MA 14 ASHOK BEKKANTI |S MA42- : MA 1 MADUPU KUMAR |L MA,37- - MA i MADUPU KUMAR /P MA,25- - MA i MADUPU KUMAR |S MA,37- - MA PARASAGAYATRI_|L 2-MA - PARASAGAYATRI__[P MA - 5 2-MA,5- PARASAGAYATRI |S MA - Konduri praveen L S1-MA : 37- Konduri praveen P MA,s1- - MA Konduri praveen s S1-MA - \47- ‘Aravindan Srinivasan |L MA,53- : MA aboutblank 4346 218123, 10:17 PM ‘about blank aboutblank ‘Aravindan Srinivasan [P 53-MA_|- ‘ 47. Aravindan Srinivasan |S MAS3- |- - MA 44- Ashish Ashish L IMA.0- |- : MA [Ashish Ashish P 50-MA |- 44 Ashish Ashish s MAS0- |- : MA ALANGUDI BALAJI 9- NAVANEETHA RAMA |L MA40- |- : KRISHNAN MA ALANGUDI BALAJI 9- NAVANEETHA RAMA |P Ma,40- |- : KRISHNAN MA ALANGUDI BALAJI 9- NAVANEETHA RAMA |S MA4o- |- - ‘KRISHNAN MA 17- RAMESH MYLAPALLI|L IMA24- |- : MA 17- RAMESH MYLAPALLI /P- MA,24- |~ - MA 17- RAMESH MYLAPALLI/S MA24- |- - MA 21- Karri Bhaskar L MA43- |- : MA i Karri Bhaskar P MA,43- |- - MA 21- Karri Bhaskar s MA43- |- - MA ‘CHOPPARAPU GOWTHAMI L 20-MA |- - (CHOPPARAPU GOWTHAMI Pr 20-MA |- - CHOPPARAPU GOWTHAMI s 20-MA |- - ALAPATI KRANTHI L 38-MA_ |- - |26- MA,38- ALAPATI KRANTHI P MAad- | - MA ALAPATI KRANTHI Ss 38-MA |- - Dasari Manasa L }22- = - MA,25- 406 2613, 1017 eM abou tank MA 22- Dasari Manasa P MA48- : MA }22- Dasari Manasa s MA25- : MA 48- ANANTHARAMAIAH | ae sa. . VENGALA, ha ANANTHARAMAIAH VENGALA P S4MA : ANANTHARAMATAH | ¢ Re sa . VENGALA Me 23- MACHERLA VATHI |L MA.26- : MA 23- MACHERLAVATHI |P MAA47- : IMA 23- MACHERLA VATHI |s MA.26- - MA Sri Anima Padmini | 45 MA . Viriyala Sri Anima Padmini | asMA . Viriyala SriAnima Padmini | 45-MA . Viriyala Manasa Adusumilli [LE 49-MA : Manasa Adusumilli__[P 49-MA : Manasa Adusumilli |S 49-MA : VUYYURU LALITHA |L 46-MA : VUYYURULALITHA |P 46-MA : VUYYURU LALITHA [S 46-MA : Rajani Gorrepati L 52-MA : Rajani Gorrepati P 52-MA : Rajani Gorrepati s 52-MA : GENERAL INSTRUCTIONS. Students should come prepared for classes and carry the text book(s) or material(s) as prescribed by the Course Faculty to the class. NOTICES, Most of the notices are available on the LMS platform, All notices will be communicated through the institution email. aboutblank 456 218/23, 10:17 PM ‘about blank All notices concerning the course will be displayed on the respective Notice Boards. Signature of COURSE COORDINATOR (SREERAM NIMMAGADDA) Signature of Department Prof. Incharge Academics & Vetting Team Member Department Of DBES-1 HEAD OF DEPARTMENT: Approval from: DEAN-ACADEMICS (Sign with Office Seal) [object HTMLDivElement] aboutblank 4616

You might also like