Develop an array of peoples first names

Assignment Help Data Structure & Algorithms
Reference no: EM131310053

Assignment

• 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: EM131310053

Questions Cloud

What is the excess burden of taxation : What is the excess burden of taxation? why is there an excess burden, and what factors affect the size of the excess burden for a specific tax?
What each of the women might think about women current role : Women's Roles Then & Now. Script. Script a conversation between two (2) notable women from the 18th and / or 19th century on the roles women should play in society. Within the dialogue, include: What each of the women might think about women's curr..
Discuss reasons for supporting-not supporting specific plans : Imagine you are the CEO and the Human Resource Director and CFO are discussing retirement plans for your company of 200+ employees with 20 Highly Compensated Employees. The firm maintains high levels of profitability and growth. Discuss the various p..
Differences in the thumbprints of a connection : Initially, they are synchronized. After some period of time has passed, the clocks will show different times.
Develop an array of peoples first names : 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.
Begin improving trexlers component quality : If Integrated Devices decides to continue using Trexler as a supplier, what must both companies do to begin improving Trexler's component quality?
Understanding the role of the project manager : Discuss reasons for understanding the role of the project manager, project leadership, and the project team (LO7). Discuss two types of conflict that might arise during a project. Describe a situation in which you have experienced these types of c..
A company issued preferred shares two years : A company issued preferred shares two years ago, paying a $3.85 dividend, which offered investors an original yield of 9%. Currently, the required return on companies with preferred shares of comparable risk yield 9%. Given this information, what sho..
Write about terrorism and how terrorism affects americans : Write a 1,050- to 1,400-word essay in which you consider why the topic should be included in your list, how this topic affects Americans and the wider global community, what remedies and policies have been implemented on this topic/issue, and viab..

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Eliminate every other integer beginning with the integer

the Collections class which has an algorithm called rotate(List list, int distance) which can be used to rotate a list left or right. use to eliminate every other Integer beginning with the Integer in the second position. Remember that if you rem..

  Arraysq1-write a program to find average marks obtained by

arraysq1-write a program to find average marks obtained by 10 students in a test along with algorithm?q2 -write a menu

  Write the fifo insertion algorithm for general trees

Write the FIFO insertion algorithm for general trees.

  Describe a o(nlogn)-time algorithm

You are given a set of n real numbers and another real number x. Describe a O(nlogn)-time algorithm that determines whether or not there exist two elements in S whose sum is exactly x. Hint : Doesn't the O(n log n) term make you feel that sorting ..

  What do these two indexes represent

What do these two indexes represent - what are the limits for each one of these indexes?

  What is the probability that you hire exactly n times

What is the smallest value of n such that an algorithm whose running time is 100n2 runs faster than an algorithm whose running time is 2n on the same machine?

  Write algorithm to identify substrings which form numbers

Write the algorithm, by using pseudo code, to do the following task. Given string of numbers, identify all the substrings which form numbers that are divisible by 3.

  How many topological orderings does it have

Consider the directed acyclic graph G in Figure 3.10. How many topological orderings does it have. The algorithm described for computing a topological ordering of a DAG repeatedly finds a node with no incoming edges and deletes it. This will eventu..

  Design and develop a linked list

Your first task in developing the application for tracking contributors is to load a list of the people who are helping the cause. Design and develop a linked list, implemented as a stack, to track all of the contributors

  Building modules of the entity relationship models

Answers to Review Questions 1. Name and discuss the different levels of data abstraction as defined by ANSI/SPARC.2. What are the main building modules of the Entity Relationship model? Discuss each one.3. What is a composite entity, and when is it u..

  Linear search algorithm with scans

Consider the linear search algorithm with scans through an n-element array a to determine if element xis in a. We say that the algorithm require i steps if x is located at index i; i.e. a[i] = x, for i = 0, 1, . . . , n ?

  Input a list of employee names and salaries and determine

input a list of employee names and salaries and determine the meanaverage salary as well as the number of salaries

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