DEV Community

Frank Palmeri
Frank Palmeri

Posted on

IST 402 - Final Project

For our final project, our group chose to build an application that sorts information and tests users based upon their knowledge on a given topic.

Image description

The standard template for the project is shown in the image above, where questions can be sorted using the arrows or by dragging the selection along the page.

The application was created using arrays to store the order of the list, with a shuffle function and check answer function available for the user to test themselves on the given information.

When the user choses to check their answers, incorrect choices are displayed in red, and the program lists a correct answer count and the ability to show the solutions. Our group felt that providing multiple forms of feedback for the user to engage with would be important features for a study app, these features are found throughout the program.

Image description

The correct order for each question was stored based on the order in which the user entered them, making for an easy way to access the information.

When viewed from a code standpoint, the order of the array is shown below:

Image description

If one were to view the code while a user was interacting with the program, they would be able to observe live updates to the order in which questions are displayed.

The order of questions was checked through the use of the method checkQuestions(), where a series of boolean expressions were ran to count and list the amount of correct answers.

Image description

After answers are checked, the user is given the ability to take another attempt.

Image description

Overall, the success of this project was largely due to the conceptualization that went into organizing and moving the date throughout the array.

GitHub Repo:

Top comments (0)