9
unknown
java
9 months ago
943 B
3
Indexable
import java.util.Scanner; public class TaskNine { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int credits = sc.nextInt(); double cgpa = sc.nextDouble(); if (credits >= 30) { if (cgpa >= 3.80 && cgpa <= 3.89) { System.out.println("25 percent"); } else if (cgpa >= 3.90 && cgpa <= 3.94) { System.out.println("50 percent"); } else if (cgpa >= 3.95 && cgpa <= 3.99) { System.out.println("75 percent"); } else if (cgpa == 4.00) { System.out.println("100 percent"); } else { System.out.println("The student is not eligible for a waiver"); } } else { System.out.println("The student is not eligible for a waiver"); } } }
Editor is loading...
Leave a Comment