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
Andrej [43]
3 years ago
10

1. Declare a variable named num with an

Engineering
1 answer:
FrozenT [24]3 years ago
7 0

The code to

  • Declare a variable and increment with a while loop until the variable is not less than 5
  • Create a function that returns the product of two numbers
  • Uses the new keyword to create an array

were written in JavaScript and are found in the attached images

<h3>Declaring a variable</h3>

The first code declares a variable called num and gives it an initial value of 0. It then enters a while loop that lauches a message box (using <em>window.alert</em>) to print the message "<em>Keep going</em>" as long as num remains less than 5.

If nothing is done within the loop to increment num towards the value 5, the loop will go on endlessly notifying the user to "<em>Keep going</em>".

So, an increment of 1 was added to the loop body to increment the variable num. This makes sure the loop terminates.

<h3>Creating a function that returns the product of two numbers</h3>

Here, a function was created that receives two arguments (n1  and n2), then returns the product (n1 * n2)

<h3>Declaring an Array</h3>

This last code segment creates an array using the new keyword. The new keyword is generally used in constructing objects.

In this case the object constructed is an array having three strings;

  • my <em>first name</em>
  • my <em>nickname</em>, and
  • my <em>last name</em>

See another solved JavaScript problem here brainly.com/question/23610566

You might be interested in
S1.1 The Acre-Foot. Hydraulic engineers in the United States often use, as a unit of volume of water, the acre-foot, defined as
Mars2501 [29]

Answer:

1072 acre foot

1331424000 kg

Explanation:

1 feet has 12 inches, so 2 in is 0.167 feet.

1 km^2 has 1 million m^2.

1 acre is 4074 m^2.

So, 1 km is 247 acres.

Then 26 km^2 is 6422 acres.

So, the volume of water is

6422 * 0.167 = 1072 acre-foot

Since one cubic meter of water has 1000 kg

One inch is 25.4 mm = 0.0254 m

One feet is 12 * 0.0254 = 0.3048 m

An acre-feet has a volume of

4074*0.3048 = 1242 m^3

And that is a mass of water of

1242 * 1000 = 1242000 kg/acre-feet

Therefore the mass of rainwater in the town is of

1072 * 1242000 = 1331424000 kg = 1331424 tons

4 0
3 years ago
Which place does “ the home of your ancestors”? refer to?What is jada response to nia and emily disapproval
sp2606 [1]

The  place that does “ the home of your ancestors” refer to is Cobo Verde.

  • Jada response to Nia and Emily disapproval was that she feels guilty.

<h3>What is an ancestral home?</h3>

This is known to be a kind of a house, that  is seen in the village, or a place where a family must have lived in the past.

Note that in the above context, The  place that does “ the home of your ancestors” refer to is Cobo Verde.

  • Jada response to Nia and Emily disapproval was that she feels guilty.

earn more about guilty from

brainly.com/question/25713795

#SPJ1

7 0
2 years ago
3 cm of water evaporated from a 200-hectare vertical walled reservoir during 24 hours. Storm water was added to the reservoir at
ycow [4]

Answer:

water released through the bottom of the reservoir in 24 hrs is 1992 ha-cm

Explanation:

Given the data in the question;

A = 200 hectare =  2 × 10⁶ m²

water evaporated Ve = 2 × 10⁶ m² × 3 × 10⁻² = 60000 m³ { in 24 hrs }

Water added by storm in 24hrs Vi = 3 × 24 × 3600 = 259200 m³

now let water released be Vr

ΔV = V_ini - V_final = 0

Vi - Ve - Vr = 0

Vr = Vi - Ve

Vr = 259200 m³ - 60000 m³

Vr = 199200 m³ = 19920000 m² - cm

Vr = 1992 ha-cm

Therefore, water released through the bottom of the reservoir in 24 hrs is 1992 ha-cm

7 0
3 years ago
Q2: Determine the number of 8-inch-high by 8-inch-wide by 16-inch-long concrete blocks required to complete the wall in Figures
kiruha [24]

