3. What is the error in the following pseudocode? // The searchName function accepts a string containing the name // to search for, 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

Answers

Answer 1
Answer:

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.

Related Questions

Which of the following statements is not true?A. A structured chart is a sequential representation of program designB. the Real-Time system is a particular case of a on-line-systemC. Batch totals are not incorporated while designing real-time applicationsD. 4GLs are used for application proto typingE. None of the above
What are keyboards that include all the keys found on a typical virtual keyboard, as well as extra keys, such as function and navigation keys
Which of the following is an example of computer hardware AppPowerPoint Web browser Microchip
- If we place records from different tables in adjacent____________, it would increase efficiency of a database.Physical locationTableFormempty location
What do you think is the single greatest physical threat to information systems? Fire? Hurricanes? Sabotage? Terrorism? Something else? Discuss this question and provide support for your answer.

What is the best for cleaning up scattered laser toner particles?a. Use a hair dryer to blow away the residue

b. Use moist paper towels to wipe up particles

c. Use your shirt sleeve to make them disappear

d. Use a vacuum cleaner equipped with a HEPA filter while wearing your PPE

Answers

Answer: D) Use a vacuum cleaner equipped with a HEPA filter while wearing your PPE

Explanation:

 Laser tone particle takes approximately 15 minutes for settle down as it is  finely grounded particle. To avoid the inhaling of laser tone particles try to keep the air stable and leave the printer sometime after cleaning its area.

HEPA filter is the high efficiency filter which basically particulate air and improve the quality of air. It made up of variety of materials like glass filters, vegetable fiber etc.

The main application of HEPA filter that it is using as vacuum cleaner equipment and must wear personal protective equipment (PPE) while using this types of equipment.

Give the one simple program using c++programming language​

Answers

Answer:

the ejedjrjr eenekrr

eueeue

Explanation:

u4rururirw

Implement the function calcWordFrequencies() that uses a single prompt to read a list of words (separated by spaces). Then, the function outputs those words and their frequencies to the console.Ex: If the prompt input is:

hey hi Mark hi mark
the console output is:

hey 1
hi 2
Mark 1
hi 2
mark 1

Answers

Answer:

JavaScript code is given below

Explanation:

function calcWordFrequencies() {

   var words = prompt("Enter the sentence below").split(" ");

   var unique_words = [], freqencies = [], count = 0;

   for (var i = 0; i < words.length; i++) {

       var found = false;

       for (var j = 0; j < count; j++) {

           if (words[i] === unique_words[j]) {

               freqencies[j] = freqencies[j] + 1;

               found = true;

           }

       }

       if (!found) {

           unique_words[count] = words[i];

           freqencies[count] = 1;

           count++;

       }

   }

   for (var i = 0; i < words.length; i++) {

       var result = 0;

       for (var j = 0; j < count; j++) {

           if (words[i] === unique_words[j]) {

               result = freqencies[j];

               break;

           }

       }

       console.log(words[i] + " " + result);

   }

}

_________ is a business strategy in which a company purchases its upstream suppliers to ensure that its essential supplies are available as soon as the company needs them.The bullwhip effect

Vertical integration

JIT

VMI

Answers

Answer:

Vertical Integration

Explanation:

Vertical Integration is a business strategy in which a company purchases its upstream suppliers to ensure that its essential supplies are available as soon as the company needs them.  This enables the business to exercise higher control over supply related uncertainties and to optimize supplies based on changing demand or business priorities.

An example can be a textile manufacturer purchasing a dye manufacturing unit.

Insert the missing code in the following code fragment. This fragment is intended to implement a method to set the value stored in an instance variable. Public class Employee
{
Private String empID;
Private boolean hourly;
) . .
_______
{
Hourly = isHourly;
}
}
A) public void setHourly(String isHourly)
B) public void getHourly()
C) public boolean getHourly()
D) public boolean setHourly(boolean isHourly)

Answers

Answer:

A)

Explanation:

In this code example the missing piece of code would be...

public void setHourly(String isHourly)

This piece of code is creating a function called setHourly which takes in one String variable as it's parameter. Based on the rest of the code, the function takes that parameter variable and places it into an instance variable called Hourly which can be used when the function is called.

What is the purpose of creating a PST file?Question 18 options:
a)To document an antivirus pattern that continues to be sent to your mailbox
b)To insert as a Signature for all outgoing emails
c) To save your emails so that you can restore your mailbox if necessary
d)To create a file that deleted emails will be sent to for deletion

Answers

The purpose of creating a PST file is to

c) To save your emails so that you can restore your mailbox if necessary

Explanation:

  • A PST file is a personal folder file in Microsoft Outlook. In Outlook, the storage limit for a single user's . PST file is 2 GB. PST stands for personal storage.
  • A PST file, or personal storage table (. pst) file, is a Microsoft Outlook Data File that stores a user's Outlook data for POP3, IMAP and web-based mail accounts, including all mail folders and the items within the folders, such as emails, email attachments, to do items and appointments, contacts and more.
  • In computing, a Personal Storage Table (. pst) is an open proprietary file format used to store copies of messages, calendar events, and other items within Microsoft software such as Microsoft Exchange Client, Windows Messaging, and Microsoft Outlook.
  • The purpose of the PST file was, like it is today, to provide end users with a way to create local archives of their server-based email.
  • As a result, PST files provided end users with a means of expanding their email storage by creating and maintaining one or more local archives.