Difference between revisions of "Summer 2021: Programming in Java"

From MKWiki
Jump to navigation Jump to search
Line 37: Line 37:
 
* ''Home Assignment (HA) No. 2'', Difference between Procedure Oriented Programming(POPs) and Object Oriented Programming(OOPs). [08/04/2021]
 
* ''Home Assignment (HA) No. 2'', Difference between Procedure Oriented Programming(POPs) and Object Oriented Programming(OOPs). [08/04/2021]
 
* ''Home Assignment (HA) No. 3'', Write some real life examples (pictorial representation) of OOPs. [08/04/2021]  
 
* ''Home Assignment (HA) No. 3'', Write some real life examples (pictorial representation) of OOPs. [08/04/2021]  
* ''Home Assignment (HA) No. 4(a)'', WAP to read n elements in an array and finally print them.
+
* ''Home Assignment (HA) No. 4(a)'', WAP to read n elements in an array and finally print them. [16/04/2021]
* ''Home Assignment (HA) No. 4(b)'', WAP to calculate the sum and average of elements in the array.
+
* ''Home Assignment (HA) No. 4(b)'', WAP to calculate the sum and average of elements in the array. [16/04/2021]
* ''Home Assignment (HA) No. 4(c)'', WAP to find the largest and smallest element in the array.
+
* ''Home Assignment (HA) No. 4(c)'', WAP to find the largest and smallest element in the array. [16/04/2021]
* ''Home Assignment (HA) No. 4(d)'', WAP to find/search an element in the array(using linear search).
+
* ''Home Assignment (HA) No. 4(d)'', WAP to find/search an element in the array(using linear search). [16/04/2021]
* ''Home Assignment (HA) No. 4(e)'', WAP to sort the elements of an array(using bubble sort).
+
* ''Home Assignment (HA) No. 4(e)'', WAP to sort the elements of an array(using bubble sort). [16/04/2021]
 +
* ''Home Assignment (HA) No. 5(a)'', WAP to find the Factorial of a given integer number. [20/04/2021]
 +
* ''Home Assignment (HA) No. 5(b)'', WAP to find the Fibonacci Series upto a given limit. [20/04/2021]
 +
* ''Home Assignment (HA) No. 5(c)'', WAP to generate the following patten <br>
 +
* <br>
 +
*  * <br>
 +
*  *  * <br>
 +
*  *  *  *<br>
 +
*  *  *  *  *<br>
 +
[20/04/2021]
  
 
===Class Assignments===
 
===Class Assignments===

Revision as of 10:07, 21 April 2021

Logistics

  • Class Timings: Tuesdays 10:45 am - 12:45 pm (3rd and 4th slot) & Fridays 8:45 am - 10:45 am (1st and 2nd slot)
  • Classroom: Online
  • Lab Timings: Wednesdays and Thursdays 10:45 am - 12:45 pm (3rd and 4thslot)

Course Overview

Lectures

Lecture Topic Lecture Slides Readings
Lecture 01 ( 01/04/21, 06/04/21) Introduction: History of Java, Java Features, First Sample Program, Java Virtual Machine(JVM) Architecture. 1.pdf Chapter 1 (R1)
Lecture 02 (08/04/21) OOPs Principles: Object, Class, Encapsulation, Abstraction, Inheritance, Polymorphism. 2.pdf Chapter 2 (R1)
Lecture 03 (09/04/21, 13/04/21, 16/04/21, 20/04/21) Data Types, Variables, Arrays, Operators, Control Statements : The Primitive Data Types(Integers, Floating-Point Types, Characters, Booleans). Variables and their scope and lifetime. Type Conversion and Casting. Arrays (One-dimensional Arrays, Multidimensional Arrays) declaration, initialization, and usage. Operators (Arithmetic, Increment and Decrement, The Bitwise Operators, Compound Assignments, Relational Operators, Ternary Operator, Operator Precedence). Control Statemetns (Selection Statemetns-if, switch, Interation Statements - for, while, and do-while. The Enchanced For Loop (For-Each Loop). Jump Statements (break, continue, return). 3.pdf Chapter 3,4,5 (R1)

Assignments and Tests

Home Assignments

  • Home Assignment (HA) No. 1, Difference between JDK, JRE, and JVM. [06/04/2021]
  • Home Assignment (HA) No. 2, Difference between Procedure Oriented Programming(POPs) and Object Oriented Programming(OOPs). [08/04/2021]
  • Home Assignment (HA) No. 3, Write some real life examples (pictorial representation) of OOPs. [08/04/2021]
  • Home Assignment (HA) No. 4(a), WAP to read n elements in an array and finally print them. [16/04/2021]
  • Home Assignment (HA) No. 4(b), WAP to calculate the sum and average of elements in the array. [16/04/2021]
  • Home Assignment (HA) No. 4(c), WAP to find the largest and smallest element in the array. [16/04/2021]
  • Home Assignment (HA) No. 4(d), WAP to find/search an element in the array(using linear search). [16/04/2021]
  • Home Assignment (HA) No. 4(e), WAP to sort the elements of an array(using bubble sort). [16/04/2021]
  • Home Assignment (HA) No. 5(a), WAP to find the Factorial of a given integer number. [20/04/2021]
  • Home Assignment (HA) No. 5(b), WAP to find the Fibonacci Series upto a given limit. [20/04/2021]
  • Home Assignment (HA) No. 5(c), WAP to generate the following patten

  • *
  • * *
  • * * *
  • * * * *

[20/04/2021]

Class Assignments

  • Assignment No. 1, Posted on Google Classroom, Submission Deadline: **/**/2021
  • Assignment No. 2, Posted on Google Classroom, Submission Deadline: **/**/2021
  • Assignment No. 3, Posted on Google Classroom, Submission Deadline: **/**/2021

Tests

  • Test 1, **/**/2021.
  • Test 2, **/**/2021.
  • Test 3, **/**/2021.

Resources

  • R1: Schildt, H. (2018). Java: The Complete Reference. 10th edition. McGraw-Hill Education.


  • Web 1: The Java™ Tutorials [1]
  • Web 2: Java T Point Tutorial [2]
  • Web 3: NTU notes on Java [3]