1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ad-work [718]
3 years ago
6

3. What is the error in the following pseudocode? // The searchName function accepts a string containing the name // to search f

or, an array of strings containing the names, and // an integer specifying the size of the array. The function // searches for the name in the array. If the name is found, the // string containing the name is returned; otherwise a message // indicating that the name was not found in the array is // returned. Function String searchName(String name, String names[], Integer size) Declare Boolean found Declare Integer index Declare String result // Step through the array searching for the // specified name. While found == False AND index <= size − 1 If contains(names[index], name) Then Set found = True Else Set index = index + 1 End If End While // Determine the result. If found == True Then Set result = names[index] Else Set result = "That name was not found in the array." End If Return result End Function
Computers and Technology
1 answer:
marta [7]3 years ago
5 0

Answer:

The answer is "In the given pseudo-code there are three errors".

Explanation:

The description of the errors can be defined as follows:

  • The first error in this code is that the variable doesn't initialize any value with a variable, which is equal to false.
  • The second error is it does not return any string value.
  • At the last, if the conditional statement doesn't work properly because in this block if the name is found, it doesn't print any error message.
You might be interested in
The Mifflin Cable store in Buffalo is currently offering a fabulous marketing strategy for potential new cable and Internet cust
worty [1.4K]

Answer:

Decrease buyer power

Explanation:

The company is trying to decrease the power that buyers have by ensuring that the market system is properly controlled. The company wants to regulate the economic conditions of the market and have the controlling power of the market system. Gifts and other benefits are offered by the company to the buyers to coarse them.

8 0
4 years ago
Which of the following occurs during data cleansing?
Diano4ka-milaya [45]

Answer:c)Clean redundant customer data

Explanation:Data cleansing/cleaning is the activity for the elimination of the data which is not required for further use, corrupt, unnecessary etc by detecting it. The data that is being cleared is categorized by levels like irrelevant  data, incorrect data, inaccurate data, redundant data etc.

The data is eliminated by the method of correcting , modifying, reducing unnecessary parts,deleting, etc.Thus, the correct option is option(C).

5 0
4 years ago
How do you think computers have helped to improve documentation, support and services within the healthcare industry.
AfilCa [17]
Before the use of technology such as computers, information was documented through papers separated in folders. This was a very long and complicated process as people would have to find information by hand, sorting through countless documents. Now, it is much easier and neater to keep information. It can be as easy as digitally searching for someone's name and the computer will sort through countless documents, finding the one you need almost instantly. It is also much less wasteful and safe, as before computers, the use of paper was the only way to permanently keep information, also making documents vulnerable to being lost or stolen.
4 0
3 years ago
Implement a metho d to nd the k-th largest element in an array of size N using a minimum priority queue (MinPQ). Assume that the
diamong [38]

Sorry don't understand spanish,I am sure you can get it wrong,for crying out loud you people get checks for coming to United States

3 0
3 years ago
Select the correct answer.
siniylev [52]

Answer:A

Explanation: J pegs are easily saved and accessed anywhere and show good quality

8 0
3 years ago
Other questions:
  • Which pair of Information Technology career fields may require work to be done outside of normal office hours? interactive media
    8·2 answers
  • What network monitoring technology enables a switch to copy and forward traffic sent and received on multiple interfaces out ano
    9·1 answer
  • Roadband is a network connection that
    15·1 answer
  • A bakery collects data on sales. Each sales record includes the date of the sale and some metadata about the items that were par
    11·1 answer
  • Which of the following is a set of short-range wireless technologies used to share information among devices within about two in
    8·1 answer
  • A student is conducting an experiment in which he adds an inhibitor to an enzyme-catalyzed reaction that contains alkaline phosp
    14·1 answer
  • Finding values in an array
    5·1 answer
  • You are not sure if a certain word has an"e"at the end<br>​
    11·1 answer
  • In what type of attack does the attacker have the ciphertext of several messages that were encrypted with the same encryption al
    14·1 answer
  • A company is concerned that hackers may gain access to its computer system or that it may be
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!