answer.
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
saw5 [17]
2 years ago
4

Find the error in the following preudocode.Constant Real GRAVITY = 9.81 Display "Rates of acceleration of an object in free fall

:" Display "Earth: ", GRAVITY, " meters per second every second." Set GRAVITY = 1.63 Display "Moon: ", GRAVITY, " meters per second every second."
Engineering
1 answer:
bonufazy [111]2 years ago
5 0

Answer:

It is attempting to change the value of a constant.

Explanation:

In this pseudocode program "GRAVITY" is declared as a constant value, therefore it cannot be changed during runtime. If you tried mo write this code in a real language and compile it you would get a compilation error because of that forbidden operation.

You might be interested in
Tech A says that proper footwear may include both leather and steel-toed shoes. Tech B says that when working in the shop, you o
olga55 [171]

Answer:

Tech A is correct.

Explanation:

If a person is doing something dangerous in a shop, he should wear safety glasses to protect his eyes from danger and also wear leather shoes to protect himself from any electric shock. Leather boots will disconnect a person with direct earth and therefore he can save himself if he gets a electric shock.

6 0
2 years ago
A group of statisticians at a local college has asked you to create a set of functions that compute the median and mode of a set
iVinArrow [24]

Answer:

Functions to create a median and mode of a set of numbers

Explanation:

def median(list):

   if len(list) == 0:

       return 0

   list.sort()

   midIndex = len(list) / 2

   if len(list) % 2 == 1:

       return list[midIndex]

   else:

       return (list[midIndex] + list[midIndex - 1]) / 2

def mean(list):

   if len(list) == 0:

       return 0

   list.sort()

   total = 0

   for number in list:

       total += number

   return total / len(list)

def mode(list):

   numberDictionary = {}

   for digit in list:

       number = numberDictionary.get(digit, None)

       if number == None:

           numberDictionary[digit] = 1

       else:

           numberDictionary[digit] = number + 1

   maxValue = max(numberDictionary.values())

   modeList = []

   for key in numberDictionary:

       if numberDictionary[key] == maxValue:

           modeList.append(key)

   return modeList

def main():

   print "Mean of [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]: ", mean(range(1, 11))

   print "Mode of [1, 1, 1, 1, 4, 4]:", mode([1, 1, 1, 1, 4, 4])

   print "Median of [1, 2, 3, 4]:", median([1, 2, 3, 4])

main()

3 0
2 years ago
Read 2 more answers
An excited electron in an Na atom emits radiation at a wavelength 589 nm and returns to the ground state. If the mean time for t
11Alexandr11 [23.1K]

Answer:   Inherent width in the emission line: 9.20 × 10⁻¹⁵ m or 9.20 fm

                length of the photon emitted: 6.0 m

Explanation:

The emitted wavelength is 589 nm and the transition time is ∆t = 20 ns.

Recall the Heisenberg's uncertainty principle:-

                                 ∆t∆E ≈ h ( Planck's Constant)

The transition time ∆t corresponds to the energy that is ∆E

E=h/t = \frac{(1/2\pi)*6.626*10x^{-34} J.s}{20*10x^{-9} } = 5.273*10x^{-27} J =  3.29* 10^{-8} eV.

The corresponding uncertainty in the emitted frequency ∆v is:

∆v= ∆E/h = (5.273*10^-27 J)/(6.626*10^ J.s)=  7.958 × 10^6 s^-1

To find the corresponding spread in wavelength and hence the line width ∆λ, we can differentiate

                                                    λ = c/v

                                                    dλ/dv = -c/v² = -λ²/c

Therefore,

      ∆λ = (λ²/c)*(∆v) = {(589*10⁻⁹ m)²/(3.0*10⁸ m/s)} * (7.958*10⁶ s⁻¹)

                                 =  9.20 × 10⁻¹⁵ m or 9.20 fm

     The length of the photon (<em>l)</em> is

l = (light velocity) × (emission duration)

  = (3.0 × 10⁸  m/s)(20 × 10⁻⁹ s) = 6.0 m          

                                                   

6 0
2 years ago
The ingredient weights for making 1 yd (cyd) of concrete by assuming aggregates in SSD state are given below. The volume of air
Pachacha [2.7K]

Answer:

Explanation:

Ans) Given batch weight of each component :

Cement = 700 lb

Water = 315 lb

Coarse aggregate = 1575 lb

Fine aggregate = 1100 lb

Part 1) Amount of water = 328.5 lb

Amount of water is needed to be increased if the aggregates has absorption capacity, To maintain constant water cement ratio, the mixing water is increased because some of the water is absorbed by aggregates.

Amount of water absorbed = 328.5 lb - 315 lb = 13.5 lb

Total amount of aggregates = 1575 + 1100 = 2675 lb

=> % Absorption capacity = 13.5 x 100 / 2675 = 0.5 %

Hence, new amount of Coarse aggregate = (1 - 0.005) x 1575 lb = 1567.125 lb

