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
Aneli [31]
3 years ago
9

A(n) ________ is a special value that cannot be mistaken as a member of a list of data items and signals that there are no more

data items to be processed.
Computers and Technology
1 answer:
inn [45]3 years ago
7 0

Answer:

A Sentinel is a special value that cannot be mistaken as a member of a list of data items and signals that there are no more data items to be processed.

Explanation:

The sentinel value is a form of  data (in-band) to identify the end of the data when there is no out-of-bound data provided.

The value should picked in a way that is different and unique from all legal data values.

You might be interested in
Which is NOT a factor that affects teenagers' ability to resist peer pressure and stand up for their own values? A. how high or
Furkat [3]
I think it’s C but I’m not completely sure
7 0
2 years ago
Read 2 more answers
Now, extend your test program by adding a second function named split that will identify all the individual values in a comma se
otez555 [7]

Answer:

The code to copy is :

#include <iostream>

#include <string>

using namespace std;

string nextString(string str, int start_index);

int split(string str, string a[], int max_size);

int main()

{

const int VALUES = 20;

string somestring;

string varray[VALUES];

//Prompt the user to enter a comma separated string

cout << "Enter a comma seperated string: ";

//read the string

getline(cin, somestring);

//call split() method on the given string and

//store the count of individual strings in cnt

int cnt = split(somestring, varray, VALUES);

//Print the individual strings

for (int i = 0; i<cnt; i++)

cout << varray[i] << endl;

return 0;

}

//returns a sub string that starts at strat_index

//in the given string and ends before a comma

string nextString(string str, int start_index)

{

int i;

//find a comma or end of the string, after strat_index

for (i = start_index;i < str.length();i++)

{

//if comma is found, exit the loop

if (str.at(i) == ',')

break;

}

//extract the sub string

string out= str.substr(start_index, i-start_index);

return out;

}

//splits the comma separted string as individual strings

//and returns the number of individual strings

int split(string str, string a[], int max_size)

{

int i, j;

int start_index = 0;

//search for commas in the given string

for (i = 0,j=0;i < str.length();i++)

{

//if comma is identified or end of the string is identified

//, then get a strig that starts at start_index using next string

if (str.at(i) == ',' ||i==str.length()-1)

{

//save each string into an array of strings

a[j] = nextString(str, start_index);

//update the next string starting postion(starts after comma)

start_index = i + 1;

j++;

}

}

return j;

Explanation:

Please see attachments

7 0
3 years ago
You are trying to create a user from the command line on a Linux computer. You get an error that permission is denied. What shou
Alisiya [41]

Answer:

preface the command with sudo

Explanation:

In the scenario being described, the best course of action would be to preface the command with sudo . This is because sudo is a program Linux operating system that allows the individual user to run programs with the security privileges of another user, which usually applies to the superuser. In this scenario, this would allow the user to bypass the error message and gain access to such a task.

5 0
3 years ago
Write an algorithm using pseudocode to input numbers . reject any numbers that are negative and count how many numbers are posit
True [87]

Answer:

Explanation:

Let's use Python for this. We will start prompting the user for input number, until it get 0, count only if it's positive:

input_number = Input("Please input an integer")

positive_count = 0

while input_number != 0:

    if input_number > 0:

         positive_count += 1

    input_number = Input("Please input an integer")

print(positive_count)

   

4 0
3 years ago
The formula to get the customer name for order 1004
klemol [59]

Please give brainiest. It would make my day.

Answer:

to get the customer name for order 1004, the formula is: =VLOOKUP(1004,B5:F9,4,FALSE) //

7 0
2 years ago
Other questions:
  • What are the differences between a trap (aka software interrupt) and an interrupt (hardware interrupt)? What is the use of each
    12·1 answer
  • Which of the following is true of how packets are sent through the internet?
    10·2 answers
  • You manage a small LAN for a branch office. The branch office has three file servers and few client workstations. You want to us
    14·1 answer
  • Assume phrase= "Peter Piper picked a peck of pickled peppers", What will be returned if phrase.search(/[aeiou]/) is called?
    9·1 answer
  • Student creates a Raptor program and uses the File Input and Output method to find the average of 5 test scores stored in a text
    5·1 answer
  • What is out put in a computer
    14·2 answers
  • What best describes "broadband access"?
    13·1 answer
  • Help plz
    10·1 answer
  • What are movies filmed before 1990's?
    14·1 answer
  • How can presentation software be used in a
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!