Research Area

Ashutosh Dubey

Saturday, April 17, 2010

Java Assignment

1. In a company 10% of the salary is deducted for income tax and 8% for provident fund if the salary is greater than 6000 but if the salary is less than or equal to 6000 then 8% is deducted for income tax and 5% is deducted for provident fund. Write a program to accept the basic salary from the user and calculate the net salary.



2. Write a program to accept marks in three subjects from the user, calculate the percentage and print the grade accordingly.


3. WAP to check whether the number is even or odd.


4. WAP to accept two numbers from the user and check that the first no is divisible by the second number.


5. WAP to accept three numbers and print the maximum value.


6. WAP to check the type of character entered from the keyboard.


7. WAP to simulate the calculator to perform the following operation on two numbers.


8. WAP to find the area of a circle, area of rectangle and area of triangle according to the user choice by switch statement.


9. WAP to check whether the year is leap year or not.


10. WAP to enter base and index value and calculate the power of two no.


11. WAP to print the average of three no given by user till user wants.


12. WAP to accep a series of positive numbers terminated by 0 and then print the smallest and the largest no in sequence.
13. WAP to generate all prime from 1 to 300.


14. WAP to generate FLOYD’s triangle up to 5 rows.


15. WAP to check whether the number is prime or not.



1 comment:

Ashutosh Dubey said...

Thank you for your comment.You can visit my blog i update my blog regularly.I hope the content of the blog is useful for you.