INDEX
PART A
Serial
                                   List of Programs                                   Page No.
 No.
          Program to accept student name and marks in three subjects. Find the
  1.     total marks, average and grade (depending on the average marks).
          Program, which reads two numbers having same number of digits. The
         program outputs the sum of product of corresponding digits.(Hint Input
  2.
         327 and 539 output 3x5+2x3+7x9=84)
          Program to input Start and End limits and print all Fibonacci numbers
  3.     between the ranges.( Use for loop)
          Define a class named Pay with data members String name, double
         salary, double da, double hra, double pf, double grossSal, double
         netSal and methods: Pay(String n, double s) - Parameterized
         constructor to initialize the data members, void calculate() - to
         calculate the following salary components, and void display() - to
         display the employee name, salary and all salary components.
  4.     Dearness Allowance = 15% of salary
         House Rent Allowance = 10% of salary
         Provident Fund = 12% of salary
         Gross Salary = Salary + Dearness Allowance + House Rent Allowance
         Net Salary = Gross Salary - Provident Fund
         Write a main method to create object of the class and call the
         methods to compute and display the salary details.
         Program to create a class DISTANCE with the data members feet and
         inches. Use a constructor to read the data and a member function Sum (
  5.     ) to add two distances by using objects as method arguments and show
         the result. (Input and output of inches should be less than 12.)
          Program to create a class “Matrix” that would contain integer values
  6.     having varied numbers of columns for each row. Print row-wise sum.
         Program to extract portion of character string and print extracted string.
         Assume that ‘n’ characters extracted starting from mth character
  7.
         position.
  8.     Program to add, remove and display elements of a Vector
                                     PART B
     Create a class named 'Member' having data members: Name, Age,
     PhoneNumber, Place and Salary. It also has a method named
     'printSalary' which prints the salary of the members. Two classes
     'Employee' and 'Manager' inherit the 'Member' class. The 'Employee'
1.   and 'Manager' classes have data members 'specialization' and
     'department' respectively. Now, assign name, age, phone number,
     address and salary to an employee and a manager by making an object
     of both of these classes and print the same.
      Program to implement the following class hierarchy:
      Student: id, name StudentExam (derived from Student): Marks of
     3subjects, total marks StudentResult (derived from StudentExam) :
2.   percentage, grade
     Define appropriate methods to accept and calculate grade based on
     existing criteria and display details of N students
     Program to calculate marks of a student using multiple inheritance
     implemented through interface. Class Student with data members
     rollNo, name, String cls and methods to set and put data. Create
     another class test extended by class Student with data members mark1,
3.   mark2, mark3 and methods to set and put data. Create interface sports
     with members sportsWt = 5 and putWt(). Now let the
     class results extends class test and implements interface sports. Write a
     Java program to read required data and display details in a neat format.
     Program to create an abstract class named shape that contains two
     integers and an empty method named print Area(). Provide three
4.   classes named Rectangle, Triangle and Ellipse such that each one of
     the classes extends the class shape. Each one of the class contains only
     the method print Area() that print the area of the given shape.
     Create a package to convert temperature in centigrade into Fahrenheit,
     and one more package to calculate the simple Interest. Implement both
5.   package in the Main () by accepting the required inputs for each
     application.
     Program that implements a multi-threaded program has three threads.
     First thread generates a random integer every second, and if the value
     is even, second thread computes the square of the number and prints. If
6.
     the value is odd the third thread will print the value of cube of the
     number.
      Program that creates a user interface to perform basic integer
7.   operations. The user enters two numbers in the TextFields - Num1 and
     Num2. The result of operations must be displayed in the Result
     TextField when the “=” button is clicked. Appropriate Exception
     handling message to be displayed in the Result TextFieldwhen Num1
     or Num2 is not an integer or Num2 is Zero when division operation is
     applied.
      Using the swing components, design the frame for shopping a book
     that accepts book code, book name, and Price. Calculate the discount
     on code as follows.
     Code Discount rate
     101 15%
8.
     102 20%
     103 25%
     Any other 5%
     Find the discount amount and Net bill amount. Display the bill.