Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
4 views

Java Cycle

Uploaded by

Pranav Santhosh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Java Cycle

Uploaded by

Pranav Santhosh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Define a class ‘product’ with data members pcode, pname and price.

Create 3 objects of the


1 class and find the product having the lowest price.
2 Read 2 matrices from the console and perform matrix addition.
3 Add complex numbers
4 Read a matrix from the console and check whether it is symmetric or not.
Create CPU with attribute price. Create inner class Processor (no. of cores, manufacturer) and static
5 nested class RAM (memory, manufacturer). Create an object of CPU and print information of
Processor and RAM.
6 Program to Sort strings
7 Search an element in an array.
8 Search a word in an array
9 Perform string manipulations
Program to create a class for Employee having attributes eNo, eName eSalary. Read n employ
10 information and Search for an employee given eNo, using the concept of Array of Objects.
11 Area of different shapes using overloaded functions
Create a class ‘Employee’ with data members Empid, Name, Salary, Address and constructors to
initialize the data members. Create another class ‘Teacher’ that inherit the properties of class
12 employee and contain its own data members department, Subjects taught and constructors to
initialize these data members and also include display function to display all the data members.
Use array of objects to display details of N teachers.
Create a class ‘Person’ with data members Name, Gender, Address, Age and a constructor to
initialize the data members and another class ‘Employee’ that inherits the properties of class
13 Person and also contains its own data members like Empid, Company_name, Qualification, Salary
and its own constructor. Create another class ‘Teacher’ that inherits the properties of class
Employee and contains its own data members like Subject, Department, Teacherid and also
contain constructors and methods to display the data members. Use array of objects to display
details of N teachers.
Write a program has class Publisher, Book, Literature and Fiction. Read the information and print
14 the details of books from either the category, using inheritance.
Create classes Student and Sports. Create another class Result inherited from Student and Sports.
15 Display the academic and sports score of a student.
Create an interface having prototypes of functions area() and perimeter(). Create two classes Circle
16 and Rectangle which implements the above interface. Create a menu driven program to find area
and perimeter of objects.
Prepare bill with the given format using calculate method from interface. Order No. Date : Product
17 Id Name Quantity unit price Total 101 A 2 25 50 102 B 1 100 100 Net. Amount 150
Create a Graphics package that has classes and interfaces for figures Rectangle, Triangle, Square
18 and Circle. Test the package by finding the area of these figures
Create an Arithmetic package that has classes and interfaces for the 4 basic arithmetic operations.
19 Test the package by implementing all operations on two given numbers
20 Write a user defined exception class to authenticate the user name and password
21 Find the average of N positive integers, raising a user defined exception for each negative input.
22 Program to list the sub directories and files in a given directory
23 Write a program to write to a file, then read from the file and display the contents on the console.
24 Write a program to copy one file to another.
25 Write a program that reads from a file having integers. Copy even numbers and odd numbers to
separate files.
26 Program to draw Circle, Rectangle, Line in Applet
27 Write an applet program to draw a smiling face
28 Write an applet program to draw a sad face
29 Program to find maximum of three numbers using AWT
30 Implement a simple calculator using AWT components.

You might also like