Ist der Quellcode so richtig? Bin nicht wirklich gut in Java, bitte verurteilt mich nicht :toll:
Mag auch sein das alles falsch ist. Hoffe aber mal nicht.
Könnt ihr mir helfen :bahnhof:
Mag auch sein das alles falsch ist. Hoffe aber mal nicht.
Könnt ihr mir helfen :bahnhof:
Java:
class Notendurchschnitt {
public static void main (String[] args) {
double Note1;
double Note2;
double Note3;
double Note4;
double Note5;
durchschnitt = Note1 + Note2 + Note3 + Note4 + Note5 /5;
Note1 = Double.parseDouble(args[0]);
Note2 = Double.parseDouble(args[1]);
Note3 = Double.parseDouble(args[2]);
Note4 = Double.parseDouble(args[3]);
Note5 = Double.parseDouble(args[4]);
System.out.println("Der Durchschnitt deiner Noten beträgt" + durchschnitt +);
}
}