class Targil1 {
public static void main(string[] args) {
int score1, score2, score3, avg1, avg2, avg3;
System.out.println("enter 3 scores");
score1 = reader.nextInt();
score2 = reader.nextInt();
score3 = reader.nextInt();
avg1 = (score1 + score2) / 2;
avg2 = (score1 + score3)/2;
avg3 = (score2 + score3) / 2;
if (score1 > score3 && score2 > score3) {
if (score3 > 60) ;
avg1 += 5;
System.out.println(avg1 + "average");
}
if (score3 > score2 && score1 > score2) {
if (score1 > 60) ;
avg2 += 5;
System.out.println(avg2 + "average");
}
if (score2 > score1 && score3 > score1) {
if (score1 > 60) ;
avg3 += 5;
System.out.println(avg3 + "average");
}
}
}
in the "string args" part it says "cannot find symbol -class string"
in the java import one it says "cannt find symbol -class scanner"
in the 3 score x= it says cannot find variable reader and in
avg2 it says cannot find variable score1
This is a simple question from a teacher, the question is: A teacher decided to calculate the average of her students only from their 2 highest scores, and if the 3rd one (the lowest) is above 60 they also get a +5 to what their 2 higher scores is
for some reason the site doesnt understand some of the stuff and I dont know what to do about it