Question paper generator
The main task is to generate the algorithm for the question paper generator. I have made this application on Java.
Set-Up Guide-
- download the raw file.
- unzip it and run it on Intellij or esclipe
- java version sdk 20
- set the port no as your choice from application.properties
- Enter your Username and password and connect to DB
- Run the application.
Guide for testing the application -
-
After successfully connecting to the port
-
Go to Postman
-
make a get req call with URL localhost:8089/generate
-
This is the demo JSON format of data.
The main logic is here
I have used Collection. shuffle java library what it does is mainly shuffle the list randomly.
Here is the flow of the application
I have maintained the error handling as well if the percentage is not up to handle it should hit the try block