Question: Looking up a word in a dictionary is a routine activity page flipping activity for most but creating a programming logic for it can be

Looking up a word in a dictionary is a routine activity page flipping activity for most but creating a programming logic for it can be a complicated process. For example, assume that you want to look up logic. You might open the dictionary to a random page and see juice as the last word on the page. You know this word comes alphabetically before logic, so you flip forward and see lamb as the last word on the page. That is still not far enough, so you flip forward and see monkey as the first word on the page. You have gone too far, so you flip back, and so on. Draw a structured flowchart AND pseudocode that describes the process of looking up a word in a dictionary. Pick a word at random and have a fellow student attempt to carry out your instructions. Use three modules. The main program declares global variables and calls housekeeping, detail loop, and end-of-job modules. The housekeeping module prompts for and accepts the first word. The detail module prompts for and accepts subsequent words, conducts the search and match with the lookup word, and flip the page forward or backward, and displays if a match is found or not. Include appropriate sentinel value allowing users to exit the program gracefully. The end-of-job module displays the message Thanks for using this program. Rubrics: You must create structured flowchart and pseudocode. Your main program should have start/stop, declarations with data type for all variables clearly stated, input, calculation/process, output, and modules as needed. Modules should include module names and return. Use appropriate symbols for flowcharts and indentation for pseudocode. When using sentinel value be sure the variable used in the sentinel value matches the priming variable used in housekeeping module and the input variable in detailLoop module. Submit all your work in a single PDF file. See the modularized dog washing example on page 109 in the textbook.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!