Java Lab Task - Questions Only
1. Write code to implement the following equation:
Fx =
x + 7 , if x < 10
x^2 + 3 , if x == 10
x^3 + 5 , if x > 10
2. Write Java code to calculate the average of even numbers less than 20.
3. Write Java code to enter the student grade, then print the following sentence using switch
statement:
A -> Excellent
B -> Very Good
C -> Good
D -> Passed
E -> Failed