Answered step by step
Verified Expert Solution
Question
1 Approved Answer
There is an answer to this question, but I want a different solution, so please do not copy and paste from other answers.This project aims
There is an answer to this question, but I want a different solution, so please do not copy and paste from other answers.This project aims to generate several randomly ordered booklet and their answer sheet from a single input exam sample
file. The program receives an input text file with a restricted formatCheck the sample input file, sample.txt containing tens
of multiplechoice questionsassume questions and the correct answer to each question. then the user determines how
many booklets assume with how many questionsassume should be generated. As the output files, the program
generates files for each booklet, one for the questions and one for the answer sheeta total of files in the booklets,
the order of the questions should be random, and the options should be randomly changed. So you should select randomly
questions out of and change the order of their options. Of course, a question should not be in a booklet more than one
time.
Hints: Create a Question structure containing the following features:
Question number int
Question body string
option A string
option B string
option C string
option D string
Answer char
Then create another structure for storing all questions in it name it QuestionBank.
Read the questions from the file convert them into the Question structure and store them in the QestionBank
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started