Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are asked to create a program in Java that will be used to create quizzes and test users based on these quizzes. Prompt a

You are asked to create a program in Java that will be used to create quizzes and test users based on these quizzes.

  1. Prompt a secret word and proceed if it matches a secret code.
  2. 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.

  1. If user chose to enter quiz creation module
    1. 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.

    1. If user wants to add a new question.
      1. Prompt the following information
        1. Question Code. This should be a non-empty unique value across all existing questions.
        2. Question text.
        3. Number of possible answers
          1. Loop as many times as there should be answers and prompt to enter answer text
        4. Correct answer
      2. IN PHASE 2 SAVE THIS data to the list of objects.
      3. Once a new question entered show the manage questions menu
    2. If user wants to delete a question, prompt the user to enter Question Code.
      1. If question with the code exists, then delete it, show the message that question is deleted and show manage questions menu
      2. If question with the code not exists then show the message that code is incorrect
    3. If user wants to list all questions then
      1. Print to the screen the list of questions, answers and the correct answer
      2. show manage questions menu
  1. If user choses to enter quiz taking module
    1. Show total number of questions available
    2. Prompt to enter test taker information
      1. First Name
      2. Last Name
      3. Number of questions
        1. If number of questions less than total number of questions then ask to enter this information again
    3. Start quiz
      1. Randomly choose questions as many as user selected
      2. Iterate though these questions
        1. Ask question
        2. Show possible answers
        3. Prompt to enter the correct answer
          1. If answer is not available ask to choose from available options
      3. Once all questions answered provide report
        1. Total number of questions answered
        2. Correct answers
        3. Incorrect answers
        4. % of correct answers
        5. Grade: A -90% up, B 80% up, C- 70% up, or F
    4. Show main menu
  2. 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

*I have already created the quiz master, need help with the rest.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management System MCQs Multiple Choice Questions And Answers

Authors: Arshad Iqbal

1st Edition

1073328554, 978-1073328550

More Books

Students also viewed these Databases questions

Question

=+1. What did Tolman mean by the purposiveness of behavior?

Answered: 1 week ago