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, 22.06.2019 09:40
It is vital to research each of the services you plan to disable before implementing any change, especially on critical machines such as the: a. servers in the test environment. b. domain controller and other infrastructure servers. c. desktops that have previously been attacked. d. desktops used by upper-level management.
Answers: 2
question
Computers and Technology, 22.06.2019 15:20
The north and south regions had very diferent economies in the 1800s.
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
Ulia is planning to attend the same private four-year college her parents attended. she wants to save at least $18,000 in four years to contribute to her college education. which monthly deposit amounts can julia use to achieve her goal? check all that apply.
Answers: 2
question
Computers and Technology, 23.06.2019 18:50
What is transmission control protocol/internet protocol (tcp/ip)? software that prevents direct communication between a sending and receiving computer and is used to monitor packets for security reasons a standard that specifies the format of data as well as the rules to be followed during transmission a simple network protocol that allows the transfer of files between two computers on the internet a standard internet protocol that provides the technical foundation for the public internet as well as for large numbers of private networks
Answers: 2
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, 09.12.2021 01:00
question
Social Studies, 09.12.2021 01:00
question
Mathematics, 09.12.2021 01:00
question
Mathematics, 09.12.2021 01:00
Questions on the website: 13722361