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
kolezko [41]
3 years ago
14

MinMax is a function that takes five arguments and returns no value. The first three arguments are of type int. The last two arg

uments are pointers to int that are set by the function to the largest and smallest of the values of the first three parameters, respectively. x, y and z are three int variables that have been declared and initialized. big and small are two int variables that have been declared. Write a statement that sets the value of big to the largest of x, y, z and sets the value of small to the smallest of x, y, z by calling minMax.
Computers and Technology
1 answer:
Luba_88 [7]3 years ago
5 0

Answer:

#include <iostream>

using namespace std;

void MinMax(int x,int y,int z,int *max,int *min)

{

   int big,small;

   if((x>y)&&(x>z))    //to check for maximum value

       big=x;

   else if((y>x)&&(y>z))

       big=y;

   else

       big=z;

   if((x<y)&&(x<z))  //to check for minimum value

       small=x;

   else if((y<x)&&(y<z))

       small=y;

   else

       small=z;

   *max=big;   //pointer pointing to maximum value

   *min=small;     //pointer pointing to minimum value

}

int main()

{

   int big,small;

   MinMax(43,29,100,&big,&small);    

   cout<<"Max is "<<big<<"\nMin is "<<small;  //big and small variables will get value from method called

   return 0;

}

OUTPUT :

Max is 100

Min is 29

Explanation:

When the method is called from first three integers maximum will be found using the conditions imposed and maximum value will be found and similarly will happen with the minimum value.

You might be interested in
Discus four importance of applications software​
AlladinOne [14]

Answer:

l hope this helps Good luck.

6 0
3 years ago
_____ is a component of a data model that defines the boundaries of a database, such as maximum and minimum values allowed for a
meriva

Answer:

Data base administrator

Explanation:

The data base administrator is a component of a data model that defines the boundaries of a database, such as maximum and minimum values allowed for a field , constraints and access methods. Database is structured from of data sets.  

The data in database use to come from different sources that data must have some boundaries. Database administrator is a part of DBMS. The authorized DBA is responsible for the integrity of data and keeping the data in good manner so at the time of need the data could be accessed rightly. Storage of data has to be  done in a way that at time of use or at the time of retrieval the data must be accessed frequently and easily.  

Database administrator is responsible to put constraint on the database, for example a person could enter how many digits or alphabets in the required fields or records. Otherwise user could enter irrelevant and lengthy data in the fields so it would be hard to manage data on server due to shortage of the memory. By putting such constraints the size of data could be managed and relevant data could be saved. Secondly, constraints use to be put for security purpose to keep information confidential and secure the  certain constraints are mandatory and the data base administrator is responsible for such constraints.

Once the user use to store data on database the data safety and integrity is most important for them. So that DBA will arrange the data in organised form which will give quick access and data length will be managed properly so user could not enter lengthy data to full the repository. DBA put security constraint as well for the satisfaction of user and secure use of the database.

So we could say that dba is most important part of DBMS of any organization.

5 0
3 years ago
Tasha purchased a new tablet. She has several questions about how to connect to the internet, download apps, install software, a
lutik1710 [3]
The answer is D because a toutourial can explain each and everey process

6 0
3 years ago
If you need to change the typeface of a document, which menu will you choose?
Nezavi [6.7K]

Format menu

Format menu is used to change typeface of a document

6 0
3 years ago
Research the difference between the heart and the brain ???? and say which is most important and why????​
antoniya [11.8K]

Answer:

The brain is more important because the heart would not be able to function without instructions from the brain, which is very important. The brain is what gives orders to the rest of the body to keep everything going.

Sorry if my explanation sounds bad, I'm not great at wording things))

6 0
3 years ago
Other questions:
  • Which windows tools would you use to browse the files system on a hard drive?
    6·2 answers
  • Consider the following line of code: price= input(Please enter the price: ") What would be the next line in your code that will
    8·1 answer
  • To open the dialog box for modifying styles, which step must you first complete in the Navigation pane?
    11·2 answers
  • Please write a complete program to calculate monthly payment given
    15·1 answer
  • Two threads try to acquire the same resource at the same time and both are blocked. Then, they continually change their states i
    14·1 answer
  • Question 3
    13·1 answer
  • There are parallels between the trust models in Kerberos and Public Key Infrastructure (PKI). When we compare them side by side,
    15·1 answer
  • Write a short essay on the importance of information and communication technology (ICT) in the AFN industry. Add suitable exampl
    11·1 answer
  • For how long should a media piece hold the user's attention?
    13·2 answers
  • A site has been issued the IP address of 192. 168. 10. 0/24. The largest network contained 25 hosts and was given the lowest num
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!