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

  Implementing a process in an organization

What are the different cost elements involved in implementing a process in an organization?

  Write a method named longestsortedsequence

Write a method named longestSortedSequence that accepts an array of integers as a parameter and that returns the length of the longest sorted (nondecreasing) sequence of integers in the array.

  Demo availability and the latest version

Research two more alternatives for CASE tools. Include cost, demo availability and the latest version. Be sure to include your references.

  Key concept in information systems

Use the Internet or the Strayer Library to research one (1) concept in information systems that you have studied in this course. You may select a topic of your choice or you may use one (1) of the following:

  Describe pseudo code algorithms for insertion

Describe pseudo code algorithms for insertion into and removal from a dictionary implemented externally with a hashed index file.

  Explain the non-price determinants involved

1. Explain the non-price determinants involved in the change in each market. 2. Why would the writer suggest coffee drinkers might be thinking of switching to tea?

  What are advantages of computer software

what do you think about the advantages and disadvantages of computer software. What you think about the technology in the criminal justice system overall. What resources or websites could be useful.

  Impose appropriate field types and lengths on all fields

Impose appropriate field types and lengths on all fields

  Identify the functional dependencies represented by the data

Describe and illustrate the process of normalizing the table shown in Figure 8.12 to 3NF. Identify the primary key and, where appropriate, alternate and foreign keys in each table.

  What does ifconfig do in linux

1. What does ifconfig do in Linux? 2.What are the ranges used for private ip addressing.

  A wheel has a number of factors and forces

A wheel has a number of factors and forces that can be seen during movement.What happens if you used the wrong bike tire for the environment (a racing bike tire on a mountain trail, a mountain bike tire on the street)?

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