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
bonufazy [111]
3 years ago
8

Examine the following code and answer questions 7 below. IGNORE COMPILE ERRORS.

Computers and Technology
1 answer:
MaRussiya [10]3 years ago
6 0

Answer:

1 to 5 both included.

Explanation:

rand() is the function which is used to generate the random values within the range.

for example:

rand() % 10;

it means it generate the output from 0 to 9. if we add the 1 in the above code:

like 1 + (rand() % 10);

Then, the range is from 1 to 10, it increase the range from start and end as well.

in the question code, for loop is used to for executing statement 9 times.

rand() % 5  

it generate the number from 0 to 4.

and 1 + ( rand() % 5 ))

it generate the output from 1 to 5

Therefore, the answer is 1 to 5.

You might be interested in
Which type of element is , and what is the meaning of that element ?
tester [92]

Can you show a picture other than asking a question without context

6 0
4 years ago
Polls shows that most Americans....
Len [333]
I dont know whats the contexts behind this uestion but i think the answer is B
6 0
3 years ago
Downlad the file and write a program named Lab10b_Act2.py that does the following: Opens the CSV file for reading Reads the CSV
a_sh-v [17]
他們會不會是因為這樣就是說他們的問題,他們會會覺得委屈覺得我
5 0
3 years ago
How do u answer questions on brainly if ur on the app and on a phone. For me there is no answer button :(
Rudik [331]

Answer:

oh for me there is maybe try reloading?

Explanation:

8 0
3 years ago
If you want to start a convo go here<br> https://padlet.com/beighbay000/x0q2v6qrm46j
Setler [38]

Answer:

ok

Explanation:

thx for tha points

..........

6 0
3 years ago
Other questions:
  • Write a cout statement that prints the value of a conditional expression. The conditional expression should determine whether th
    7·1 answer
  • Which piece of information is most useful to an identity thief? *
    6·1 answer
  • Which description best describes how mass spectroscopy is useful in the field of forensic toxicology
    6·1 answer
  • Modify the Eggs program to create a new one named EggsInteractive that prompts the user for and accepts a number of eggs for eac
    13·1 answer
  • Which visual aid would help a group of veterinary students study a dog's anatomy?
    14·1 answer
  • How do I write a letter on my computer and print it?
    9·2 answers
  • Is it true or false 1-5
    13·1 answer
  • What is a new option in PowerPoint 2016 that provides the ability to add multiple pictures into a slide, complete with transitio
    7·2 answers
  • 1. Who is affected by electronic theft of a song?
    5·2 answers
  • The ________ networks operate close to the legitimate free hotspots and typically provide stronger signals
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!