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

Write the definition of a function printLarger, which has two int parameters and returns nothing. The function prints the larger

value of the two parameters to standard output on a single line by itself.
Engineering
1 answer:
vredina [299]4 years ago
7 0

Answer:

  1. #include <iostream>
  2. using namespace std;
  3. void printLarger(int a, int b){
  4.    
  5.    if(a > b){
  6.        cout<<a;
  7.    }else{
  8.        cout<<b;
  9.    }
  10. }
  11. int main()
  12. {
  13.    printLarger(4, 5);
  14.    return 0;
  15. }

Explanation:

The solution code is written in C++.

Firstly define a function printLarger that has two parameters, a and b with both of them are integer type (Line 5). In the function, create an if condition to check if a bigger than b, print a to terminal (Line 7-8). Otherwise print b (Line 9-10).

In the main program, test the function by passing 4 and 5 as arguments (Line 16) and we shall get 5 printed.  

You might be interested in
Match the scenario to the term it represents.
Ann [662]

Answer:

i nrfvewv

Explanation:

3 0
3 years ago
What is the function of a fixed resistor?
agasfer [191]

Answer:

  add resistance to a circuit

Explanation:

It depends on the design in which it is incorporated. A fixed resistor has many uses, including, but not limited to ...

  • dropping voltage
  • limiting current
  • contributing to a time delay
  • adjusting frequency response
  • eliminating (or creating) signal reflections
  • acting as a fuse
  • calibrating or trimming a response
  • providing protection against electrical shock or ESD
  • acting as a reference when measuring variable resistors
8 0
3 years ago
For which of 'water' flow velocities at 200C can we assume that the flow is incompressible ? a.1000 km per hour b. 500 km per ho
ad-work [718]

Answer:d

Explanation:

Given

Temperature=200^{\circ}\approc 473 K

Also \gamma for air=1.4

R=287 J/kg

Flow will be In-compressible when Mach no.<0.32

Mach no.=\frac{V}{\sqrt{\gamma RT}}

(a)1000 km/h\approx 277.78 m/s

Mach no.=\frac{277.78}{\sqrt{1.4\times 287\times 473}}

Mach no.=0.63

(b)500 km/h\approx 138.89 m/s

Mach no.=\frac{138.89}{\sqrt{1.4\times 287\times 473}}

Mach no.=0.31

(c)2000 km/h\approx 555.55 m/s

Mach no.=\frac{555.55}{\sqrt{1.4\times 287\times 473}}

Mach no.=1.27

(d)200 km/h\approx 55.55 m/s

Mach no.=\frac{55.55}{\sqrt{1.4\times 287\times 473}}

Mach no.=0.127

From above results it is clear that for Flow at velocity 200 km/h ,it will be incompressible.

5 0
3 years ago
Which of the following is NOT true about hydraulic systems?
Dmitry [639]

Answer: The answer is D

D.In hydraulic systems, the operating temperatures must be kept between 170�F and 180°F 

Explanation:

The operating temperature for hydraulic systems is 140°F and below. Anything above this temperature is too high and will reduce the useful life of hydraulic fluid.

Most often problems associated with hydraulic systems are caused by fluid contaminated with particulate matter.

7 0
3 years ago
Since the engineering design process may take the engineer back to its beginning, the process is considered ________
Valentin [98]

Answer:

Cyclical

Explanation:

I looked at the next question on edgenuity and it said it in the question.

7 0
3 years ago
Other questions:
  • A reversible refrigerator operates between a low temperature reservoir at TL and a high temperature reservoir at TH . Its coeffi
    12·1 answer
  • Explain the conductivity results observed for ionic compounds in the solid state and in aqueous solution.i.Solid ionic compounds
    12·1 answer
  • For this question, you will be provided with data related to the count of website sessions by day for the past one hundred days.
    6·1 answer
  • Select the right answer<br>​
    8·1 answer
  • A composite wall is composed of 20 cm of concrete block with k = 0.5 W/m-K and 5 cm of foam insulation with k = 0.03 W/m-K. The
    13·1 answer
  • When we say that communication is
    13·1 answer
  • Which of the following is a purpose of sports biomechanics?
    14·1 answer
  • a coiled spring is stretched 31.50 cm by a 2.00N weight. How far is it stretched by a 10.00 N weight?
    6·1 answer
  • Which step in the engineering design process does not come before building a<br> prototype?
    12·1 answer
  • You have three gear wheels a, b and c connected to each other,if you turn the first gear wheel "a" clockwise what will happen to
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!