New amount of fine aggregate = (1 - 0.005) x 1100 = 1094.5 lb

Since, water cement ratio is maintained constant , amount of cement remains unchanged

=> Volume of water = 328.5 / 62.4 = 5.26 ft3

=> Volume of cement = 700 / (3.15 x 62.4) = 3.56 ft3

=> Volume of coarse aggregate = 1567.125 / (2.4 x 62.4) = 10.46 ft3

=> Volume of fine aggregate = 1100 / (2.4 x 62.4) = 7.34 ft3

Volume of air = 2% = 0.02 x 27 = 0.54 ft3

Total concrete volume = 5.26 + 3.56 + 10.46 + 7.34 + 0.54 \approx 27 ft3 = 1 yd3

Hence, calculated amount of each component is correct

Part 2) We know, minus sign indicated that the aggregate will absorb some moisture from concrete, hence mixing water amount needed to be corrected .

=> Amount of water absorbed by coarse aggregate = 0.01 x 1567.125 lb = 15.67 lb

=> Amount of water absorbed by fine aggregate = 0.02 x 1094.50 lb = 21.89 lb

Total amount of water absorbed = 15.67 + 21.89 = 37.56 lb

To maintain same water cement ratio, amount of mixing water is needed to be increased

=> Corrected amount of mixing water = 328.5 lb + 37.56 lb = 366 lb

=> Corrected amount of coarse aggregate = (1 - 0.01) x 1567.125 = 1551.45 lb

=> Corrected amount of fine aggregate = (1 - 0.02) x 1094.5 = 1072.6 lb

Part 3) We know,

Unit weight = Sum of weight of each material / Total volume

=> Sum of weight = 366 + 700 + 1551.45 + 1072.6 = 3690.05 lb

Total volume = 1 yd3 or 27 ft3

=> Expected Unit Weight = 3690.05 lb / 27 ft3 = 136.67 lb/ft3

Also, Concrete Yield = Weight of all components / Unit weight of concrete

=> Yield = 3690.05 / 136.67 = 27 ft3 or 1 yd3

4 0
2 years ago
The closed tank of a fire engine is partly filled with water, the air space above being under pressure. A 6 cm bore connected to
skelet666 [1.2K]

Answer:

The air pressure in the tank is 53.9 kN/m^{2}

Solution:

As per the question:

Discharge rate, Q = 20 litres/ sec = 0.02\ m^{3}/s

(Since, 1 litre = 10^{-3} m^{3})

Diameter of the bore, d = 6 cm = 0.06 m

Head loss due to friction, H_{loss} = 45 cm = 0.45\ m

Height, h_{roof} = 2.5\ m

Now,

The velocity in the bore is given by:

v = \frac{Q}{\pi (\frac{d}{2})^{2}}

v = \frac{0.02}{\pi (\frac{0.06}{2})^{2}} = 7.07\ m/s

Now, using Bernoulli's eqn:

\frac{P}{\rho g} + \frac{v^{2}}{2g} + h = k                  (1)

The velocity head is given by:

\frac{v_{roof}^{2}}{2g} = \frac{7.07^{2}}{2\times 9.8} = 2.553

Now, by using energy conservation on the surface of water on the roof and that in the tank :

\frac{P_{tank}}{\rho g} + \frac{v_{tank}^{2}}{2g} + h_{tank} = \frac{P_{roof}}{\rho g} + \frac{v_{tank}^{2}}{2g} + h_{roof} + H_{loss}

\frac{P_{tank}}{\rho g} + 0 + 0 = \0 + 2.553 + 2.5 + 0.45

P_{tank} = 5.5\times \rho \times g

P_{tank} = 5.5\times 1\times 9.8 = 53.9\ kN/m^{2}

4 0
2 years ago
Other questions:
  • A joining process in which a filler metal is melted and distributed by capillary action between faying surfaces, the base metals
    12·1 answer
  • Prompt the user to enter five numbers, being five people's weights. Store the numbers in an array of doubles. Output the array's
    11·2 answers
  • The critical resolved shear stress for iron is 27 MPa (4000 psi). Determine the maximum possible yield strength for a single cry
    12·1 answer
  • One mole of iron (6 1023 atoms) has a mass of 56 grams, and its density is 7.87 grams per cubic centimeter, so thecenter-to-cent
    15·1 answer
  • Can crushers help us recycle in a space efficient way which is good for saving the earth and for giving you more room in your ap
    7·1 answer
  • The mass fractions of a mixture of gases are 15 percent nitrogen, 5 percent helium, 60 percent methane, and 20 percent ethane. T
    9·1 answer
  • 49. A solenoid coil with a resistance of 30 ohms and an inductance of 200 milli-henrys, is connected to a 230VAC, 50Hz supply. D
    8·1 answer
  • An airplane in level flight at an altitude h and a uniform speed v passes directly over a radar tracking station A. Calculate th
    5·1 answer
  • Why is data driven analytics of interest to companies?
    9·1 answer
  • Problema sobre programacion orientada a objetos!!
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!