Project Statement Please enter your name: user Maximum available words in the Quiz: 10 words. How many questions would you like to be quizzed on? 3 If you've ever taken a foreign language class, you may have studied for tests by creating flash cards to memorize how a given word in a particular language translates into a different language. For this project, you are to create a vocabulary quiz program that requests the name ofa vocabulary file in the current directory, quizzes the user on a subset of the words in the vocabulary file, and then gives the user the option to write out any missed words to a new vocabulary file. While the word lists that we are using are English to Spanish, the program could easily be applied more generally to other languages, giving you a practical replacement to flash cards! Quiz Time Question I English word: to study Your answer in Spanish: estudiar Result: Correcet! Suggested Data File Hello Question 2 English word: to search Your answer in Spanish: buscar Holla Love Amor Result: Correcet! Question 3 English word: to be Your answer in Spanish: ser Project Outline 1. Store the contents of the vocabulary file into a class 2. Print the count of English words in the file. 3. Prompt the user for the number of words he/she would like to be quizzed on. Error check to make sure the number is valid. Result: Incorrect. . At the end of the quiz, the user will see all the questions that are answered. Quiz Summary Name: user roject Requirements 'ou project will meet the following requirements: You must do some error checking for the project. Specifically, you should check if there are any file in the folder. . When the user is asked how many words to be quizzed on, your program shou make sure that it is within the possible range of numbers (i.e. between one and the number of English words in the loaded dictionary). - You can use a English-Spanish dictionary to create the data file. - Use class to store the dictionary. . The maximum words in the file will be 100. - Use class to store student quiz answers Answered: 3 Correct: 2 % Grade: 67% Decision: You have failed the quiz. The passing seore is 80% The quiz report with questions'answers are stored in an output file: quizSummary.txt. (Note: This file contains user's questions/answers with Quiz Summary) Do you want to take the quiz again (Y/N): N Thanks, and Good Luck

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

please answer in c++

Project Statement
Please enter your name: user
If you've ever taken a foreign language class, you may have studied for tests by
creating flash cards to memorize how a given word in a particular language
translates into a different language. For this project, you are to create a vocabulary
quiz program that requests the name of a vocabulary file in the current directory,
quizzes the user on a subset of the words in the vocabulary file, and then gives the
user the option to write out any missed words to a new vocabulary file. While the
word lists that we are using are English to Spanish, the program could easily be
applied more generally to other languages, giving you a practical replacement to
flash cards!
Maximum available words in the Quiz: 10 words.
How many questions would you like to be quizzed on? 3
Quiz Time
Question 1
English word: to study
Your answer in Spanish: estudiar
Result: Correct!
Suggested Data File
Hello
Holla
Question 2
English word: to search
Your answer in Spanish: buscar
Love
Amor
Result: Correct!
Question 3
English word: to be
Your answer in Spanish: ser
Project Outline
1. Store the contents of the vocabulary file into a class
2. Print the count of English words in the file.
3. Prompt the user for the number of words he/she would like to be quizzed on.
Error check to make sure the number is valid.
Result: Incorrect.
4. At the end of the quiz, the user will see all the questions that are answered.
Quiz Summary
Name: user
Project Requirements
You project will meet the following requirements:
1. You must do some error checking for the project. Specifically, you should
check if there are any file in the folder.
2. When the user is asked how many words to be quizzed on, your program shou
make sure that it is within the possible range of numbers (i.e. between one and
the number of English words in the loaded dietionary).
3. You can use a English-Spanish dictionary to create the data file.
4. Use class to store the dictionary.
5. The maximum words in the file will be 100.
6. Use class to store student quiz answers
Answered: 3
Correct: 2
% Grade: 67%
Decision: You have failed the quiz. The passing score is 80%
The quiz report with questions'answers are stored in an output file:
quizSummary.txt.
(Note: This file contains user's questions/answers with Quiz Summary)
Do you want to take the quiz again (Y/N): N
Thanks, and Good Luck
Transcribed Image Text:Project Statement Please enter your name: user If you've ever taken a foreign language class, you may have studied for tests by creating flash cards to memorize how a given word in a particular language translates into a different language. For this project, you are to create a vocabulary quiz program that requests the name of a vocabulary file in the current directory, quizzes the user on a subset of the words in the vocabulary file, and then gives the user the option to write out any missed words to a new vocabulary file. While the word lists that we are using are English to Spanish, the program could easily be applied more generally to other languages, giving you a practical replacement to flash cards! Maximum available words in the Quiz: 10 words. How many questions would you like to be quizzed on? 3 Quiz Time Question 1 English word: to study Your answer in Spanish: estudiar Result: Correct! Suggested Data File Hello Holla Question 2 English word: to search Your answer in Spanish: buscar Love Amor Result: Correct! Question 3 English word: to be Your answer in Spanish: ser Project Outline 1. Store the contents of the vocabulary file into a class 2. Print the count of English words in the file. 3. Prompt the user for the number of words he/she would like to be quizzed on. Error check to make sure the number is valid. Result: Incorrect. 4. At the end of the quiz, the user will see all the questions that are answered. Quiz Summary Name: user Project Requirements You project will meet the following requirements: 1. You must do some error checking for the project. Specifically, you should check if there are any file in the folder. 2. When the user is asked how many words to be quizzed on, your program shou make sure that it is within the possible range of numbers (i.e. between one and the number of English words in the loaded dietionary). 3. You can use a English-Spanish dictionary to create the data file. 4. Use class to store the dictionary. 5. The maximum words in the file will be 100. 6. Use class to store student quiz answers Answered: 3 Correct: 2 % Grade: 67% Decision: You have failed the quiz. The passing score is 80% The quiz report with questions'answers are stored in an output file: quizSummary.txt. (Note: This file contains user's questions/answers with Quiz Summary) Do you want to take the quiz again (Y/N): N Thanks, and Good Luck
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

how do I compile this? I am getting errors

In member function 'void Eng_Span:addWord(std:string)':
89
50
[Error] no matching function for call to 'std:basic_ofstream<char>::open(std:string&, const openmode&)'
89
50
[Note] candidate is:
69
C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x8. In file included from C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++/x86_64-w64-mingw32/bits/stdc++.h
2
from
3.cpp
>1..-.--
C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_... [Note] void std:basic_ofstream<_CharT, _Traits>:open(const char", std:ios_base:openmode) [with_CharT = char; _Traits = std:char_traits<char>; std:ios_base:openmode = std: _los_Openmode]
C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_. [Note] no known conversion for argument 1 from 'std:string {aka std:basic_string<char> }' to 'const char*
716
7
716
7
Transcribed Image Text:In member function 'void Eng_Span:addWord(std:string)': 89 50 [Error] no matching function for call to 'std:basic_ofstream<char>::open(std:string&, const openmode&)' 89 50 [Note] candidate is: 69 C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x8. In file included from C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++/x86_64-w64-mingw32/bits/stdc++.h 2 from 3.cpp >1..-.-- C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_... [Note] void std:basic_ofstream<_CharT, _Traits>:open(const char", std:ios_base:openmode) [with_CharT = char; _Traits = std:char_traits<char>; std:ios_base:openmode = std: _los_Openmode] C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_. [Note] no known conversion for argument 1 from 'std:string {aka std:basic_string<char> }' to 'const char* 716 7 716 7
Solution
Bartleby Expert
SEE SOLUTION
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY