Hallo Leute, ich bin noch ein Anfänger im Programmieren.
Nun habe ich folgenden Code und weiß einfach nicht warum das nicht funktioniert.
"Type "Input" was not found" kommt als Fehlermeldung.
Ich würde mich über eine Antwort sehr freuen!!
Liebe Grüße
Nun habe ich folgenden Code und weiß einfach nicht warum das nicht funktioniert.
"Type "Input" was not found" kommt als Fehlermeldung.
Ich würde mich über eine Antwort sehr freuen!!
Liebe Grüße
Code:
public class Notenfeld {
public static void main(String[]s) {
int anzahl;
double summe=0;
Input in=new Input();
//Eingabe Anzahl der Noten:
System.out.print("Anzahl Noten:") ;
anzahl=in.readInt();
//Eingabe der Noten:
double[] notenfeld=new double[anzahl];
for (int i=0; i<anzahl; i++) {
System.out.print((i+1)+ ".Note:");
notenfeld[i] =in.readDouble();
summe +=notenfeld[i];
}
//Ausgaben:
System.out.println("Durchschnitt: "+summe/anzahl+"\n");
System.out.println("Kontrollausgabe:");
for (int i=0; i<notenfeld.length; i++)
System.out.println(notenfeld[i]);
}
}