Page 1 :
Object Oriented Programming Assignments, Write a program using object oriented approach to find the factorial of any given number., Write a program using object oriented approach to find out the Fibonacci series of n terms., Write a program to find out the sum of the following series, 1/1!+2/2!+3/3!+4/4!+----------+n/n! . Use argumental constructor in your program., Define a class BOOK with the following specifications :, Private members of the class BOOK are, BOOK NO integer type, BOOKTITLE 20 characters, PRICE float (price per copy), TOTAL_COST() A method to calculate the total cost for N number of copies where N is passed to the method as argument. , Public members of the class BOOK are, INPUT () method to read BOOK_NO. BOOKTITLE, PRICE, PURCHASE () method to ask the user to input the number of copies to be purchased. It invokes TOTAL_COST () and prints the total cost to be paid by the user., Write a program using methods in Java to find out the sum of the digits of any number and check whether the number is a Palindrome or not., Create a class Rectangle with the data fields’ width, length, area. The length,width and area are of double type., The methods are get_width (), get_length (), find_area ().Create two objects of Rectangle and compare their area. If the area are the same for both the objects then display “Matching Rectangles”, otherwise display “Non matching Rectangle”., Create a class called MIN and write a method called min ().Now write a main () method to find out the 2nd minimum element in an 1D array., Create a Class called SORT and write a main () method to sort an array of integer in ascending order., Create a class called Employee. Emp_Id, Emp_Name, Emp_Salary, Emp_phone are data members. Employee class is having methods salary () to calculate the salary by summing up BASIC, DA and HRA.DA is calculated by applying 10% on the BASIC salary. Now write a main () method and create an array of objects of Employee class to display the information of at least 3 Employees., Write a class that represents a person’s mailing address. It should have separate fields for the name, street address, city, state and ZIP code.Write an application Address Book, to incorporate address book application (use Array of objects)., Write a program to calculate the area of circle, rectangle and triangle using method overloading., Create a class Account with two overloaded constructors. First constructor is used for initializing, name of account holder, account number and initial amount in account. Second constructor is used for initializing name of account holder, account number, addresses, type of account and current balance. Account class is having methods Deposit (), Withdraw (), and Get_Balance ().Make necessary assumption for data members and return types of the methods. Create objects of Account class and use them., Write a program using constructor overloading for Stack operations(push and pop, Operations)., Write a program for calculating the marks secured by a student. A Parent class with student identification is created and another class called marks is inherited from the main class. This class marks is further inherited by another class called sports and finally the sports class is inherited by the percentage class to calculate the percentage of marks., Write a class Worker and derive classes DailyWorker and SalariedWorker from it. Every worker is has a name and a salary rate. Write method ComPay ( int hours) to compute the week pay of every worker. A DailyWorker is paid on the basis of number of days s/he work. The SalariedWorker gets paid the wage for 40 hours a week no matter what actual hours is. Test this program to calculate the pay of workers. You are expected to use concept of polymorphism to write this program., Create an abstract class employee, having its properties & abstract function for calculating net salary and displaying the information. Drive manager & clerk class from this abstract class & implement the abstract method net salary and override the display method., Write a Java program to create a package for Book details giving Book name, Author name, price and year of publishing. Create the class of your package., In the main program import the created package into the program and create instances of the class in the package., Write a class called String and input any string and write a main() method to, find out reverse of that string., Write a program using try-catch statement to evaluate Arithmetic, Exception, ArrayIndexOutofBoundsException, NumberFormatException., Write a program to create two threads, one prints “HELLO” and other prints “HI”., Write a program to create an Applet having three buttons red, green, and blue. On clicking on red button the background color should be changed to red, on clicking in blue button the color should be changed to blue and so on.