(Solved) ooking up a word in a dictionary, for the most part, is a routine activity of flipping pages. But creating a programming logic for it can be a...

ooking up a word in a dictionary, for the most part, is a routine activity of flipping pages. But creating a programming logic for it can be a complicated process. For example, assume that you want to look up the word “logic” in your dictionary. You might open the dictionary to a random page and see “monkey” as the first word on the page. Alphabetically you know your lookup word “logic” comes before the first word on the page (monkey), so you flip backward and see “juice” as the last word on the page you just opened. You have gone too far, so you flip forward; so on and so forth. Once you know the word is between the first and last word on page; you then scan the page word by word to find a match for your lookup word.

Create a structured flowchart AND pseudocode that describes the process of looking up a random word in a dictionary. One of the questions to solve in this assignment is the logic for determining when the look up word is on the page you opened. Use variables like lookupWord, firstWordOnPage, lastWordOnPage, etc. Use these variables in your flowchart and pseudocode NOT a specific word like “logic”. After you create the flowchart and pseudocode pick a random word like “logic” in the above example and have a fellow student attempt to carry out your instructions. Use five modules where the main program declares appropriate variables and calls housekeeping(), detailLoop(), findPageWithWord(), matchFound(), and endOfJob(). Housekeeping() prompts for and accepts the first lookup word or zero (0) to exit the program. detailLoop() conducts the search to find if lookup word is on page. If lookup word is on page detailLoop() will call matchWord(). If lookup word is NOT on page detailLoop will call findPageWithWord(). findPageWithWord() flips page forward or backward, prompts for and accepts subsequent first and last words on page. matchFound() searches within the current page to locate the word matching the lookup word. endOfJob() displays the message “Thank you for using this program”. Include appropriate sentinel values and relational operators “<, >, =, <>”.


Assignment 3 Hint: each time you flip a page ask the user to input first and last word on page.


Solution details:

This question was answered on: Mar 27, 2022

PRICE: $18

Solution~000200157480.zip (25.37 KB)

Buy this answer for only: $18

This attachment is locked

We have a ready expert answer for this paper which you can use for in-depth understanding, research editing or paraphrasing. You can buy it or order for a fresh, original and plagiarism-free solution (Deadline assured. Flexible pricing. TurnItIn Report provided)

Pay using PayPal (No PayPal account Required) or your credit card . All your purchases are securely protected by .

About this Question






Mar 27, 2022





We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.

You can also use these solutions:

  • As a reference for in-depth understanding of the subject.
  • As a source of ideas / reasoning for your own research (if properly referenced)
  • For editing and paraphrasing (check your institution's definition of plagiarism and recommended paraphrase).
This we believe is a better way of understanding a problem and makes use of the efficiency of time of the student.