Write a JAVA program to accept the number from the user and do the following -
Calculate Factorial of a given Number. - To check whether given number is prime or not.
Write a JAVA program to accept two 3*3 matrices from the user and display
iii. Sum of diagonal and non diagonal elements of first 3*3 matrix
(Design a menu for the above options)
Write a JAVA program to Create a class called NumTest that accepts an array of ten numbers
i. Display the sum of all numbers
ii. Average of numbers
iii. Max and Min of the numbers
iv.Total number of odd and even numbers
Write a JAVA program to create a class Employee with attributes empno, name, age, department Initialize values through parameterized constructor. If age of the employee is not in between 18 to 60 then generate user-defined exception "Age Not Within The Range".
Create a class MyDate with day, month and year as members. Write appropriate
member functions. Create another class Employee, which has id, name, date of birth, date
of joining and salary as members (use MyDate for date fields). Write appropriate
constructor for the Employee which assigns values to the members. Accept the details as
command line arguments and create a Employee object using the arguments. Display the
payslip details in a proper format.