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

5. Create a vector called to20 that goes from 1 to 20 (use the range notation). Now create a variable called end that goes from

40 to 50 (use the range notation). Now create a variable called to50 that combines to20, then the number 21 to 30 and then add thes end variable at the end. Now print the variable to50. It should output the numbers 1 through 30 and then 40 through 50, skipping 31-39.
Computers and Technology
1 answer:
Lady_Fox [76]3 years ago
8 0

Answer:

creating vector:

code:  

to20 <-c(1:20) #creating to20 vector

end <-c(40:50) #creating end vector

to50 <-c(to20,21:30,end) # creating to50 vector

print(to50) # printing to50 vector

Explanation:

You might be interested in
CALL NOW $+1-855-241-6569$ aol mail not working on windows ## aol desktop gold email not working||USA||**2020*
LenKa [72]

Answer:

extra 5 points lol

Explanation:

6 0
3 years ago
If i cl/ear ch/at hist/ory on group/me on my comp.uter will it clear it on my phone
leonid [27]

Answer: It is likely that this can happen.

Explanation:

If you really want to go the extra mile to clear it all, I may recommend that you clear it off the phone as well. Hope this helps.

6 0
2 years ago
Read 2 more answers
Int [] val = { 3, 10, 44 };
Shtirlitz [24]

Answer:

4) 3 11 44

Explanation:

Given data

int [] val = { 3, 10, 44 };

The total number of parameters of given array are 3, so total length of array is also 3.

The indexing of array starts with '0', Therefore the indexes of array with length zero are: {0,1,2}

The value of array at index 0 is = 3

similarly,

value at index 1 = 10

value at index 2 = 44

Here, Int i = 1 is storing the value '1' in integer variable i.

In addition to that, any value of index 'i' of an array is selected using array[i].

Therefore,

val[i] is selecting the value of array located at index '1' because i = 1.

val[i] = val[1] = 10

val[i]+1 is selecting the value of array located at index 'i' that is (1) and adding 1 to it

=> val[i] = 10

=> val[i]+1 = 10+1 = 11

Finally,

val[i] = val[i]+1; is copying the val[i]+1 = 11 to value placed at index 1 (10). Hence, the output would be {3 11 44}. So 4th option is correct.

6 0
3 years ago
Which of the following statements is true?
Free_Kalibri [48]
C, <span>Word processing can be used to create databases of information.</span>
7 0
3 years ago
Read 2 more answers
The _____________________ is the measure of how servers are condensed as a result of virtualization.
hodyreva [135]

Answer:

Consolidation ratio

Explanation:

Consolidation ratio within network infrastructure for Internet hosting, is the number of virtual servers that can run on each physical host machine.

5 0
2 years ago
Other questions:
  • The four functions of a computer are
    5·1 answer
  • Find the 65th percentile from the data. The data consist of class interval from 0-10, 10-20, 20-30, 30-40, 40-50, 50-60 and freq
    8·1 answer
  • What does NVRAM stand for
    8·2 answers
  • Which of the following journals is not aimed at the public as well as scientists?
    7·1 answer
  • How are a cell's content and format related?
    12·2 answers
  • Two or more computers that are linked together are called which of the following
    7·1 answer
  • Examine the following algorithm.
    9·1 answer
  • What is the most efficient way to prevent the spelling checker from repeatedly flagging a correctly spelled name in all of your
    5·1 answer
  • The IBM nine-track tapes that became the industry standard for storage for three decades had several sizes , the most common bei
    13·1 answer
  • Can you please help me with this crossword puzzle, I am having trouble with numbers 5 down and 22 across.
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!