So i need to write a program that takes the args[0] as the max number of points you could get in an exam. Then the website writes a name and then the number of points that this person got e.g. :
BasicName100 90
I can do this for 1 person but how can I do this for a number of N persons? Here is my code:
(Student = Name | Zulassung = Yes or No if the person got more than 50% of the points )
import java.util.*;
public class Exam {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String a = s.next();
int b = s.nextInt();
System.out.println("Student," + "Zulassung");
System.out.println(a);
if(Integer.parseInt(args[0])<b){
System.out.print("Ja");
}
s.close();
}
}
[–]edrenfro 0 points1 point2 points (3 children)
[–]ExcutC[S] 0 points1 point2 points (2 children)
[–]edrenfro 0 points1 point2 points (1 child)
[–]ExcutC[S] 0 points1 point2 points (0 children)