Discuss and creating a programming logic

Assignment Help Computer Engineering
Reference no: EM131722068

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

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

Reference no: EM131722068

Questions Cloud

Discuss network connection or data encryption : This individual projects will require you to present an "Information Awareness" presentation to the class.
Deliver goods-services to the customer should create value : What phrase refers to the idea that all steps in supply chain processes that deliver goods and services to the customer should create value?
Examine the history or extent of the problem in america : ist at least five carefully constructed questions to conduct a 30-minute interview that provides insightful data in response to your research question.
Effective customer service manager : What skills do you possess that would make you an effective customer service manager? Describe in a short paragraph how you would apply.
Discuss and creating a programming logic : creating a programming logic for it can be a complicated process
Describe the behavior tf the person : Describe the behavior tf the person you observed. How in your opinion could this anger have been avoided? Once it occurred
Who has an absolute advantage in testing games : Who has an absolute advantage in testing games? Who has the comparative advantage in testing games? Who has the comparative advantage in making pizzas?
What is structural leadership : What is "structural Leadership"? Explain into some details.
Perform the operations of conversion and obversion : Convert the following propositions and state whether the converse is logically equivalent or not logically equivalent to the given proposition.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Justify the utilization of a particular level

we are learning about Online instant storefronts and the 3 different categories. I am not sure I understand the difference between these. Please help to me identify each and differ between them. Also if you can let me know what potential customer a..

  Design a sequential circuit whose state diagram is given

Design a sequential circuit whose state diagram is given in Fig. using a 3-bit register and a 16 x 4 ROM.

  Questionexplain your idea for a database along with your

questionexplain your idea for a database along with your thoughts for a partitioned view.1. how will you use this

  Dscribing the it governance structure and

describing the it governance structure and decision-making processes in the air force.nbspnbspinclude a discussion on

  Define the edge connectivity of a tree is 1

The edge connectivity of an undirected graph is the minimum number k of edges that must be removed to disconnect the graph. For instance, the edge connectivity of a tree is 1, and the edge connectivity of a cyclic chain of vertices is 2.

  Comprise your recommendations as if you were the manager in

prepare a 1400 to 1750-word paper detailing how a new technology system should be implemented or introduced to a

  What are some of the changes to technology

How has this technology impacted the development of new software? Even if the technology change is hardware related, software development can be impacted.

  Sketch a totem pole output stage and explain its operation

Sketch a totem-pole output stage and explain its operation and the advantages of incorporating this circuit in the TTL circuit.

  Design an implementation approach for the database design

design an implementation approach for the database design process to the kelsey elementary school. include

  Research best practices for system integration approaches

1.research best practices for system integration approaches such as the systems development life cycle sdlc approach

  Discuss an experience you have had with a team

What are ways that a project manager can ensure that he or she is being given an accurate status report and Discuss an experience you have had with a team that struggled and never really got to the point of functioning smoothly.

  Explain the multi processor lock implementation

Show how to implement a semaphore by generalizing the the multi-processor lock implementation shown in Figure.

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