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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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