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
In the web address www.microsoft, the "" is the _____ meaning _____. A. B. C. D. Group of answer choices top-level domain (TLD);
Scilla [17]

In the web address www.microsoft.com, the ".com" is the ________ meaning ________.

Answer:

top-level domain (TLD); commercial enterprise

Explanation:

A website address can be divided into different levels of the domain. In the question above. "www" is the subdomain while the "microsoft" is the second-level domain and the "com" is the top-level domain.

However, there are different top-level domains, such as "com", " org", "co" etc. With each one of them representing different meanings.

Hence, in this case, "com" represents a commercial enterprise.

Therefore, In the web address www.microsoft.com, the ".com" is the TOP-LEVEL DOMAIN meaning COMMERCIAL ENTERPRISE.

3 0
3 years ago
Which of the following STEM discoverers developed a new type of computer hardware?
PSYCHO15rus [73]

Which of the following STEM discoverers is known for creating complex computational physics to develop computer models to simulate fluid movement?

Edison

Fedkiw

Gates

Hawking

Answer:

Fedkiw

Explanation:

Ronald Fedkiw is a professor at Stanford and also a STEM discoverer that is credited with developing a new type of computer hardware model which was used to simulate fluid movements.

His invention has helped him win various awards because it has helped professionals and technicians create visual effects for videos.

7 0
4 years ago
Describe how computer are used in ticket counter?​
m_a_m_a [10]

Answer:

These systems are commonly used in facilities such as public libraries to ensure equitable use of limited numbers of computers. Bookings may be done over the internet or within the library itself using a separate computer set up as a booking terminal.

6 0
3 years ago
Assuming auto-mdix is not supported, which of these devices would require a crossover cable when connecting to a router? (select
Black_prince [1.1K]

Devices that would require a crossover cable when connecting to a router are:

  • (B) Router
  • (D) Host (PC)

<h3>What is auto-MDIX?</h3>
  • A medium-dependent interface (MDI) in a computer network describes the interface (both physical and electrical/optical) between a physical layer implementation and the physical medium used to carry the transmission.
  • A medium-dependent interface crossover (MDI-X) interface is also defined by Ethernet over twisted pair.
  • Auto MDI-X ports on newer network interfaces detect whether the connection requires a crossover and select the appropriate MDI or MDI-X configuration to match the other end of the link.
  • If auto-MDIX is not supported, the router and host (PC) would require a crossover cable when connecting to a router.

Therefore, devices that would require a crossover cable when connecting to a router are:

  • (B) Router
  • (D) Host (PC)

Know more about auto-MDIX here:

brainly.com/question/14014890


#SPJ4

The correct question is given below:

Assuming Auto-MDIX is not supported, which of these devices would require a crossover cable when connecting to a router? (Select all correct answers.)

(A) Bridge

(B) Router

(C) Hub

(D) Host (PC)

(E) Switch

7 0
2 years ago
______-____ parameters provide a one-way link between actual parameters and formal parameters.
Oxana [17]

Answer:

Value

Explanation:

3 0
2 years ago
Other questions:
  • Zack is working on an assignment at school. He wants to save his work so he can take it home and complete it on his home compute
    13·1 answer
  • Match the terms related to the web with their explanations
    6·1 answer
  • On a chart created in excel, the horizontal axis is also called the ____.
    15·1 answer
  • What type of storage system is a hard drive on a computer?<br> Need HELP fast, please.
    9·2 answers
  • Write a C++ program that determines if a given string is a palindrome. A palindrome is a word or phrase that reads the same back
    6·1 answer
  • Which line of code will print Python is cool! on the screen?
    9·2 answers
  • explain the following with regard to a microcomputer. 1)program 2)stored program concept 3)instruction decoder
    5·1 answer
  • Which of the following is NOT an example of a crowdsourcing website?
    15·1 answer
  • Write a program that uses a custom function to return the cost of purchasing an item, possibly in multiple quantities. The item
    14·1 answer
  • An invisible path determining the way of travel from one place to another.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!