Answer:
import java.util.Scanner;
public class ANot {
public static void main(String[] args) {
System.out.println("Please Enter Your Student ID");
Scanner in = new Scanner(System.in);
int yourId = in.nextInt();
int chapterToRead = (yourId%3)+3;
System.out.println("You are to read chapter: "+chapterToRead);
}
}
Explanation:
This solution is implemented in Java programming language. The scanner class is used to receive user input which is saved in an int variable yourId. In order to obtain the remainder when the students' ID is divided by 3, we use the modulo (%) operator which returns the remainder