Professional Documents
Culture Documents
Lab Practical Assessment
Lab Practical Assessment
1. Write a Java Program to prompt user to Enter 2 numbers and calculate their difference
2. Write a program to take four integer values as input and print the average.
2. Make a program which reads three integers and display the largest
3. Write a program the read an integer number and display its absolute value
4. Write a program using array to read the ten integer numbers and find the Counts for number of
positive and negative numbers.
5. Consider the weekly salary of a girl who is selling the domestic products , if the number of
product sold in a week , her salary is given by
3x+100 if X<40
300 if X=40
4.5X+150 if X>40
Write a program to find her salary
6. Write a program to reverse the given integer number.
(E.g. input: 2356, the reverse is 6532)
7. Make a program to get the following output:
(A)
1
12
123
1234
12345
123456
(B)
1
22
333
4444
55555
666666
1
Grade
[9,10[
ELITE
[8,
GRAND DISTINCTION
[7,
DISTINCTION
[5,6
SATISFACTION
[3,4
PASSABLE
ELSE
FAIL