java code
java code
:8888809416
1|Page www.jbktest.com
www.thekiranacademy.com JBKCORE9006-scanner-class-logical No.:8888809416
2|Page www.jbktest.com
www.thekiranacademy.com JBKCORE9006-scanner-class-logical No.:8888809416
import java.util.Scanner;
import java.util.Scanner;
3|Page www.jbktest.com
www.thekiranacademy.com JBKCORE9006-scanner-class-logical No.:8888809416
import java.util.Scanner;
}
}
4|Page www.jbktest.com
www.thekiranacademy.com JBKCORE9006-scanner-class-logical No.:8888809416
import java.util.Scanner;
Homework
1. Write a program to calculate cube of a number by scanner class
2. Write a program to calculate simple interest
3. Write a program to calculate compound interest
4. The marks obtained by a student in 5 different subjects are input
through the keyboard. The student gets a division as per the following
rules:
a. Percentage above or equal to 60 - First division
b. Percentage between 50 and 59 - Second division
c. Percentage between 40 and 49 - Third division
d. Percentage less than 40 - Fail
e. Write a program to calculate the division obtained by the
student.
Download
https://drive.google.com/drive/folders/1pzCRBpGvAOhke lu8sKZL2chY
KkVzWd?usp=sharing
5|Page www.jbktest.com