The code to
Declare a variable and increment with a while loop until the variable is not less than 5Create a function that returns the product of two numbersUses the new keyword to create an arraywere written in JavaScript and are found in the attached images
Declaring a variableThe 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 window.alert) to print the message "Keep going" 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 "Keep going".
So, an increment of 1 was added to the loop body to increment the variable num. This makes sure the loop terminates.
Creating a function that returns the product of two numbersHere, a function was created that receives two arguments (n1 and n2), then returns the product (n1 * n2)
Declaring an ArrayThis 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 first namemy nickname, andmy last nameSee another solved JavaScript problem here https://brainly.com/question/23610566
A periodic digital waveform has a pulse width 25 and a period of 150 . Determine the frequency and the duty cycle
The frequency is 6.67 kHz and the duty cycle is:16.67%.
Frequency and duty cycle
Given:
Pulse width=25
Period=150
Frequency:
Frequency=1/(150×10^-6)
Frequency=1/0.00015
Frequency=6.666 kHz
Frequency=6.67 kHz (Approximately)
Duty cycle:
Duty cycle=(25×10^-6)/ (150×10^-6)×100%
Duty cycle=16.67%
Therefore the frequency is 6.67 kHz and the duty cycle is:16.67%.
Learn more about Frequency and duty cycle here:https://brainly.com/question/16030651
#SPJ1
For flow of a liquid metal through a circular tube, the velocity and
temperature profiles are u(r)=2Um[1-(r/ro)2] and T(r) - Ts
= C2 [1 – (r/r0)2],respectively, where C2 is constant. What is the value of the Nusselt
number NuD at this location?
Answer:
Known: Form of the velocity and temperature profiles at a particular axial location for flow in a circular tube. Find: Nusselt number at the prescribed.
Explanation:
9. An automobile's oxygen sensor output needs
to be checked. Technician A uses a digital
voltmeter to check this sensor's output.
Technician B uses an analog ohmmeter to
check this sensor's output. Who is right?
(A) A only.
(B) B only.
(C) Both A and B.
(D) Neither A nor B.
Answer:
the answer is Letter C
Explanation:
DON'T TRULY TRUST ME PLEASE..
All forms of energy can be transformed into what form of energy, often times as waste?
Determine the mass density of an oil if 0.3 tonnes of the oil occupies a volume of 4m.
Answer:
Do you mean 4m^3 and 3.0 tones?
Explanation:
solution:
Mass = m = 3.0 tones
- 1 ton = 1,000 kg
= 3.0 × 1,000
= 3,000 kg
volume = v = 4m^3
Required:
Mass density of oil = p = ?
We know that;
[tex]p = \frac{mass}{volume} = \frac{m}{v} = \frac{3000}{4} = 750kg |m^{3} ans [/tex]
The answer is:
750kg / m^3
A double-threaded Acme stub screw of 2-in. major diameter is used in a jack having a plain thrust collar of 2.5-in. mean diameter. Coefficients of running friction are estimated as 0.10 for the collar and 0.11 for the screw.
a. Determine the pitch, lead, thread depth, mean pitch diameter, and lead angle of the screw
b. Estimate the starting torque for raising and for lowering a 5000-lb load.
c. What is the efficiency of the jack when raising the load?
d. Would the screw overhaul if a ball thrust bearing of negligible friction were used in place of the plain thrust washer?
In a modern industrial plant the most likely polyphase power system in use is a/an blank system
Answer:
three-phase
Explanation:
2-phase, 3-phase, and 6-phase systems are in use. The most common of these is 3-phase.
A modern industrial plant most likely uses a 3-phase system.
__
Additional comment
Serious research began on 6-phase power transmission systems in 1973. They have been shown to increase power transfer, and to reduce corona, magnetic fields, and audio noise compared to 3-phase systems. However, they are not in widespread industrial use.