Question
Writing a quiz-maker and quiz test in JAVA (pseudo-code below) I have functional code for all the parts except those in bold! Please help--due date
Writing a quiz-maker and quiz test in JAVA (pseudo-code below)
I have functional code for all the parts except those in bold! Please help--due date soon approaching.
TASK
You are asked to create a program that will be used to create quizzes and test users based on these quizzes.
- Prompt a secret word and proceed if it matches a secret code.
- Your program should have two modules: quiz creation mode and test mode. User will be prompted in the beginning to choose from these two modes. For example:
Welcome to the quiz master: please enter 1 if you want to manage questions, 2 if you want to take a quiz, 3 if you want to exit
If wrong number/option entered show the message and ask again.
- If user chose to enter quiz creation module
- Application then asks user 1) to add new question, 2) to delete existing question, 3) to list all available questions 4) to go to the main module selection menu.
We do not need to have edit capability, this can be done by deleting and adding it back.
-
- If user wants to add a new question.
- Prompt the following information
- Question Code. This should be a non-empty unique value across all existing questions.
- Question text.
- Number of possible answers
- Loop as many times as there should be answers and prompt to enter answer text
- Correct answer
- Save this data to the list of objects.
- Once a new question entered show the manage questions menu
- Prompt the following information
- If user wants to delete a question, prompt the user to enter Question Code.
- If question with the code exists, then delete it, show the message that question is deleted and show manage questions menu
- If question with the code not exists then show the message that code is incorrect
- If user wants to list all questions then
- Print to the screen the list of questions, answers and the correct answer
- show manage questions menu
- If user wants to add a new question.
- If user choses to enter quiz taking module
- Show total number of questions available
- Prompt to enter test taker information
- First Name
- Last Name
- Number of questions
- If number of questions less than total number of questions then ask to enter this information again
- Start quiz
- Randomly choose questions as many as user selected
- Iterate though these questions
- Ask question
- Show possible answers
- Prompt to enter the correct answer
- If answer is not available ask to choose from available options
- Once all questions answered provide report
- Total number of questions answered
- Correct answers
- Incorrect answers
- % of correct answers
- Grade: A -90% up, B 80% up, C- 70% up, or F
- Show main menu
- You need to encapsulate/hide the logic responsible of displaying menu, validation of menu options, as well as user selection of menu into a separate class called MenuHandler
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