list of programs for practical exam

2
List of programs for practical exam 1.(a)Write a program to swap the contents of two variables i. with a temporary variable ii without a temporary variable (b)Calculate the gross salary given hra and d.a 2 (a).Write a program to convert Fahrenheit to Celsius. (b).Write a program to separate four digit number 3.Check if the given number is prime or not. 4.Display given month using switch. 5.Implement simple calculator to perform add, subtract, multiply and division. 6.Display Fibonacii of a number using recursion 7.Program to reverse a number and check whether it is palindrome or not. 8.Write a program to print the following pattern 9.Perform linear search. 10.Perform transpose of 3X3 matrix. 11.Program to multiply two matrices 12.Perform any five string operation. 13.Write a program to find and count the letter in a word. 14.Find factorial using recursion. 15.write a program to print Fibonacci series using recursion function 16.Program to add distances(in feet s) using structures. 17C program to add two complex numbers by passing structure to function

Upload: vigneshramakrishnan

Post on 12-Apr-2016

4 views

Category:

Documents


1 download

DESCRIPTION

Java programs

TRANSCRIPT

Page 1: List of Programs for Practical Exam

List of programs for practical exam

1.(a)Write a program to swap the contents of two variablesi. with a temporary variable

ii without a temporary variable (b)Calculate the gross salary given hra and d.a

2 (a).Write a program to convert Fahrenheit to Celsius. (b).Write a program to separate four digit number

3.Check if the given number is prime or not.

4.Display given month using switch.

5.Implement simple calculator to perform add, subtract, multiply and division. 6.Display Fibonacii of a number using recursion

7.Program to reverse a number and check whether it is palindrome or not.

8.Write a program to print the following pattern 9.Perform linear search.

10.Perform transpose of 3X3 matrix.

11.Program to multiply two matrices

12.Perform any five string operation. 13.Write a program to find and count the letter in a word.

14.Find factorial using recursion.

15.write a program to print Fibonacci series using recursion function

16.Program to add distances(in feet s) using structures. 17C program to add two complex numbers by passing structure to function

18.Program to swap three numbers using call by reference.

19.c program to write a sentence to a file

20.write a program to convert all characters from lower case to upper case.

21.write a program to read 20 numbers from user and then arrange them in ascending order

22.C Program to print the sum of all lower diagonal numbers.

23.program to find greatest and smallest element in given matrix.

Page 2: List of Programs for Practical Exam

24.program to read a string and count number of vowels in that string

25.write a program to generate prime numbers between 1 to 100.

26.write a program to insert an element in an appropriate position in an array