import java.util.Scanner;
class check_st {
public static void main(String[] args) {
Scanner f = new Scanner(System.in);
double x,y,d;
System.out.println("How many classes were held?: ");
x = f.nextInt();
System.out.println("Attendance in class: ");
y = f.nextInt();
d = (y/x)*100.0;
float k = (float) Math.round(d * 100) / 100;
System.out.println("The percentage of class attended: %"+k);
int m = (k<80.0) ? 0 : 1;
switch(m)
case 0:
System.out.println("Failed the course!");
break;
case 1:
System.out.println("Passed the course!");
break;
default:
;;
}
}