Create an array in vl with up to hundrad elements

Assignment Help Data Structure & Algorithms
Reference no: EM131119500

Create an array in VL with up to 100 elements, call it Username[100]

1. Use a For loop with K from 1 to 100

a. Input name

b. If (name != "LastName") Then

SET Username[k] = name

c.Else, exit loop.

//Notice that K has the last input in the array.

2. Do the following:

Prompt user for a name to check, or enter Stop to end, both in quotes.

Input name

IF (name != "Stop") THEN

For (L = 1; L <= K; L++)

IF (name == Username[L]) THEN

Write " Name " + name + " Is a match."

SET Flag = "TRUE"

ELSE

SET Flag = "FALSE"

END IF

END FOR

IF (Flag == "FALSE") THEN

Write "The name " + name + "Did not match."

END IF

END IF

WHILE name != "Stop"

Reference no: EM131119500

Questions Cloud

Why is earnings per share not a consistently good measure : Why is earnings per share not a consistently good measure of a firm’s performance?
Readers understand the larger themes of a story : Symbols help readers understand the larger themes of a story. One of the major themes of Joyce's "Araby" is the urge to escape the monotony of daily life. Which symbol in the story contributes most to this theme, and why?
Explain the relationship between financial management : Explain the relationship between financial management and (a) Microeconomics and (b) Macroeconomics.
Persuasive research paper : Write a 1,750-word persuasive research paper that argues your personal position on a controversial topic that you think is worthy of public debate. The topic must be current, part of an ongoing debate, or a relatively new, unknown topic that you t..
Create an array in vl with up to hundrad elements : Create an array in VL with up to 100 elements, call it Username[100]. Do the following: Prompt user for a name to check, or enter Stop to end, both in quotes.
Describe how nhrc should account for the down payments : Indicate when NHRC should recognize the expense associated with the guarantee of the rowing and cross-country machines.
How the organization will implement control measures : Finally, discuss how you will mitigate this risk by identifying how the organization will implement control measures, how individuals within the organization can control measures, and finally who is ultimately responsible for mitigating or address..
Issue that relates to one of the following themes : Shange, N. (1997). For colored girls who have considered suicide/when the rainbow is enuf. New York, NY: Scribner. Reprinted by the permission of Russell & Volkening as agents for the author.
Explain the differences in the responsibilities of the treas : Explain the differences in the responsibilities of the treasurer and the controller in a large corporation.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Creating a data flow chart

Create a Data Flow Chart and then make an application that allows a user to enter a stock transaction and determine the stockbroker's commission.

  Provide a description of the algorithm in pseudocode

Provide a description of the algorithm in pseudocode and conduct time complexity analysis of the algorithm

  Write an algorithm that includes the three control structure

This project provides you with the opportunity to examine algorithms, identify the inaccuracies in the algorithms, and finally, to modify the algorithms with the correct details. Your next step will be to write an algorithm that includes the three..

  Telephone number as a string

Write a program that inputs a telephone number as a string in the form (555) 555-5555. The program should use an object of class StringTokenizer to extract the area code as a token, the first three digits of the phone number as a token and the las..

  How the steps are performed by this algorithm

Consider the following algorithm (known as Horner's rule) to evaluate f(x) = summation from i=0 to N of aix^i.

  Explain how to use an avl tree or a red-black tree

What does a splay tree look like if its entries are accessed in increasing order by their keys? Explain how to use an AVL tree or a red-black tree to sort ncomparable elements in O(nlog n) time in the worst case.

  Binary search tree adt

Write a client method that returns a count of the number of nodes in a binary search tree that contain a value less than or equal to the argument value.

  Algorithm to concatenate string in single binary search tree

Create algorithm which concatenates T1 and T2 into single binary search tree. Worst case running time must be O(h).

  How many different undirected graphs are there with v vertix

Graph enumeration: How many different undirected graphs are there with V vertices and E edges (and no parallel edges)? Assume the graph is represented in adjacency-list form

  What is the running time of quicksort

What is the running time of QUICKSORT when all elements of array A have the same value - Why do we analyze the expected running time of a randomized algorithm and not its worst-case running time?

  Draw the hierarchy chart and then plan logic for a program

Draw the hierarchy chart and then plan the logic for a program for the sales manager of The Couch Potato Furniture Company. The manager needs a program to determine the profit on any item sold

  Draw the recursive process of mergesort and quicksort

Draw the recursive process of Mergesort and Quicksort for sorting the sequence {5, 1, 2, 9, 7}. You will get a recursion tree for Mergesort and Quicksort respectively. What are their depths?

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