Loop through the array to determine

Assignment Help Basic Computer Science
Reference no: EM131223275

Create an array of people's first names. Using a loop, read the names from a text (txt) file, and store each one into the array. The array should allow for a maximum of 100 entries. Continue to read in first names and store them into the array. The last entry in the text file, containing "LastOne," will indicate the end of the list of names.

Prompt the user for a first name.

Loop through the array to determine if the first name entered exists in the array. If a match is found, display a message that includes the name and a message indicating that there was a match found. If no match is found, display a message so indicating.

Using a loop, continue to prompt the user for first names and determine if a match in the array is found. The loop should continue until the user indicates "stop" as the first name.

Reference no: EM131223275

Questions Cloud

Who are cain and abel what kind of work do they do : Read the story of Cain and Abel. Reflect on the reading by answering the following question- Who are Cain and Abel? What kind of work do they do? What did Cain offer to God
Write to the newspaper defending the central bank : Read a story in the newspaper blaming the central bank for pushing the economy into recession. - Write to the newspaper defending the central bank, what argument would you make?
User computer by a web server-contains information : A cookie-a simple text file that is placed on a user's computer by a Web server-contains information about the user's visit to that website. It might also contain personal information a user provides to a website, such as a user name and preferenc..
Describe the cah system and the disease topic : Define the disease/condition from the perspective of the conventional model and describe in detail how the disease/condition is diagnosed and statistical (epidemiological) data for the disease/condition (i.e., incidence/prevalence, trends, morbidi..
Loop through the array to determine : Loop through the array to determine if the first name entered exists in the array. If a match is found, display a message that includes the name and a message indicating that there was a match found. If no match is found, display a message so indi..
Which is an anthropogenic source of nitrogen oxides : Which of the following is an anthropogenic source of nitrogen oxides? Which of the following pollutants bonds with hemoglobin, thereby interfering with O2 transport in the blood stream?
Unique employee number-employee name : A zookeeper has a unique employee number, employee name, title, and year hired. Some zookeepers supervise other zookeepers. Every animal has been cared for by at least one and generally many zookeepers.
Your system was running fine : Scenario: Your system was running fine, but you occasionally notice the sound output was "glitchy" and you decide to add a sound card. As luck would have it, a friend gave you his old sound card from a system he threw away.
The economy is in short run equilibrium : Suppose the economy is in short-run equilibrium at a level of output that exceeds potential output.  - How would the economy self-adjust to return to long-run equilibrium?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  The organization code of ethics

The organization  code of ethics?

  What is required to apply it into business

Does business need IT? Why IT is important for business survival? What is required to apply IT into business? (Cost, planning, designing, equipment, installation, training, etc) How does business use IT? (internally such as staff, employees, and exte..

  Correct destination on a network

What communications device connects multiple computers together and transmits data to its correct destination on a network?

  Estimate the mean and variance of the number of times

Estimate the mean and variance of the number of times you have to roll 2 dice until the total exceeds 100.

  Describe various system changeover methods

Briefly describe various system changeover methods. Suggest a changeover method for the system described in the case study and provide specific reasons to support your choice.

  Consumer maximization using a budget line

Draw 2 graphs for consumer maximization using a budget line and indifference curves.SHow Good X and X-axis and good y-axis.Also,use Px as price of Y with M as income.

  Develop a class implementation for the mincost-flow problem

Show that the mincost-maxflow problem reduces to the transportation problem with just V extra vertices and edges by using a construction similar to the one used in the proof of Property 22.16.

  Explore and estimate software programs

Explore and estimate software programs based on following criteria: Needs assessment -- Why would the prospective user require program? Write down the features of the program?

  Ways to avoid communication pitfalls

Based on the section on "Watch out for communication pitfalls" in the Bateman and Snell text, describe some ways that Lei could have avoided this situation.

  Design concept in terms of the usability of the design

A justification for the design concept in terms of the usability of the design. You should explain why your decisions make sense and why your interface concept works for the application. Any preliminary designs can be included as an Appendix to th..

  Determine what check bits would be stored in memory

Suppose an 8-bit data word stored in memory is 11000010. Using the Hamming algorithm, determine what check bits would be stored in memory with data word. Show how you got your answer.

  Workbook and a worksheet group in excel

What is the difference between a Workbook and a Worksheet group in excel?

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