0% found this document useful (0 votes)
4 views

Contents

Uploaded by

raman7913523
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

Contents

Uploaded by

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

Contents

Lab 1 :
1. WAP to print “I am proud to be a student of Nagarjuna College”.

2. WAP to take your name using Scanner and Print your name.

3. WAP to take two Integers from user and print the sum between two number.

4. WAP to change fahrenheit to celsius.


Lab 2 :
5. WAP to find the maximum from 3 numbers.

6. WAP to check whether the given number is Even or Odd.

7. WAP to check if given number is Prime or Not.

8. WAP to check whether the given input is armstrong number.

Lab 3 :
9. WAP to check whether the given input is Palindrome or not.

10. WAP to find the even number from given array.

11. WAP to print the count of odd number present in a given array.

12. WAP to check if there any prime number present or not in a given array.

13. WAP to print “I am proud to be a student of Nagarjuna College” 10 times.

Lab 4 :
14. WAP to print the factorial of a user input number.

15. WAP to print the fibonacci series : 0,1,1,2,3,5,8,13 upto n term.

16. WAP to find the sum and average of 5 elements in an array.

17. WAP to input marks of 5 subject and display result as per below :

a. > 90 “A”

b. > 80 “B”

c. > 60 “C”

d. > 40 “D”

e. Fail
Lab 5 :
18. WAP to print the sum n number.

19. WAP to find the positive differences of 2 numbers.

20. WAP to find the middle of 3 number.

Lab 6 :
21. WAP to print the multiplication of two number using two classes i.e. Class A main
class and Class B where we write multiplication function. Then call
Multiplication function from Class B to Class A using Object Reference.

22. WAP to the area and circumference of Circle using Inheritance Concept.

Lab 7 :
23. WAP to create a Class Employee with id,name and salary. Save id,name,salary
and display in console.

24. Write two function with same name with different number of arguments.

Lab 8 :
25. WAP to throw a user defined exception “String Mismatch” if two strings are not
equal.

26. WAP to throw Arithmetic Exception.

Lab 9 :
27. WAP to find the square root of 144.

28. WAP to find the square of 14.

29. WAP to find the volume of Cylinder using Math class.

30. WAP to find the quadratic equation from given input.

Lab 10 :
31. WAP to create list with String generic type and add some fruits name in It and
print the value from list in console.

32. WAP to create list with Integer generic type and put some numbers in It and
print the sorted list in console.

33. WAP to create list with Integer generic type and add some numbers in It and
print the sum of all elements in list in console.

You might also like