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
Alchen [17]
3 years ago
6

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 newline. Ex:
5
7
Computers and Technology
1 answer:
jek_recluse [69]3 years ago
5 0

Answer:

The solution code is written in C language.

  1.    srand(seedVal);
  2.    printf(" %d \n", rand() % 9);
  3.    printf(" %d \n", rand() % 9);

Explanation:

srand() is a C library function which seeds the random number generator. The srand() function will take one unsigned integer, <em>seedVal</em>, as input parameter (Line 1).

We can print random integer between (and including) 0 and 9 by calculating the random number modulus by 9 (Line 2-3). This will ensure the final random number will also be between 0 and 9.

You might be interested in
What career opportunities are available within the floral industry?
Vsevolod [243]

Answer: The floral industry has quite an array of possible occupation pathways. You can do flower production, design, publishing, marketing, home design, engineering, retailing, commercial, research, and lots more.

6 0
3 years ago
Whereas &lt; is called a relational operator, x &lt; y is called a(n) ________. A) Arithmetic operator B) Relative operator C) R
Westkost [7]

Answer:

The answer is "Option C".

Explanation:

Relational expression are one or more variable and maybe even values, which operators have linked together. It is also known as the process, which is used to calculate the outcome, that is generated by the relational expression. These words are typically designed to answer the questions in boolean values, and other options were not correct, that can be described as follows:

  • In option A, This process is used to perform the mathematical operation, that's why it is not correct.
  • Option B and Option D both is used to compare values, that's why it is not correct.
3 0
3 years ago
____ lets you store your data remotely and access it with any device connected to the internet.
Gre4nikov [31]
Either iCloud or air drop
6 0
4 years ago
How do you use OneDrive
Lerok [7]
I think it's to back up files
7 0
3 years ago
In a function name, what should you use between words instead of whitespaces?
Tom [10]
2. Identify the function of computer hardware components 
3 0
3 years ago
Other questions:
  • What is the difference between deta security and privecy ?
    12·2 answers
  • A microphone is a type of electronic.<br><br> True/Faulse
    14·1 answer
  • How can you have a safe browser experience
    9·1 answer
  • Which of the following is NOT true of constructors? Question 6 options
    14·1 answer
  • Write a java program that accepts the ingredients for a recipe in cups and converts to ounces
    10·1 answer
  • Whixh options are available when a user modifies a recurring appointment. Check all that apply
    12·1 answer
  • What is an example of technology that helps support the idea of continental drift.
    15·1 answer
  • Window is a very popular operating system becouse of its _ environment .​
    14·2 answers
  • He should identify his various
    6·1 answer
  • I came here for a answer so why did i get a pep talk
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!