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
Helen [10]
3 years ago
11

Which of the following expression yields an integer between 0 and 100, inclusive?

Engineering
1 answer:
enot [183]3 years ago
5 0

Answer:

B. (int)(Math.random() * 101)

Explanation:

The function designed as Math.random act as a floating-point of a pseudorandom number with the range between [0,1] which simply means that starting from 0 (inclusive) up to but with the exception of  1 (exclusive), which the design can now be scale to the preferred desired range.

Suppose, we needed 100 inclusive, we have 101 exclusive since we need to scale to 101.

You might be interested in
Vector A extends from the origin to a point having polar coordinates (7, 70ᵒ ) and vector B extends from the origin to a point h
yaroslaw [1]

Answer:

13.95

Explanation:

Given :

Vector A polar coordinates = ( 7, 70° )

Vector B polar coordinates = ( 4, 130° )

To find A . B we  will

A ( r , ∅ ) = ( 7, 70 )

A = rcos∅ + rsin∅

therefore ; A  = 2.394i + 6.57j

B ( r , ∅ ) = ( 4, 130° )

B = rcos∅ + rsin∅

therefore ;  B = -2.57i + 3.06j

Hence ; A .B

( 2.394 i + 6.57j ) . ( -2.57 + 3.06j ) = 13.95

8 0
3 years ago
Give two disadvantages of a moving coil Meter
Temka [501]
1.Only suitable for dc
2.more expensive than moving iron type
3. Easily damaged
7 0
2 years ago
What is 7/8 + 1/2 on a ruler
Ad libitum [116K]

Answer:

11/8

Explanation:

7/8+4/8=11/8 if you want it on a ruler you need to go online and type fraction to decimal converter and put in 11/8 into a decimal

8 0
3 years ago
Read 2 more answers
What is the most common injury caused by working with machines unsafely?
VladimirAG [237]

Answer:

heyooo!!!!!!

Burns and scarring.

hope this helps!!!!

Explanation:

8 0
3 years ago
Read 2 more answers
At 1 atm, nitrogen (N2) molecules become a liquid below 77 K. Thus the vapor pressure of liquid nitrogen is 1 atm at 77 K. Use t
Bogdan [553]
What did he sayyyyyyy
6 0
2 years ago
Other questions:
  • Your program should read from an input file, which will contain one or more test cases. Each test case consists of one line cont
    14·1 answer
  • An electric current of transports of charge. Calculate the time this took. Be sure your answer has the correct unit symbol and s
    5·1 answer
  • Here you go!!!!!!!!!!!!!!!!!1
    8·1 answer
  • A mercury thermometer has a cylindrical capillary tube with an internal diameter of 0.2 mm. If the volume of the thermometer and
    10·1 answer
  • How many sets of equations (V and M equations) would you need to describe shear and moment as functions of x for this beam? In o
    12·1 answer
  • A 150 MVA, 24 kV, 123% three-phase synchronous generator supplies a large network. The network voltage is 27 kV. The phase angle
    5·1 answer
  • A bolt is tightened, subjecting its shank to a tensile stress of 80 kpsi and a torsional shear stress of 50 kpsi at a critical p
    7·1 answer
  • A _______ contact allows current to flow when the switch's operator is not activated.?
    6·1 answer
  • Technician A says that the use of methanol in internal combustion engines has declined over the years. Technician B says that th
    10·1 answer
  • 1. Explain the term engine<br>compression​
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!