subject

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

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:20
This problem has been solved! see the answeran evil king has a cellar containing n bottles of expensive wine, and his guards have just caught a spy trying to poison the king’s wine. fortunately, the guards caught the spy after he succeeded in poisoning only one bottle. unfortunately, they don’t know which one. to make matters worse, the poison the spy used was very deadly; just one drop diluted even a billion to one will still kill someone. even so, the poison works slowly; it takes a full month for the person to die. design a scheme that allows the evil king to determine exactly which one of his wine bottles was poisoned in just one month’s time while expending at most o(logn) of his taste testers.you are not allowed to use n testers, one for each bottle, and see which one tester dies after 30 days.(no pseudocode needed. just answer in words, how many testers you use, how you use them and why you correctly identify the poisoned bottle in 30 days)
Answers: 2
question
Computers and Technology, 22.06.2019 07:30
What type of computer network ensures high security ?
Answers: 1
question
Computers and Technology, 22.06.2019 08:00
What best describes a career pathway in a lodging career? a worker starts out as an amusement attendant, then becomes a recreation worker, and then becomes a gaming worker within five years. a worker starts out as a bell hop, then becomes a night clerk, and then becomes a hotel manager within five years. a worker starting out as a tour guide, then becomes a travel clerk, and then becomes a travel agent within five years. a worker starts out as a server, then becomes a food preparer, and then becomes a head chef within five years.
Answers: 1
question
Computers and Technology, 23.06.2019 07:50
Most shops require the technician to enter a starting and ending time on the repair order to track the actual time the vehicle was in the shop and closed out by the office. this time is referred to as _ time ? a. comeback b. ro c. cycle d. lead
Answers: 1
You know the right answer?
Spanish quiz the goal of this assignment is for you to become more proficient with file i/o, using f...
Questions
question
Chemistry, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Chemistry, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Chemistry, 14.09.2020 21:01
question
Chemistry, 14.09.2020 21:01
question
Chemistry, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
English, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Mathematics, 14.09.2020 22:01
question
Social Studies, 14.09.2020 22:01
question
Mathematics, 14.09.2020 22:01
question
Mathematics, 14.09.2020 22:01
question
Social Studies, 14.09.2020 22:01
question
Mathematics, 14.09.2020 22:01
question
English, 14.09.2020 22:01
question
Mathematics, 14.09.2020 22:01
question
Social Studies, 14.09.2020 22:01
Questions on the website: 13722361