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
The section of the area to be examined is shown circumscribed by broken lines with circles at
Aloiza [94]

This question is about Circle Geometry. it evaluates connected and broken lines with respect to circles.

<h3>What is Circle Geometry?</h3>

This refers to the body of knowledge in mathematics that has to do with the various problems associated with the Circle.

In real-world scenarios, circle geometry is used in technologies involving:

  • Camera lenses
  • Circular Architectural structures
  • Steering Wheels
  • Buttons etc.

Learn more about Circle Geometry at:
brainly.com/question/24375372

3 0
3 years ago
Casein, a dairy product used in making cheese, contains 25% moisture when wet. A dairy sells this product for $40/100 kg. If req
Nataly_w [17]

Based on the percent moisture content of the dried product, the mass of dried casein produced os 852.3 kg.

<h3>What is the mass of casein in wet casein?</h3>

The mass of casein in 1000 Kg of wet casein is 75% 1000 kg = 750 Kg

Mass of water 250 kg

The mass of casein is constant while the moisture content can be changed.

At 12% moisture content;

750 kg = 88%%

100 % = 100 ×750/88 = 852.27 kg

Therefore, the mass of dried casein produced os 852.3 kg.

Learn more about mass at: brainly.com/question/24658038

#SPJ1

3 0
2 years ago
A container filled with a sample of an ideal gas at the pressure of 150 Kpa. The gas is compressed isothermally to one-third of
lyudmila [28]

Answer: c) 450 kPa

Explanation:

Boyle's Law: This law states that pressure is inversely proportional to the volume of the gas at constant temperature and number of moles.

P\propto \frac{1}{V}     (At constant temperature and number of moles)

P_1V_1=P_2V_2  

where,

P_1 = initial pressure of gas  = 150 kPa

P_2 = final pressure of gas  = ?

V_1 = initial volume of gas   = v L

V_2 = final volume of gas  = \frac{v}{3}L

150\times v=P_2\times \frac{v}{3}  

P_2=450kPa

Therefore, the new pressure of the gas will be 450 kPa.

7 0
4 years ago
a cantilever beam 1.5m long has a square box cross section with the outer width and height being 100mm and a wall thickness of 8
djverab [1.8K]

Answer:

a) 159.07 MPa

b) 10.45 MPa

c) 79.535 MPa

Explanation:

Given data :

length of cantilever beam = 1.5m

outer width and height = 100 mm

wall thickness = 8mm

uniform load carried by beam  along entire length= 6.5 kN/m

concentrated force at free end = 4kN

first we  determine these values :

Mmax = ( 6.5 *(1.5) * (1.5/2) + 4 * 1.5 ) = 13312.5 N.m

Vmax = ( 6.5 * (1.5) + 4 ) = 13750 N

A) determine max bending stress

б = \frac{MC}{I}  =  \frac{13312.5 ( 0.112)}{1/12(0.1^4-0.084^4)}  =  159.07 MPa

B) Determine max transverse shear stress

attached below

   ζ = 10.45 MPa

C) Determine max shear stress in the beam

This occurs at the top of the beam or at the centroidal axis

hence max stress in the beam =  159.07 / 2 = 79.535 MPa  

attached below is the remaining solution

6 0
3 years ago
A 10.2 mm diameter steel circular rod is subjected to a tensile load that reduces its cross- sectional area to 52.7 mm^2. Determ
VMariaS [17]

Answer:

The percentage ductility is 35.5%.

Explanation:

Ductility is the ability of being deform under applied load. Ductility can measure by percentage elongation and percentage reduction in area. Here, percentage reduction in area method is taken to measure the ductility.

Step1

Given:

Diameter of shaft is 10.2 mm.

Final area of the shaft is 52.7 mm².

Calculation:

Step2

Initial area is calculated as follows:

A=\frac{\pi d^{2}}{4}

A=\frac{\pi\times(10.2)^{2}}{4}

A = 81.713 mm².

Step3

Percentage ductility is calculated as follows:

D=\frac{A_{i}-A_{f}}{A_{i}}\times100

D=\frac{81.713-52.7}{81.713}\times100

D = 35.5%.

Thus, the percentage ductility is 35.5%.

5 0
3 years ago
Other questions:
  • Line layout is also called ......​
    5·1 answer
  • A 16-lb solid square wooden panel is suspended from a pin support at A and is initially at rest. A 4-lb metal sphere is shot at
    8·1 answer
  • The mechanical properties of a metal may be improved by incorporating fine particles of its oxide. Given that the moduli of elas
    5·1 answer
  • Who's your favorite singer and WHT your favorite song​
    11·2 answers
  • After the load impedance has been transformed through the ideal transformer, its impedance is: + . Enter the real part in the fi
    8·1 answer
  • A piston-cylinder apparatus has a piston of mass 2kg and diameterof
    12·1 answer
  • Arc blow typically occurs in steel and metals that contain iron.<br> True or false
    7·2 answers
  • What is name for grandmother in German?
    14·1 answer
  • WARNING:<br><br> when people put links in the answer it is a virus DO NOT DOWNLOAD IT
    15·2 answers
  • Which option distinguishes why the behaviors of the team in the following scenario are so important during the engineering desig
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!