Computers and Technology

Spanish quiz the goal of this assignment is for you to become more proficient with file i/o, using functions, and learning to use the dictionary data structure effectively. dictionaries are very useful data structures when you can map something (e. g. an english word), to something else (e. g equivalent spanish words). for this assignment, you will synthesize these concepts together by creating an english-spanish vocabulary program 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! program outline

1. check if there are any vocabulary files in the directory, which by convention are files that end in .txt. print the list of files found. if there aren't files ending in .txt, display an error message and quit.
2. have the user select which vocabulary file he or she would like to use. error check to make sure that they select a valid file (i. e., one of the files listed in step 1). they may also choose q to exit the program.
3. store the contents of the vocabulary file into a dictionary data structure.
4. prompt the user for the number of words he or she would like to be quizzed on. error check to make sure the number is valid. equal to 10 it has to be greater than o and less than or
5. quiz the user by using a randomly generated list of english words from the dictionary
6. if the user misses guesses incorrectly, then output the correct words
7. if the user guesses correct, output that they were correct, if there was more than one

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 13:30, Gearyjames8
Anetwork security application that prevents access between a private and trusted network and other untrusted networks
Answers: 1
image
Computers and Technology, 23.06.2019 16:00, cravens511peeelg
An english teacher would like to divide 8 boys and 10 girls into groups, each with the same combination of boys and girls and nobody left out. what is the greatest number of groups that can be formed?
Answers: 2
image
Computers and Technology, 23.06.2019 19:30, alangonsales6232
2. fluorine and chlorine molecules are blamed fora trapping the sun's energyob forming acid rainoc producing smogod destroying ozone molecules
Answers: 2
image
Computers and Technology, 23.06.2019 20:00, boo3972
Match the file formats with the types of multimedia they can store
Answers: 2
Do you know the correct answer?
Spanish quiz the goal of this assignment is for you to become more proficient with file i/o, using f...

Questions in other subjects: