Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.5 kB
7
Indexable
Never
import java.util.Scanner;

public class Ciano_Removal1 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in=new Scanner (System.in);
		
		double firstexam, secondexam, thirdexam, fourthexam, result;
		double pointgrade1=1.0, pointgrade2=2.0, pointgrade3=3.0, pointgrade4=5.0;
		
		System.out.print("Enter your 1st Exam Score: ");
		firstexam=in.nextDouble();
		System.out.print("Enter your 2nd Exam Score: ");
		secondexam=in.nextDouble();
		System.out.print("Enter your 3rd Exam Score: ");
		thirdexam=in.nextDouble();
		System.out.print("Enter your 4th Exam Score: ");
		fourthexam=in.nextDouble();
		
		result=(firstexam+secondexam+thirdexam+fourthexam)/4;
		System.out.println("Your General Avg. Score is: "+"=============>"+result);
		
		if (result>=90) {
			System.out.println("This grade is equivalent to: "+pointgrade1);
		System.out.println("Maintain this grade to be part of the Dean's List");
		}
		else if (result>=80) {
			System.out.println("This grade is equivalent to: "+pointgrade2);
			System.out.println("Work more to be part of the Dean's List");
		}
		else if (result>=75) {
			System.out.println("This grade is equivalent to: "+pointgrade3);
			System.out.println("Oh! This is just a passing score");
		}
		else if (result<75) {
			System.out.println("This grade is equivalent to: "+pointgrade4);
			System.out.println("You need to re-enroll or ponder if this is really the course for you!");
			}

	}

}