Answer to Question #267707 in Java | JSP | JSF for candy

Question #267707

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: 


1
Expert's answer
2021-11-17T12:01:08-0500
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 "); 
  }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS