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
DIA [1.3K]
3 years ago
7

Given the integer variables x, y, and z, write a fragment of code that assigns the smallest of x, y, and z to another integer va

riable min. Assume that all the variables have already been declared and that x, y, and z have been assigned values.
Computers and Technology
1 answer:
padilas [110]3 years ago
8 0

Answer:

The code to this question as follows:

Code:

if(x < y) //if block that check value of x less then value of y

{

if(x<z) // inner if block that check value of x less then value of z

{

min = x;  //assign value of x in min variable

}

else // inner else block when condition is false

{

min = z;  //assign value of z in min variable

}

}

else //outer else block

{

if(y<z) //if block to check value of variable y is less then value of z

{

min = y;  //assign value of y in min variable

}

else //else block

{

min = z;  //assign value of z in min variable

}

}

Explanation:

In the given question it is defined, that an integer variable " x, y,z, and min" is declared, in which variable "x,y, and z" value is defined, and the variable is used to assign a big value.

  • To check the biggest value we use the if-else statement in which, and if block check value of x is less than then the value of y if this condition is true so, inside this another if block declares, that will check if the value of x is less then z. if this is true, it will assign the value of x in min variable else it will assign the value of z in min.
  • In the outer else part, another conditional block has used, that checks if the value of y is less than then the value of z if it is true, it assigns the value of y in min else it will assign the value of z in min.
You might be interested in
Notebook is the answer
shusha [124]

Answer:

yea that's the answer lol

8 0
3 years ago
Read 2 more answers
A major retailer wants to enhance their customer experience and reduce losses
VikaD [51]

Answer:

Predict Demand

Explanation:

The type of Artificial Intelligence (Al) solution that would be suitable for solving this problem is "Predict Deman"

By predicting the demand of the potential consumer through the Artificial intelligence solution the retailer would be able to eliminate leftover out-of-stock scenarios because the adequate quantity of the products or demands will be provided thereby enhancing customers' experience arising from out-of-stock scenarios and reducing losses arising from the leftover.

8 0
3 years ago
Terrel is designing and maintaining a web page for a local company. In which career pathways would Terrel be involved?
Ronch [10]

Answer:

C information Support and services

Explanation:

4 0
2 years ago
A result of the Gibbons v. Ogden (1824) decision was that states​
rjkz [21]

Answer:

Explanation:

Gibbons v. Ogden (1824) was a historical decision, where the congress of the United Stated wants to regular interstate commerce. This was a legal fight about the potential of the new steamboat navigation, in the Supreme Court of the United States between the best layers in those days.

This decision of the U.S. Supreme Court was Congress had the right to regulate interstate commerce.

4 0
3 years ago
PLS HELPPPPPP According to O*NET, what are the three most common levels of education earned by Clergy?
Evgen [1.6K]

Answer:

bachelor’s degree

master's degree

post-baccalaureate certificate

Explanation:

Edited my answer

3 0
3 years ago
Read 2 more answers
Other questions:
  • Which is missing in most areas that do not have Karst topography?
    10·2 answers
  • Whats the agenda for annual general meeting ??
    10·1 answer
  • What is the difference between a software package and integrated software
    7·1 answer
  • How can touch typing quickly but accurately improve your earnings (the money you can make)
    15·2 answers
  • You notice your glove is torn; what should you do
    14·2 answers
  • Instructions:Select the correct answer.
    9·1 answer
  • An audit trail is a record of how a transaction was handled from input through processing and output
    10·1 answer
  • What is the 5 basic steps of computer programing?
    6·1 answer
  • if I make an Xfinity account can I turn off parental controls that my sister put on with her Xfinity account?
    10·1 answer
  • bro i got banned for posting an amazing bulk pic, but this dude literally posted an inappropriate, dafuq is wrong with this bann
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!