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
Darya [45]
3 years ago
7

What are the functions of each computer program

Engineering
1 answer:
Ludmilka [50]3 years ago
4 0
A function is a block of organized, reusable code that is used to perform a single, related action. Functions provide better modularity for your application and a high degree of code reusing. ... Different programming languages name them differently, for example, functions, methods, sub-routines, procedures, etc.
You might be interested in
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
3 years ago
suppose we number the bytes in a w-bit word from 0 (less significant) to w/8-1 (most significant). write code for the followign
sammy [17]

Solution:

typedef  unsigned  char  *byte_pointer;

static int  int_of_bit  (byte_pointer x,  int  loc)

{

                  return(x[loc] << loc*8);

}  

static int  replace_byte(unsigned int a,  int loc,  unsigned int  b)

    unsigned int a_loc = int_of_bit((byte_pointer) &a ,  loc);

    unsigned int b_loc = (b  <<  loc*8);

 

     a  -=  a_loc;

      a  += b_loc;

      return a;

}

Explanation:

This takes two ints in hex format, one with 8 bits (0x00000000) and one with 2 bits (0x00) then places the 2 bit hex into the 8 bit at a given location.

EX:  replace_byte(0x00000000, 1, 0xFF) return 0x0000FF00

First thing first, it looks like you have some mixup:

" one with 8 bits (0x00000000) and one with 2 bits (0x00)*- what you mean is nibble not bits. Each hex character (0-9, A-F) represent 4 bits (16 possible combination), and is called a "nibble".

0x0000000 is 4 bytes. 0x00 is 2 bytes.

Next, you say "takes two ints in hex format" - your function takes two ints in any format. You're just choosing tp express them in hexidecimal. C++ doesn't care if you specify numbers in hex, decimal, octal, binary, etc.

8 0
4 years ago
A(n) ___ is an electric device that uses electromagnetism to change (step up or step down) AC voltage from one level to another.
Pie

Answer:

A transformer is an electric device that uses electromagnetism to change voltage from one level to another or to isolate one voltage from another.

7 0
3 years ago
Define engineer with work field​
Andrew [12]

Answer:

If you're talking about a field engineer then here is the basic description of their job.

Explanation:

They usually inspect and install equipment, direct workers, and report project status. They are in charge of making sure everything works smoothly. Engineers who work in the field oversee projects and are usually traveling.

5 0
3 years ago
Pls help and solve this problem. I don't have an idea to solve this.
lions [1.4K]

Answer:

MIS HIEVOSTES bbbbbbbbbbbb MIS HUEVOTES

7 0
3 years ago
Other questions:
  • Air at 80 kPa and 10°C enters an adiabatic diffuser steadily with a velocity of 150 m/s and leaves with a low velocity at a pre
    11·1 answer
  • A study of online dating found that when including emoticons in their profiles, response rates for female users _______ by _____
    15·1 answer
  • An incompressible fluid flows along a 0.20-m-diameter pipe with a uniform velocity of 3 m/s. If the pressure drop between the up
    15·1 answer
  • The stream function for a certain incompressible flow field is given by the expression ψ = −Ur sinθ+qθ=2π. Obtain an expres- sio
    5·2 answers
  • Suppose that we have a 1000pF parallel-plate capacitor with air dielectric charged to 1000V. The capacitor terminals are open ci
    5·1 answer
  • A cylindrical metal specimen having an original diameter of 12.8 mm (0.505 in.) and gauge length of 50.80 mm (2.000 in.) is pull
    9·1 answer
  • Consider the following statement, which is intended to create an ArrayList named a to store only elements of type Thing. Assume
    9·1 answer
  • . A fire hose with an inside diameter of 6.40 cm is connected to a water hydrant very close to the ground. The other end is atta
    8·1 answer
  • Choose the correct word or phrase to complete the sentence to explain human intervention in a machine system.
    13·1 answer
  • Please help me. I have no idea what I'm doing.​
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!