2.
In the main , ask the user for the inputs: student ID, student name, password, study mode, the name of programme the student has registered, the current level of the programme, number of modules they have enrolled in the current term, the module codes and names, attendance of each module and exam mark of each module for each student profile.
Display message to ask user inputs
use of Scanner for all inputs:
public class sol {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
System.out.prinln("enter your id");
long id = s.nextLong();
System.out.prinln("enter your name");
String name = s.next();
System.out.prinln("enter your password");
String password = s.next();
System.out.prinln("enter your study mode");
String mode = s.next();
System.out.prinln("enter your level");
int level = s.nextInt();
System.out.prinln("enter the number of modules");
int modules = s.nextInt();
System.out.prinln("enter your module code and name");
String module = s.next();
System.out.prinln("enter your ");
}
}
Comments
Leave a comment