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
Looking for new information is one reason you should do research for a speech.
ValentinkaMS [17]
The correct answer is False
4 0
3 years ago
Read 2 more answers
Explain the benefits of reading A vocabulary section at the beginning of a text
Zinaida [17]

Answer: Deatiled information

Explanation:

It helps the reader organize and sort information in the text. It provides detailed information about the content of the text. It prepares readers to look for new vocabulary as they read.

3 0
4 years ago
Read 2 more answers
Water flows in a tube that has a diameter of D= 0.1 m. Determine the Reynolds number if the average velocity is 10 diameters per
Cloud [144]

Answer:

a) Re_{D} = 111896.745, b) Re_{D} = 1.119\times 10^{-7}

Explanation:

a) The Reynolds number for the water flowing in a circular tube is:

Re_{D} = \frac{\rho\cdot v\cdot D}{\mu}

Let assume that density and dynamic viscosity at 25 °C are 997\,\frac{kg}{m^{3}} 0.891\times 10^{-3}\,\frac{kg}{m\cdot s}, respectively. Then:

Re_{D}=\frac{(997\,\frac{kg}{m^{3}} )\cdot (1\,\frac{m}{s} )\cdot (0.1\,m)}{0.891\times 10^{-3}\,\frac{kg}{m\cdot s} }

Re_{D} = 111896.745

b) The result is:

Re_{D}=\frac{(997\,\frac{kg}{m^{3}} )\cdot (10^{-6}\,\frac{m}{s} )\cdot (10^{-7}\,m)}{0.891\times 10^{-3}\,\frac{kg}{m\cdot s} }

Re_{D} = 1.119\times 10^{-7}

6 0
4 years ago
A closed, 0.4-m-diameter cylindrical tank is completely filled with oil (SG 0.9)and rotates about its vertical longitudinal axis
egoroff_w [7]

Answer: p_{B} - p_{A} = 28800 Pa or 28.8 kPa

Explanation: To determine the pressure of a liquid in a rotating tank,it is used:

p = \frac{p_{fluid}.w^{2}.r^{2} }{2} - γfluid . z + c

where:

p_{fluid} is the liquid's density

w is the angular velocity

r is the radius

γfluid.z is the pressure variation due to centrifugal force.

For this question, the difference between a point on the circumference and a point on the axis will be:

p_{B} - p_{A} = \frac{p_{fluid}.w^{2}.r_{B} ^{2} }{2} - γfluid.z_{B} - (\frac{p_{fluid}.w^{2}.r_{A} ^{2} }{2} - γfluid.z_{A})

p_{B} - p_{A} = \frac{p_{fluid}.w^{2}}{2} (r_B^{2} - r_A^{2} ) - γfluid(z_{B} -z_{A})

Since there is no variation in the z-axis, z = 0 and that the density of oil is 0.9.10³kg/m³:

p_{B} - p_{A} = \frac{p_{fluid}.w^{2}}{2} (r_B^{2} - r_A^{2} )

p_{B} - p_{A} = \frac{0.9.10^3.40^2}{2}(0.2^2 - 0)

p_{B} - p_{A} = 28800

The difference in pressure between two points, one on the circumference and the other on the axis is p_{B} - p_{A} = 28800 Pa or 28.8 kPa

8 0
3 years ago
HELP HELP HELP
Fantom [35]

Summary

Students learn about the variety of materials used by engineers in the design and construction of modern bridges. They also find out about the material properties important to bridge construction and consider the advantages and disadvantages of steel and concrete as common bridge-building materials to handle compressive and tensile forces.

This engineering curriculum aligns to Next Generation Science Standards (NGSS).

Engineering Connection

When designing structures such as bridges, engineers carefully choose the materials by anticipating the forces the materials (the structural components) are expected to experience during their lifetimes. Usually, ductile materials such as steel, aluminum and other metals are used for components that experience tensile loads. Brittle materials such as concrete, ceramics and glass are used for components that experience compressive loads.

Learning Objectives

After this lesson, students should be able to:

List several common materials used the design and construction of structures.

Describe several factors that engineers consider when selecting materials for the design of a bridge.

Explain the advantages and disadvantages of common materials used in engineering structures (steel and concrete).

Educational Standards

NGSS: Next Generation Science Standards - Science

Common Core State Standards - Math

International Technology and Engineering Educators Association - Technology

State Standards

Suggest an alignment not listed above

Subscribe

Get the inside scoop on all things TeachEngineering such as new site features, curriculum updates, video releases, and more by signing up for our newsletter!

PS: We do not share personal information or emails with anyone.

Email Address

First name (optional)

Last Name (optional)

Subscribe to TE Newsletter

Worksheets and Attachments

Strength of Materials Worksheet (doc)

Strength of Materials Worksheet (pdf)

Strength of Materials Worksheet Answers (doc)

Strength of Materials Worksheet Answers (pdf)

Strength of Materials Math Worksheet (doc)

Strength of Materials Math Worksheet (pdf)

Strength of Materials Math Worksheet Answers (doc)

Strength of Materials Math Worksheet Answers (pdf)

More Curriculum Like This

MIDDLE SCHOOL Activity

Breaking the Mold

Explanation:

pabrainlest Poe ty

8 0
3 years ago
Other questions:
  • Write a Python program that does the following. Create a string that is a long series of words separated by spaces. The string i
    14·1 answer
  • A 11.5 nC charge is at x = 0cm and a -1.2 nC charge is at x = 3 cm ..At what position or positions on the x-axis is the electric
    5·1 answer
  • Describe how you could achieve a high quality finish on your work​
    9·2 answers
  • (a) Design a lag compensation to meet the following specifications: The step response settling time is to be less than 5 sec, th
    10·1 answer
  • To measure the effective coefficient of friction in a bone joint, a healthy joint (and its immediate surroundings) can be remove
    14·1 answer
  • Who else ships it????????
    6·1 answer
  • Which examples demonstrate common Energy Generation work environments? Check all that apply.
    12·1 answer
  • Please help, I'm so confused I've never done this​
    6·1 answer
  • Which option identifies what would be best to use to illustrate Pablo’s ideas in the following scenario?
    14·1 answer
  • There are four people who want to cross a rickety bridge; they all begin on the same side. You have 17 minutes to get them all a
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!