subject

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

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:00
The first screen you see when you open word2016 what is called?
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
The place where the extended axis of the earth would touch the celestial sphere is called the celestial
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
Where can page numbers appear? check all that apply. in the header inside tables in the footer at the bottom of columns at the top of columns
Answers: 1
question
Computers and Technology, 23.06.2019 23:40
Which of the following calculates the total from the adjacent cell through the first nonnumeric cell by default, using the sum function in its formula? -average -autosum -counta -max
Answers: 1
You know the right answer?
The goal of this assignment is for you to become more proficient with file i/o, using functions, and...
Questions
question
Mathematics, 06.11.2019 02:31
question
Chemistry, 06.11.2019 02:31
Questions on the website: 13722361