
Enter your name: Smith
Enter the basic salary: 45000
Emp Name : Smitha
——————————-
Basic Sal : 45000
PF : 6750
DA : 18000
——————————-
Net Sal : 56250
10.WAP program to create Mini Calculator.
11.WAP program for Fibonacci Series.
12.Write a Java program to convert a decimal number to octal number.
13.Write a Java program to convert a binary number to hexadecimal number.
14.WAP program to transpose a Matrix.
15.WAP program to add Two Matrices.
16.Write a Java program to sum values of an array.
17.Write a Java program to sort (ascending and descending) a numeric array.
18.Write a Java program to find the largest element in an array.
19.Write a program to convert given no. of days into months and days.(Assume that each month is of 30 days)
20.Write a program to find whether given no. is Armstrong or not.
21.Write a program to create a class Employee. Accept the employee information such as empid, name and designation using methods. Display the accepted information using methods.
22.Write a program to accept student information such as roll number, name and marks in physics, chemistry and maths using class. And to display that information along with the result as ‘ You are eligible’ if marks in all subjects > 60 otherwise display ‘You are not eligible’.
23.Write a program to appoint a driver by checking following conditions:
iii) If the person is female then her age should be between 30 to 50
24.Write a program to design a class Addition for adding two numbers. Use the concept of constructor. (default and parameterized constructor)