lundi 14 décembre 2020

Transmutation Table for Student

import java.util.Scanner;
public class wow{

public static void main(String [] args){
Scanner con = new Scanner(System.in);
System.out.print("Quizzes/Assignments: ");
double quizzes = con.nextDouble();
System.out.print("Laboratory Exercises: ");
double lab = con.nextDouble();
System.out.print("Exams: ");
double exams = con.nextDouble();
System.out.print("Term Project: ");
double term = con.nextDouble();
System.out.print("Case Study: ");
double study = con.nextDouble();


double average = (quizzes + lab + exams  + term + study) / 5;
System.out.print("Class Standing " + average);

if(average <=92){
System.out.print("1.0");
}
if(average <=88){
}  System.out.print("1.25");
}
 }

Basically im stuck after getting the average i cannot determine the final grade because if i set greater than 92 i cannot limit it to 100 or when i set it greater than 88 i cannot limit it to 91.

Aucun commentaire:

Enregistrer un commentaire