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
Consider Ron’s budget. How much money does Ron have left over each month?
vladimir1956 [14]
What is Ron’s budget?
4 0
3 years ago
Read 2 more answers
Compared with non-Internet users, today's online social networkers are likely to experience ________ relationships with their ex
Digiron [165]

Answer: Strengthened, less

Explanation:

With people spending more time on internet their relationships with existing friends have decreased due to lot of contents available on the internet. They might be friends with people miles away but they might not know their next door neighbor. As the content over the internet increases day by the day this trend shall keep on rising.

8 0
4 years ago
There is a wealth of
muminat

Answer:

empathy for others

Explanation:

The Journal, Reading Psychology, written by John McCreary and Merchant Gregory, explores the relationship between reading and empathy. Controlling for gender, GPA, and reading variables were hypothesized as closely related to empathy. Reading literary fiction engages us with social and psychological complexities of life. They require us to become someone else by transporting ourselves into the situations of others and their minds. Reading some Harry Potter books, for instance, should have a similar impact. Parts of his book tested how Harry had to deal with prejudice by showing more empathy towards immigrants and homosexuals than those who knew how to read neutral passages.

7 0
3 years ago
Research jobs in digital media. Using a job-posting site like Indeed, Monster, Career Builder, or other sites, search for a job
Alborosie

Answer:

Research jobs in digital media. Using a job-posting site like Indeed, Monster, Career Builder, or other sites, search for a job in your area. Once you identify a job in digital media that you may want to do, research the qualifications and education needed to perform this job, Write a paper of at least 300 words that includes:

Explanation:

Research jobs in digital media. Using a job-posting site like Indeed, Monster, Career Builder, or other sites, search for a job in your area. Once you identify a job in digital media that you may want to do, research the qualifications and education needed to perform this job, Write a paper of at least 300 words that includes:

sory

7 0
3 years ago
Free point giveaway pt.10 and brainliest to first answer
g100num [7]

Answer:

3+3=6

Explanation:

Tysm!!!

8 0
3 years ago
Read 2 more answers
Other questions:
  • When looking at a poster from the Art Deco movement, what one design characteristic would you most expect to see?
    6·1 answer
  • On most computers, the default font size in word is ____. 8 11 14 16
    8·2 answers
  • Osha requires employers pay for most required personal protective equipment including
    11·1 answer
  • Many people object to increased cybersecurity because _____.
    12·2 answers
  • 14. What significant contribution did Gutenberg make to the printing process?
    11·2 answers
  • ith reference to McCall's quality modle , what are the three important aspects of a software product ?
    7·1 answer
  • Which certification does CompTIA recommend a candidate for the CompTIA Network exam already have?
    7·1 answer
  • Similarities between drawing toolbar and editing toolbar​
    12·2 answers
  • How much can a INIVDA 1050 TI take? (FPS wise)
    10·1 answer
  • 4. Use the information under the Nutrients That the Human Body Needs title to create a multilevel list. Your list should meet th
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!