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
Svet_ta [14]
4 years ago
12

Create an application named NumbersDemo whose main() method holds two integer variables. Assign values to the variables. In turn

, pass each value to methods named displayTwiceTheNumber(), displayNumberPlusFive(), and displayNumberSquared().
Engineering
1 answer:
Mashcka [7]4 years ago
4 0

Answer:

The solution code is written in C++.

  1. int main() {
  2.    int a = 5;
  3.    int b = 4;
  4.    displayTwiceTheNumber(a);
  5.    displayTwiceTheNumber(b);
  6.    displayNumberPlusFive(a);
  7.    displayNumberPlusFive(b);
  8.    displayNumberSquared(a);
  9.    displayNumberSquared(b);
  10.    return 0;
  11. }
  12. void displayTwiceTheNumber(int num){
  13.    cout << num * 2;
  14. }
  15. void displayNumberPlusFive(int num){
  16.    cout << num + 5;
  17. }
  18. void displayNumberSquared(int num){
  19.    cout << num * num;
  20. }

Explanation:

Firstly, create two integer variables, <em>a</em> and <em>b and </em>two sample values are assigned to the two variables, respectively (Line 3-4). Next, we pass the value of each variable <em>a</em> and <em>b</em> to the methods named <em>displayTwiceTheNumber(), displayNumberPlusFive(),</em> and <em>displayNumberSquared() </em>(Line 6- 13).

You might be interested in
A hair dryer is basically a duct of constant diameter in which a few layers of electric resistors are placed. A small fan pulls
Inessa05 [86]

Answer:

the percent increase in the velocity of air is 25.65%

Explanation:

Hello!

The first thing we must consider to solve this problem is the continuity equation that states that the amount of mass flow that enters a system is the same as what should come out.

m1=m2

Now remember that mass flow is given by the product of density, cross-sectional area and velocity

(α1)(V1)(A1)=(α2)(V2)(A2)

where

α=density

V=velocity

A=area

Now we can assume that the input and output areas are equal

(α1)(V1)=(α2)(V2)

\frac{V2}{V1} =\frac{\alpha1 }{\alpha 2}

Now we can use the equation that defines the percentage of increase, in this case for speed

i=(\frac{V2}{V1} -1) 100

Now we use the equation obtained in the previous step, and replace values

i=(\frac{\alpha1 }{\alpha 2} -1) 100\\i=(\frac{1.2}{0.955} -1) 100=25.65

the percent increase in the velocity of air is 25.65%

6 0
3 years ago
A. A compound gear train is composed of four gears: E,F,G,H. Gear E has 15 teeth and is meshed with gear F. Gear F has 25 teeth
cricket20 [7]

Answer:

What subject is this in?? That would help a lot knowing

Explanation:

5 0
3 years ago
Storing parts outside doesn't cause any environmental risks as long as the items are covered.
telo118 [61]

Answer:

False

Explanation:

3 0
3 years ago
Read 2 more answers
If copper (which has a melting point of 1085°C) homogeneously nucleates at 849°C, calculate the critical radius given values of
____ [38]

Answer:

The critical radius is -1.30 nm

Explanation:

Temperature for homogenous nucleation of copper, T_{H} = 849^{0} C = 849 + 273 = 1122 K

Melting point of copper, T_{cu} = 1085^{0} C = 1085 + 273 = 1358 K

Latent heat of fusion, H_{f} = -1.77 * 10^{9} J/m^{3}

Surface free energy, \gamma = 0.200 J/m^{2}

Critical radius, r = ?

The formula for the critical radius is given by:

r = \frac{2 \gamma T_{cu} }{H_{f}(T_{cu} - T_{H})  }

r = \frac{2 * 0.2*1358 }{(-1.77 * 10^{9}) (1358 - 1122)  }

r = \frac{543.2 }{(-1.77 * 10^{9}) 236}\\r = -1.30 * 10^{-9} m\\r = -1.30 nm

The critical radius is -1.30 nm

8 0
4 years ago
Which of the following statements is not necessarily true for a well-arranged floor plan?
lorasvet [3.4K]

A well arranged floor plan is one that optimises the given floor area. Floor plans are useful to help design furniture layout, wiring systems, and much more. Option B is the answer, since it does not meet the standard of a plan

<h3>What is a Floor Plan?</h3>

A floor plan is a scaled diagram of a room or building viewed from above. The floor plan may depict an entire building, one floor of a building, or a single room. It may also include measurements, furniture, appliances, or anything else necessary to the purpose of the plan.

<h3>Other properties of a floor plan are:</h3>
  1. Maximize the property
  2. Utilize space effectively
  3. Accessibility
  4. Flexibility
  5. Functionality
  6. Maximize the use of light
  7. Attention to size
  8. Fitting to your lifestyle

Learn more:

brainly.com/question/25057316

4 0
3 years ago
Other questions:
  • Some of the wiring under the hood of a hybrid electric vehicle is encased in bright orange covering. That indicates a
    11·1 answer
  • Coils of various dimensions designed to introduce specified amounts of inductance into a circuit are called (a) semiconductors (
    11·1 answer
  • Why is it important to use the proper line types? ( In five sentences) pls i need help!! #enginering
    6·1 answer
  • Suppose a consumer advocacy group would like to conduct a survey to find the proportion p of consumers who bought the newest gen
    14·1 answer
  • A 10-mm steel drill rod was heat-treated and ground. The measured hardness was found to be 290 Brinell. Estimate the endurance s
    14·1 answer
  • A drilling operation is to be performed with a 12.7 mm diameter drill on cast iron. The hole depth is 60 mm and the drill point
    13·1 answer
  • 4. Porcelain enamel is sometimes referred to as A. "glass lining" B. kaolin C. vitreous enamel D. Both A and C.
    10·1 answer
  • A rigid insulated tank is divided into 2 equal compartments by a thin rigid partition. One of the compartments contains air, ass
    5·1 answer
  • What can be used to measure the alcohol content in gasoline? A. Graduated cylinder B. Electronic tester C. Scan tool D. Either a
    5·1 answer
  • Two solid yellow center lines on a two-lane highway indicate:
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!