Wa0001.
Wa0001.
Evaluation
Program 1 Write up 05
Execution 10
Program 2 Write up 05
Execution 10
Record and 20
conduction
Total 50
Part-A
2 Write a java program to create two separate arrays of integers. Elements of both
the arrays shall be read from keyboard input. Program should display “Arrays are
symmetrical” if both the arrays contain equal numbers of even and odd numbers.
3 Create a Java class called Student with the following details as private instance
variables
within it. USN
Name
Branch
Phone
Write a Java program to create n number Student objects and print the USN, Name,
Branch, and Phone of these objects with suitable headings.
4 Design a super class called Staff with details as StaffId, Name, Phone, Salary. Extend
this class by writing three subclasses namely Teaching (domain, publications), Tech-
nical (skills), and Contract (period). Write a Java program to read and display at least
3 staff objects of all three categories.
6 Write a program to generate the resume. Create 2 Java classes Teacher (data: personal
information, qualification, experience, achievements) and Student (data: personal in-
formation, result, discipline) which implements the java interface Resume with the
method biodata().
7 Write a Java program to read n number of integers into an array. Raise an appropriate
exception
(ArithmeticException,InputMismatchException,ArrayOutOfBoundsExcception)whil
e performing following operations;a) Dividing each element by the smallest element
in an array. b) reading elements from the keyboard c) accessing the element from the
index specified by the keyboard entry.Concept of exception handling using multiple
catch blocks to be used in this scenario.
8 Write a program to count the number of capital letters, display the position of each
capital letter , no; of digits and no: of occurrences of each vowel in a user entered
string via keyboard.
9 Write a program that will count the number of characters, words, and lines in a file.
Words are separated by a white-space character. Your program should prompt the
user to enter a filename.
PART -B
10 Write a Java program that implements a multithreaded application that has
three threads. First thread generates a random integer for every 1 second; second
thread computes the square of the number and prints; third thread will print the value
the cube of the number.
12 Write a java program that reads a file name from the user, displays information about
it to demonstrate following methods of class File.
canRead()
canWrite()
exists()
isFile()
length()
isDirectory()
list()
15 Write a Swing program to create a frame window and three text fields to input three
floating point numbers from the user and display sum, average and largest of these
three numbers in a dialog box.
16 Create a Swing that has a ComboBox to select the city, Text box to enter the name,
phone number. Radio button to choose the gender and check box to choose hobbies.
Create an alert to display the selections made by the user.