Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create pseudocode that describes the process of looking up a random word in a di

ID: 3785355 • Letter: C

Question

Create 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 “<, >, =, <>”.

Explanation / Answer

------------------------------------------------------------
Algorithm to find a random word in a dictionary
------------------------------------------------------------

start
   initialise variable lookupWord;
   initialise variable lastWordOnPage;


initialise the methods:- housekeeping(), detailLoop(), findPageWithWord(), matchFound(), and endOfJob().
          housekeeping() prompts for first lookupword.
if First lookupword =0
      Exit
   else
    First lookupword > 0
     then searching can be done through by calling the detailLoop()

detailLoop() it will perform searching on the page
    if lookup word=detailLoop()
      then call matchWord()
             call endOfJob()

  
    else if lookup word != detailLoop()
      then call findPageWithWord()

      findPageWithWord() this will turn the page forward or backward,
      findPageWithWord() and load with first word and last word on the page.
    
      lookup word=matchFound()
      then word found

     call for endOfJob()

      else
     call for endOfJob()
endOfJob()
    Display message “Thank you For using this program”.  

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote