Creating a programming logic

Assignment Help Basic Computer Science
Reference no: EM131386728

Looking 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 "<,>, =, <>".

Reference no: EM131386728

Questions Cloud

What are the rights of the parties : Lee counterclaims, based on the terms of the contract, for liquidated damages of $25,000 (the amount of the deposit) as a result of Mrs. Kaiden's breach of contract. What are the rights of the parties?
Questions on a word document : Please answer the following questions on a word document. Please provide any references/sources 1. What is the 127.0.0.1 IP address and the most static route used in a host computer?
How much new capital must be supplied to make the purchase : The equipment can now be sold for $10,000, and a more advanced model can be installed for $55 000 Assuming the depreciation fund is available for use, how much new capital must be supplied to make the purchase?
What should barr be able to recover : According to the expert, not only was the yacht not new, it was worth at most only a half of the new value of $102,000. What should Barr be able to recover from S-2 Yachts and Crow's Nest?
Creating a programming logic : Looking 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.
To what damages if any is the grain dealer entitled : Then he bought corn at a greatly increased price on the market in order to fulfill commitments to his purchasers. To what damages, if any, is the grain dealer entitled? Explain.
Is he entitled to consequential damages : Itek contends that consequential damages are not recoverable in this case since Burrus elected to keep the press and continued to use it. How much should Burrus recover in damages for breach of warranty? Is he entitled to consequential damages?
Was the articles of confederation doomed to fail : Was the Articles of Confederation doomed to fail? Why or why not? Do you support the Constitution that was ratified? Why or why not? Is there a better form of government that we could have used instead? Pick one addition to our Constitution that y..
What is the name of the first automatic calculator : Q1. What is the name of the first automatic calculator and who designed it? What year? Was the first computer Programmer male or female? What was his/her name?What is the name of the first successful high-speed electronic digital computer? What yea..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Goal of reaching consensus on one kind of ice cream

Design an algorithm which can survey and re-survey each person, with the goal of reaching consensus on one kind of ice cream. The algorithm can present answers to each person in the group until a consensus is reached.

  Can we find a joint pdf if we know autocorrelation function

Can we find a joint PDF if we know the autocorrelation function?

  Find the length of the escalator

The escalator at St. Petersburg Metro in Russia has a vertical rise of 195.8 feet. If the angle of elevation of the escalator is 10° 21 36, find the length of the escalator.

  The processes and procedural considerations for implementing

For the purpose of this assignment, you will have to recap your previous assignment (in 250 words) and then provide a well-researched and informed report to the CIO.

  What belief system or systems do the staff adhere to

What belief system or systems do the staff adhere to. What are some beliefs that can be improved on or changed to create a better work experience, while maintaining quality in services delivered

  What is physical security

What is physical security? What are the primary threats to physical security? How are they manifested in attacks against the organization? What are certification and accreditation when applied to information systems security management? List and..

  Develop a vision system for isolating defects

Develop a vision system for isolating defects such as breaks (open circuits) and leaks (short circuits) in the pathways. Discuss and develop practical preprocessing, segmentation, and recognition algorithms for your system S

  What are the spatial indexes

What are the spatial indexes? Can you please provide more details on R-tree indexes?

  Find the sum of the squares of the integers

Find the sum of the squares of the integers from 1 to My Square, where My Square is input by the user.be sure to check that the user enters a positive integer.

  What does olap have to do with data warehouses

Name and describe three kinds of data transformations that might be necessary as transactional data is integrated and copied into a data warehouse.

  What type of damage these computer infections can do

Write one to two paragraphs on each topic below, and describe how it applies to the realm of data communication. Also discuss what type of damage these computer infections can do to data in a computer.

  Transmitting station montiors bus during transmission

If each transmitting station montiors bus during transmission, how long before it notices the interference in seconds? In bit times?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd