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
Consider flow in between two parallel plates located a distance H from each other. Fluid flow is driven by the bottom plate movi
katrin2010 [14]
Wow I don’t
Know but I would
Help you
8 0
3 years ago
A voltage regulator is to provide a constant DC voltage Vl=10V to a load Rl from a nominal Vcc=15V supply voltage. The load can
Luden [163]

Answer:

Beta values can be from the equation=change in Vcc/nominal Vcc

Beta=16-3/15=3/15=1/5=0.20

Maximum power=I^2*R=40 W

7 0
3 years ago
Match the types of AI to the correct automation tasks.
Maru [420]

Answer:

Theory of Mind : A robotic head has a face that recognizes and simulates emotions.

Self aware : A robot tries to protect itself from harm

Purely Reactive : A door automatically opens when a person steps in front of it.

Limited Memory : A personal assistant software tracks a persons travel routes and suggests shorter routes.

Explanation:

Artificial intelligence is simply a technology which enables automation. It enables system perform task without being explicitly controlled. Purely reactive systems do not store Data in memory, it simply observes what going on at the moment which is what it was programmed to do and takes a step. One the machine detects someone approaching up to a certain distance, it opens.

Limited Memory systems store information about the past and this enhances its Decison making, prediction engines, self driving cars use this kind of artificial intelligence.

Theory of Mind : Here, systems are trained to detect, understand and replicate what is understood. Once the robot identifies an emotion, it replicates it.

Self - Aware : An advanced level of AI, where systems will not only be able to replicate what they see, but also make conscious decisions as to which action to take in different circumstances.

5 0
3 years ago
Can somebody help me with that
skelet666 [1.2K]

Answer:

I think it's 23 ohms.

Explanation:

Not entirely sure about it.

hope this helps

4 0
3 years ago
Select the four parts of the plasma system that
Mandarinka [93]

Answer:

Power

pressure

cup

Temperature

Explanation:

6 0
3 years ago
Other questions:
  • ANSWER FAST AND I WILL GIVE BRAINLIEST What is the measurement of this square?
    11·1 answer
  • A pump is used to deliver water from a lake to an elevated storage tank. The pipe network consists of 1,800 ft (equivalent lengt
    10·1 answer
  • A piece of corroded metal alloy plate was found in a submerged ocean vessel. It was estimated that the original area of the plat
    8·1 answer
  • Write a CPP program that prompts the user to enter the number of lines and generates the following pattern of stars. If the nonn
    15·1 answer
  • A cold-rolled sheet metal that is 40 mm wide and has a thickness of 5.00 mm is going to be bent into a V shape with a 60° angle.
    7·1 answer
  • When storing used oil, it needs to be kept in ___________ containers. A) MetalB) PlasticC) UncoveredD) Leakproof
    12·1 answer
  • 1. Technician A says an automotive computer can scan its input and output circuits to detect incorrect voltage problems. Technic
    15·1 answer
  • When turning left, which lane of the intersecting street should you turn onto?
    14·2 answers
  • A pump must be able to deliver 34 L/s of crude castor oil at 25°C ρ = 0.934 g/mL and μ = 0.078 Pa.s. It is known that, due to th
    15·1 answer
  • Which type of turbocharger has a wastegate?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!