21EC583 Java Programming syllabus for EC



A d v e r t i s e m e n t

Module-1 Experiments 0 hours

Experiments

01 a) Write a program to accept two integer numbers from the standard input and perform the following arithmetic operations: addition, subtraction and multiplication.

b) Write a program to calculate simple and compound interest.

c) Write a Program to Swap Two Numbers with and without temporary variables.

 

02 a) Write a program that prints all real solutions to the quadratic equation ax2+bx+c=0. Read in a, b, c and use the quadratic formula.

b) Write a Program to display All Prime Numbers from 1 to N.

c) Write a Program for factorial of a number.

 

03 a) Write a program to search a given element in the array using linear and binary search techniques

b) Write a program to sort the elements in ascending and descending order using bubble sort

c) Write a program to find the largest and smallest element in an array.

 

04 Given two matrices A and B, write a program to:

a) Add the matrices

b) Multiply the matrices

c) Find the determinant of a matrix

 

05 Write a program to perform the following:

a) Reverse a string

b) Check for palindrome

c) Compare two strings

 

06 Create a Java class called Student with the following details as variables within it. USNName Branch and Phone Write a Java program to create n Student objects and print the USN, Name, Branch, and Phone of these objects with suitable headings.

07 Write a Java program to create a class known as “BankAccount” with methods called deposit() and withdraw(). Create a subclass called SBAccount that overrides the withdraw() method to prevent withdrawals if the account balance falls below one hundred.

08 Write a JAVA program demonstrating Method overloading and Constructor overloading

09 Design a super class called Staff with details as StaffId, Name, Phone, Salary. Extend this class by writing three subclasses namely Teaching (domain, publications), Technical (skills), and Contract (period). Write a Java program to read and display at least 3 staff objects of all three categories.

10 a) Write a JAVA program to read two integers a and b. Compute a/b and print, when b is not zero. Raise an exception when b is equal to zero. Also demonstrate working of ArrayIndexOutOfBound-Exception b) Write a Java program to create a method that takes an integer as a parameter and throws an exception if the number is odd

11 Write a Java program to create an abstract class BankAccount with abstract methods deposit() and withdraw(). Create subclasses: SavingsAccount and CurrentAccount that extend the BankAccount class and implement the respective methods to handle deposits and withdrawals for each account type.

12 Create two packages P1 and P2. In package P1, create class A, class B inherited from A, class C . In package P2, create class D inherited from class A in package P1 and class E. Demonstrate working of access modifiers (private, public, protected, default) in all these classes using JAVA

 

Course Outcomes

  • Use Eclipse/NetBeans IDE to design, develop, debug Java Projects.
  • Analyze the necessity for Object Oriented Programming paradigm over structured programming and become familiar with the fundamental concepts in OOP.
  • Demonstrate the ability to design and develop java programs, analyze, and interpret object-oriented data and document results.
  • Apply the concepts of multiprogramming, exception/event handling, abstraction to develop robust Programs.

 

Assessment Details (both CIE and SEE):

  • The weightage of Continuous Internal Evaluation (CIE) is 50% and for Semester End Exam (SEE) is 50%.
  • The minimum passing mark for the CIE is 40% of the maximum marks (20 marks).
  • A student shall be deemed to have satisfied the academic requirements and earned the credits allotted to each course.

The student has to secure not less than 35% (18 Marks out of 50) in the semester-end examination (SEE).

Continuous Internal Evaluation (CIE):

CIE marks for the practical course is 50 Marks.

The split-up of CIE marks for record/ journal and test are in the ratio 60:40.

  • Each experiment to be evaluated for conduction with observation sheet and record write-up.
  • Rubrics for the evaluation of the journal/write-up for hardware/software experiments designed bythe faculty who is handling the laboratory session and is made known to students at the beginning of the practical session.
  • Record should contain all the specified experiments in the syllabus and each experiment write-upwill be evaluated for 10 marks.
  • Total marks scored by the students are scaled downed to 30 marks (60% of maximum marks).
  • Weightage to be given for neatness and submission of record/write-up on time.
  • Department shall conduct 02 tests for 100 marks, the first test shall be conducted after the 8th week of the semester and the second test shall be conducted after the 14th week of the semester.
  • In each test, test write-up, conduction of experiment, acceptable result, and procedural knowledge will carry a weightage of 60% and the rest 40% for viva-voce.
  • The suitable rubrics can be designed to evaluate each student’s performance and learning ability. Rubrics suggested in Annexure-II of Regulation book.
  • The average of 02 tests is scaled down to 20 marks (40% of the maximum marks).

The Sum of scaled-down marks scored in the report write-up/journal and average marks of two tests is the total CIE marks scored by the student.

 

 

 

Semester End Evaluation (SEE):

SEE marks for the practical course is 50 Marks.

SEE shall be conducted jointly by the two examiners of the same institute, examiners are appointed by the University

  • All laboratory experiments are to be included for practical examination.
  • (Rubrics) Breakup of marks and the instructions printed on the cover page of the answer script to be strictly adhered to by the examiners. OR based on the course requirement evaluation rubrics shall be decided jointly by examiners.
  • Students can pick one question (experiment) from the questions lot prepared by the internal /external examiners jointly.
  • Evaluation of test write-up/ conduction procedure and result/viva will be conducted jointly by examiners
  • General rubrics suggested for SEE are mentioned here, writeup-20%, Conduction procedure andresult in -60%, Viva-voce 20% of maximum marks.
  • SEE for practical shall be evaluated for 100 marks and scored marks shall be scaled down to 50 marks (however, based on course type, rubrics shall be decided by the examiners).
  • Change of experiment is allowed only once and 15% Marks allotted to the procedure part to be made zero.
  • The duration of SEE is 03 hours Rubrics suggested in Annexure-II of Regulation book.

 

Suggested Learning Resources:

1. E. Balagurusamy, Programming with Java, Graw Hill, 6th Edition, 2019

2. Herbert Schildt, C: Java the Complete Reference, McGraw Hill, 11th Edition, 2020

Last Updated: Tuesday, January 24, 2023