Find the matching name in the array

Assignment Help Basic Computer Science
Reference no: EM132637519

1. User inputs a word, the program outputs the middle letter of that word, e.g. if "Jeremia" is input, it will output "e". If "Jeremy" is input, and the word length is an even number without a middle value, the program will divide in 2 and round DOWN and output "r".

2. Given a list of words, the program will ask user to input a word and will search its list for a match. If match is found, the program will output the index at which the inputted word is found, otherwise it would output "not found", e.g. in a list "donkey","cactus","fish","goat", if the user inputs "cactus" the program should output "found at index 1", if "zebra" is input, the output is "zebra not found".

3. We have two arrays, of 4 elements each. The first array contains names, the other array contains integers representing points earned by each of the names in the other array. The user inputs a name, the program finds the matching name in the first array, remembers its index, then it outputs the element from the integer array that is at the same index as the match. If no match is found, the error code of "-999" is output.

Reference no: EM132637519

Questions Cloud

Construct an nfsa to accept languages : Construct an NFSA to accept each of the following languages. Make sure that your NFSA contains at least one nondeterministic state, but no -moves are allowed.
How voltaire attacks philosophical reasoning generally : After reading Candide, write a paper comparing the optimistic philosophy of Pangloss with the pessimism of Martin. Explain how Voltaire uses this contrast.
Search for a specific student by student id : Now search for a specific student by student id from you data.txt file. For example: search by student id 302, it should return result in the following manner:
Demonstrate the number of units transferred to assembly : Determine the number of units transferred to Assembly. During May, Cutting department completed a number of units of a product and transferred them to Assembly.
Find the matching name in the array : 1. User inputs a word, the program outputs the middle letter of that word, e.g. if "Jeremia" is input, it will output "e".
What type of situation would a company use multiple cost : Explain two products or services that might use both process and job order costing methods to determine the cost of a finished unit.
Describe importance and use of scriptural moral teachings : Address the importance and use of scriptural moral teachings - the Ten Commandments, for example - in Jewish ethics. The response must be typed.
Suggest a evaluating capital investments of company : Suggest a evaluating capital investments of your selected company in the emerging markets to reduce risk. Provide a rationale for your suggested methodology.
Find the oil changes required to earn net income : Find the oil changes required to earn net income of $20,000, assuming fixed costs are $32,000 and the contribution margin per unit is $8.

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