Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void addNewStudent()
- {
- Scanner scanner = new Scanner(System.in);
- System.out.println("Please enter the correct details below");
- System.out.println("ID: ");
- int userId = scanner.nextInt();
- menu UserIdObj = new menu();
- System.out.println("First name: ");
- String userFirst = scanner.next();
- menu userFirstObj = new menu();
- System.out.println("Last name: ");
- String userLast = scanner.next();
- menu userLastObj = new menu();
- System.out.println("English assignment 1 mark: ");
- int english1 = scanner.nextInt();
- menu english1Obj = new menu();
- System.out.println("English assignment 2 mark: ");
- int english2 = scanner.nextInt();
- menu english2Obj = new menu();
- System.out.println("English assignment 3 mark: ");
- int english3 = scanner.nextInt();
- menu english3Obj = new menu();
- System.out.println("Math assignment 1 mark: ");
- int math1 = scanner.nextInt();
- menu math1Obj = new menu();
- System.out.println("Math assignment 2 mark: ");
- int math2 = scanner.nextInt();
- menu math2Obj = new menu();
- System.out.println("Math assignment 3 mark: ");
- int math3 = scanner.nextInt();
- menu math3Obj = new menu();
- // Asks the user for the student information (ID, First, Last, Assignments)
- // Then creates the appropriate objects and adds the students to the student list
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement