Create an array of peoples first names

Assignment Help Data Structure & Algorithms
Reference no: EM131143380

The following assignment incorporates the concepts from prior weeks (variables, if-else logic, loops, and arrays), along with this week's topic of file input/output process.

Create a Visual Logic program that will:

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: EM131143380

Questions Cloud

Determine the angle at which the pole will start to slip : Question - The uniform pole has a weight W and is lowered slowly from a vertical position θ = 90o toward the horizontal using a cable AB. If the coefficient of static friction is μs = 0.3 at C, determine the angle θ at which the pole will start to sl..
Determine the decrease in temperature for which slipping : The brass strip AB has been attached to a fixed support at A and rests on a rough support at B. Knowing that the coefficient of friction is 0.60 between the strip and the support at B, determine the decrease in temperature for which slipping will ..
How health care organizations translate strategic plan : How does an organization determine which actions will help to fulfill its strategic objectives?-  How does it make decisions regarding resource allocation?
Methods to monitor and control your proposed strategic plan : Develop at least three methods to monitor and control your proposed strategic plan, being sure to analyze how the measures will advance organizational goals financially and operationally. My Strategic Plan Our target audience will be our current supp..
Create 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.
Customer relationship management system : Jim Watanabe was in his new car, driving down I-5, on his way to work. He dreaded the phone call he knew he was going to have to make. The original go-live date for a pilot implementation of Petrie’s Electronics’ new customer relationship management ..
Describe the procedures for the preparation of field notes : Select two major crimes (e.g. sudden deaths, sex related crimes) and compare and contrast the key differences in reporting the two major crimes that you selected. Determine the three (3) most important characteristics of an effective criminal..
Determine the relevant costs for the expansion decision : Determine the relevant costs for the expansion decision, and distinguish between the short run and the long run costs.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Compare three implementations for a priority queue

Compare and contrast three implementations for a priority queue in terms of what the data structures represent; a sketch of the principal routines.

  Write a program that read up to ten letters into an array

Write a program that will read up to 10 letters (characters) into an array and write the letters back to the screen in the reverse order.

  Explaining instruction format of operation code field

Operation code field, a mode field, to specify one of seven addressing modes, a register address field to specify one of 60 processor registers, and memory address. Specify instruction format and number of bits in each field if the instruction ..

  What is your recommendation for alamo foods

Given a discount rate of 9 percent (.09), perform present value analysis on the data for Alamo Foods. (Hint: Use the formula 1/ (1 + i)n to find the multipliers for years 1 to 6.), What is your recommendation for Alamo Foods?

  Prove correctness of the given algorithm

Prove correctness of the following algorithm which is used to determine if a list numbers is a part of other list of numbers. For example for inputs List1=[1,2,3] and List2=[5,6,1,7,2,5,6,3], the algorithm will return "List1 is part of List2" and ..

  Binary search algorithm

Use the binary search algorithm to seach the list. (You might need to modify the algorithm given in this chapter to count the number of comparisons.)

  Creating an automated checkout program

A local department store employee you to create an automated checkout program to expedite customers in a hurry. The checkout line can only allow 5-products for any one purchase.

  How to compute the depth of a tree with the update algorithm

Show how to compute the depth of a tree with the Update algorithm. Show that the Update algorithm can be used for election and computation of a breadth-first search spanning tree by giving an appropriate path-cost function.

  Find the articulation points in a graph

Find the articulation points in a graph. A vertex in an undirected connected graph is an articulation point (or cut vertex) iff removing it (and edges through it) disconnects the graph.

  Write a function called halfsum that takes as input

Write a function called halfsum that takes as input an at most two-dimensional matrix A and computes the sum of the elements of A that are in the diagonal or are to the right of it.

  What is the time complexity of running the below bubblesort

Show a simple modification that can be made to the below bubblesort that significantly improves the time complexity for an array of sequential integers.

  Briefly describe what double hashing is

Briefly describe what double hashing is and describe what problem double hashing helps to resolve. Also, provide an example of a rule that can be used for a double hashing probe sequence

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