MY IPAM GRADING SYSTEM PROGRAM

 import java.util.Scanner;

public class IPAMGradeCalculator {

    public static void main(String[] args) {

        Scanner Med = new Scanner(System.in);

        System.out.println("IPAM (USL) Grading System Calculator");

        System.out.print("Enter student's score (0-100): ");

        double score = Med.nextDouble();

if (score < 0 || score > 100) {

            System.out.println("Invalid score! Please enter between 0-100.");

        }

else {

            if (score >= 80) {

                System.out.println("A (Excellent)");

            }

            else if (score >= 70) {

                System.out.println("B+ (Very Good)");

            }

            else if (score >= 60) {

                System.out.println("B (Good)");

            }

            else if (score >= 50) {

                System.out.println("C (Satisfactory)");

            }

            else if (score >= 40) {

                System.out.println("D (Pass)");

            }

            else {

                System.out.println("F (Fail)");

            }

        }

    }

}

Comments

Popular posts from this blog

TILE ESTIMATOR

DISCOUNT CALCULATOR (OOP)