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
Over [174]
3 years ago
5

Type a statement using srand() to seed random number generation using variable seedVal. Then type two statements using rand() to

print two random integers between (and including) 0 and 9. End with a newline. Ex: 5 7 Note: For this activity, using one statement may yield different output (due to the compiler calling rand() in a different order). Use two statements for this activity. Also, after calling srand() once, do not call srand() again. (Notes)

Engineering
1 answer:
liq [111]3 years ago
4 0

Answer:

View Image

Explanation:

No number is really ever random. It all has a seed, which is an initial value for the 'random' number to be generated. The rand() function uses an equation to  generate its value, and all its 'random' value depend on the first number you plug in into your equation. The initial number you plug into your equation is what srand() do.

If you just call rand() alone without calling srand() then the generated numbers will automatically use srand(1) as a default seed. Using the same srand() value will always yield the same sequence of numbers.

To get a number between 0 and 9, take the modulus of it with 10 because modulus give you the remainder, so the number rand()%10 will never be equal to 10 or greater.

You might be interested in
99 POINTS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
qwelly [4]

Answer:

1. Can you tell me something about yourself?

2. What are you weaknesses?

3. If you would describe yourself in one word?

Explanation: Those questions above 1, 2, and 3 are not harmful to ask your client. Bit the last two 4 and 5 are very harmful, because you don't need to be all up in they business and you don't want to put a lot of pressure on your client.

Hope this helps☝️☝☝

7 0
4 years ago
Read 2 more answers
please help me answer 3 of these questions in complete sentences. this is ccrd 1 related to jobs and college. thanks so much if
Kitty [74]

Answer:

1. Work is a driving force of identity in your life, whether its because it influences you due to the time spent there. Or its truly a passion of yours.

2. Two main aspects of identity development are self-concept and self-esteem

3. Based on you obviously

Hope this helped!

Explanation:

5 0
3 years ago
What is the difference between a refrigeration cycle and a heat pump cycle?
sukhopar [10]

Answer:

In refrigeration cycle heat transfer from inside refrigeration

In heat pump cycle heat transfer from environment

Explanation:

heat cycle is mechanical process use for cool the temperature but

In refrigeration heat transfer from inside of refrigeration that decrease temperature of refrigerator and in heat pump it decrease temperature negligible as compare to refrigerator

5 0
3 years ago
DO you of you guys know about Any Anmial rights it is for a resercah project
gizmo_the_mogwai [7]

Explanation:

Sure! I'll give you the definition to start off-

The right of animals to be free from exploitation, domination and abuse by humans. Free-living Animals & Their Environment; To live free, animals need a place to live. Wildlife Law Program; The Wildlife Law Program focuses on the defense of wildlife and their habitats throughout the world.

Here are some examples of companies for Animal Advocates for inspiration.

PETA – People for the Ethical Treatment of Animals

International Fund for Animal Welfare – IFAW

Cincinnati Zoo & Botanical Garden

Here are some of the basic rights of animals.

- No experiments on animals.

- No breeding and killing animals for food or clothes or medicine.

- No use of animals for hard labor.

- No selective breeding for any reason other than the benefit of the animal.

- No hunting.

- No zoos or use of animals in entertainment.

4 0
3 years ago
I really need help ASAP!!!
ValentinkaMS [17]

Explanation:

He would work on the thing like in the method you work on your question.

8 0
3 years ago
Other questions:
  • A furnace wall is to be built of 20-cm firebrick and building (structural) brick of same thickness. The thermal conductivities o
    14·1 answer
  • What type of footwear protects your toes from falling objects and being crushed?
    6·2 answers
  • Plz answer all of these questions!
    15·1 answer
  • (a) The lattice constant of GaAs is 5.65 Å. Determine the number of Ga atoms andAs atoms per cm 3 .
    15·1 answer
  • What is the value of the energy (in Joules) stored by the mobile phone battery (capacity of 1.8 Ah), if it is rated at 3.7 V
    15·2 answers
  • How many astronauts work<br> in the International Space Station
    7·1 answer
  • What are the relevance of report writing
    9·1 answer
  • PLS :(((( HELP HELPPPP
    13·1 answer
  • What is the minimum clamp time for gluing a panel?
    7·1 answer
  • when a unit load is secured to a pallet, it is more difficult for pilferage to take place. true false
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!