Texts: It is used to set up multiple-choice tests for 5 questions that, when submitted, are automatically corrected and the results logged beside the student's reference number. Without using HashMap and ListClasses:
1. Student: id, name, password, mobile, email, List of courses.
2. Admin: id, name, password, List of courses.
3. Course: id, name, mark.
4. Question: id, question number, question header, list of answers, correct answer, question mark.
5. Test: id, active, test question.
Features:
Users, courses, and tests should be saved in the ArrayList. There should be scope for fixing negative marks and maximum marks for each question.
Scenarios:
Login: The user enters their id and password. If the user matches a student, choose a course. You should show a list of their courses and prompt them to choose a course.
Start test: If the chosen course's test is active, then start and show the questions (question by question or as you like) and their answers. The student should enter their chosen answer number, and so on.
Finish test: When the questions are finished, close the test and show the test mark. If the user is an admin, choose a course. You will show the courses and allow them to choose a course.
Choose a function: The user will choose to show grades or add a question.
Show grades: If they choose to show grades, you will show a list of students enrolled in the course and their marks.
Add question: You should receive a new question for the course from the admin. Here is a slight modification: I want the course to have 3 tests, meaning the admin determines the questions in any test.