Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use C + + with no use of vectors. Create a vocabulary quiz program that : Reads a master vocabulary file in the current directory.
Use C with no use of vectors.
Create a vocabulary quiz program that :
Reads a master vocabulary file in the current directory. The vocabulary file
contains word pairs, with each pair consisting of a word in Spanish and its English translation.
The program will quiz users by asking them to type the Spanish translation of an
English word. Users will initially be prompted to specify the number of questions
they want to be quizzed on After answering all questions, the program will
check the answers and write the user's grade to a file. There are also counters for the overall statistics on the session which include the number of quizzes takens, quizzes passed at or greater, total number of words reviewed.
This will program will also meet the following requirements:
Error Checking:
a Check if the txt file exists in the folder. If the file does not exist, it will end the
program.
b There will be a maximum of pair words.
c Check when the user is asked how many words to be quizzed on your
program should make sure that it is within the possible range of numbers ie
between one and the number of English words in the vocabulary file
d Do not have the same question repeat. Use a random generator to pull the
question from the vocabulary file. Keep track of the questions asked to avoid repeating a word.
Use an EnglishSpanish vocabulary file to create each quiz.
Print the count of Spanish words in the file at the start of the quiz.
Store the users each Quiz grade in an output file.
Ask the user if heshe wants to take another quiz
The final output should displaywrite the overall # of quizzes with appropriate
summary.
Example Output:
Welcome to EnglishSpanish Class.
Please enter your name: User Name
Maximum available words in the Quiz: words.
How many questions would you like to be quizzed on
Quiz
Question
English word: to study
User answer in Spanish: estudiar
Result: Correct!
Question
English word: to search
User answer in Spanish: buscar
Result: Correct!
Question
English word: to be
User answer in Spanish: ser
Result: Incorrect.
Quiz Summary
Name: User Name
# of Question in the quiz:
# of Correct answers:
Your Grade:
Decision: FAILED. The passing score is
NOTE: The quiz report is ALSO stored in an output file: quizSummary.txt
Do you want to take the quiz again YN: N
Thanks for taking the quiz.
User Name, the following is your quiz summary
# of Quiz completed:
# of Quiz successfully passed:
# of Quiz failed:
# of questions in all quizzes:
Highest grade:
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