Hey guys this is my first time using this site. Im having trouble creating a grading scale that averages out grades. Whenever I enter the grades in from the console I get some odd answers that make no sense. Can someone give me some pointers in the right direction?
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Enter Final Exam average");
int Fexam = input.nextInt();
System.out.println("Enter Midterm average");
int Midterm = input.nextInt();
System.out.println("Enter Quiz average");
int Quiz = input.nextInt();
System.out.println("Enter Homework Average");
int HW = input.nextInt();
System.out.println("Class Average");
int CA = input.nextInt();
double Final = (Fexam / 100) * .80 ;
double M = (Midterm / 100) * .15 ;
double Q = (Quiz / 100) * .20 ;
double H = (HW / 100) * .20 ;
double C = (CA / 100) * .20;
double Finalgr =( (Final + M + Q + H + C)* 100);
System.out.println("your final average is: "+ Finalgr );
}
}