System.out.println ("Please enter your quiz grade: ");
sQuiz = br.readLine();
dQuiz = Double.parseDouble(sQuiz);
System.out.println ("Please enter your grade in seatwork: ");
sSeatwork = br.readLine();
dSeatwork = Double.parseDouble(sSeatwork);
System.out.println ("Please enter your grade in Laboratory Exercises: ");
sLab = br.readLine();
dLab = Double.parseDouble(sLab);
System.out.println ("Please enter your grade in assignment: ");
sAssign = br.readLine();
dAssign = Double.parseDouble(sAssign);
System.out.println ("Please enter your grade in Prelim exam: ");
sPrelimExam = br.readLine();
dPrelimExam = Double.parseDouble(sPrelimExam);
dPrelimGrade = dQuiz*.25 + dSeatwork*.10 + dLab*.20 + dAssign*.05 + dPrelimExam*.40;
System.out.println ("Your grade is: " + dPrelimGrade );
the error said 'incompatibe types'
2006-11-28
14:10:29
·
3 answers
·
asked by
bonjing
2
in
Computers & Internet
➔ Programming & Design