The image of the elevation and wall section is missing, so i have attached them.

Answer:

Number of concrete blocks = 1020 blocks

Number of lintel blocks = 240

Number of plain blocks = 780

Explanation:

First of all, we'll find the net area of the wall as follows:

The height of the wall is 17' - 4", so we need to convert it to ft, thus, h = 17' + (4/12)' = 17.33'

So, Gross wall area = 80′ × 17.333' = 1,387 ft²

From the image, there are 4 doors, thus, Area of doors = 4 × 10′ × 12′ = 480 ft²

Thus, Net area = Gross wall area - area of doors

Net area = 1,387 – 480 = 907 ft²

We are told that the block is 8 inches length by 16inches width. Thus, converting to ft; (8/12)ft by (16/12)ft.

So area of one block = (8/12) x (16/12) = 128/144 ft² = 0.88889 ft²

So, number of blocks per ft² = 1/0.88889 = 1.125 blocks

So, there are 1.125 blocks per ft²

Thus, Number of concrete blocks = 907 ft² × 1.125 blocks per ft² = 1,020 blocks

From the image attached, there are five rows of lintel blocks, located at 4′, 8′, 12′, 16′, and 17′-4″. The bottom three rows pass through the doors and are only a total of (80′ – (4 × 10′) ) = 40′ long .

The top two rows are 80′ long. Thus, there is 40 feet (4 × 10′) of lintel block above the doors.

Lintel blocks = (3 × 40′) + (2 × 80′) + 40′ = 320 ft

Number of Lintel blocks = 320′ × 12 in per ft / 16″ = 240 blocks

Number of Plain blocks = 1,020 blocks – 240 blocks = 780 blocks

3 0
3 years ago
The cable connecting the winch A to point B on the railroad car in figure is wound in at the constant rate of 2 m. When θ = 60◦
Crank

Answer:

This question comprises two independent parts, (a) and (b) (a) In the diagram below, the cable connecting the winch A with point B on the railway carriage is being wound in at a constant rate of 2 m/s. Determine, for the instant in time when the angle θ= 60° (i) The velocity vector of the railway carriage (ii) The acceleration vector of the railway carriage The radius of the winch can be considered negligible. (2 marks) (3 marks) (b) The diagram below shows two rotating ‘driving links, OA and BC, connected by a telescoping link AB. Determine the angular velocity vector of the telescoping link AB when it is in the position shown if the driving links have the angular velocities indicated in the diagram. 150 2 rad/s 45 165 Dimensions in millimeters 60 0 2 rad/s

7 0
3 years ago
Other questions:
  • Assume that an attacker knows that a user’s password is either p1 = abcd or p2 = bedg. Say the user encrypts his password using
    15·1 answer
  • It is desired to produce and aligned carbon fiber-epoxy matrix composite having a longitudinal tensile strength of 610 MPa. Calc
    8·1 answer
  • A medium-sized jet has a 3.8-m-diameter fuselage and a loaded mass of 85,000 kg. The drag on an airplane is primarily due to the
    14·1 answer
  • The pressure gage on a 2.5-m^3 oxygen tank reads 500 kPa. Determine the amount of oxygen in the tank if the temperature is 28°C
    15·1 answer
  • Which of the following identifies the three main steps in the design process of an engineer?
    13·1 answer
  • If the contact surface between the 20-kg block and the ground is smooth, determine the power of force F when t = 4 s. Initially,
    14·1 answer
  • The Greek alphabet has 24 distinct lowercase letters. How many bits are needed to be able to encode any single lowercase Greek l
    9·1 answer
  • . The job of applications engineer for which Maria was applying requires (a) excellent technical skills with respect to mechanic
    6·1 answer
  • What are creativity, leadership, &amp; time management examples of ?
    9·1 answer
  • The oxygen consumption of an activated sludge plant is 60 g O2/L.d for the degradation of
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!