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
kap26 [50]
3 years ago
5

Four int variables, x1, x2, y1, and y2, have been declared and been given values. write an expression whose value is the differe

nce between the larger of x1 and x2 and the smaller of y1 and y2.
Mathematics
1 answer:
Katen [24]3 years ago
7 0
Even though we are using variables, we still know that "difference" means subtraction. So, if the larger is x1 and x2, those variables go first. The smaller, y1 and y2 will go second. So our problem will look like this:

(x1 <  x2 ? x2 : x1) - (y1 < y2 ? y1 : y2)
You might be interested in
Help pls!!! <br> If a1 = 6 and an<br> 2an-1 then find the value of a4.
Alenkinab [10]
24? I am not entirely sure but I think a4=24

Reason: if a1 equals 6 then I would like to think you would multiply 6 by 4 to get the value of a4 (I haven’t done this type of math in a while)
3 0
2 years ago
There are several sets of different numbers which can be chosen from {0,1,2,3,4,5,6,7,8,9}. How many of these sets contain any 2
Leokris [45]

Answer:

90

Step-by-step explanation:

it is 90 because in the first slot there can be any 10 numbers and in the second slot the set can contain any of the remaining 9 numbers and then we can multiply these two numbers together to find the total amount of sets.

hope this helps :)

4 0
3 years ago
Read 2 more answers
Given the line below. Write the point-slope form of the given line that passes through the points (0, 3) and (4, 0). Identify (x
jeka57 [31]
\bf \begin{array}{ccccccccc}&#10;&&x_1&&y_1&&x_2&&y_2\\&#10;%  (a,b)&#10;&&(~{{ 0}} &,&{{ 3}}~) &#10;%  (c,d)&#10;&&(~{{4}} &,&{{ 0}}~)&#10;\end{array}&#10;\\\\\\&#10;% slope  = m&#10;slope = {{ m}}\implies &#10;\cfrac{\stackrel{rise}{{{ y_2}}-{{ y_1}}}}{\stackrel{run}{{{ x_2}}-{{ x_1}}}}\implies \cfrac{0-3}{4-0}\implies -\cfrac{3}{4}&#10;\\\\\\&#10;% point-slope intercept&#10;\stackrel{\textit{point-slope form}}{y-{{ y_1}}={{ m}}(x-{{ x_1}})}\implies y-3=-\cfrac{3}{4}(x-0)
4 0
3 years ago
Sarah paid $40 for an item after she received a 20% discount what is the original price
alexira [117]
First your going to add 40+20%=48
so 48 is the original pice
3 0
2 years ago
Read 2 more answers
The net of square pyramid is shown below. What is the surface area of the pyramid ?
DochEvi [55]
To find surface area, find the area of the net like you would for a composite figure.
For the square, area is length times width.
8*8=64
For the triangles, area is bh/2
8*8/2=32
Since there are four triangles of the same area, multiply by 4.
32*4=128

Add these values
128+64=192 cm^2

Final answer: D
7 0
3 years ago
Read 2 more answers
Other questions:
  • An atom of silicon is approximately 0.00000000025 meters wide. How do you express that number in scientific notation? O 25 10-10
    14·1 answer
  • a rectanglar solid has a base with lint 2 cm and width 8 cm. If the volume of the solid is 106 cm 3 to the highest, find the hei
    5·2 answers
  • Since it is given that AB ≅ AC, it must also be true that AB = AC. Assume ∠B and ∠C are not congruent. Then the measure of one a
    12·1 answer
  • In two or more complete sentences, compare the number of x-intercepts in the graph of f(t) = 12 to the number of x-
    5·1 answer
  • ASAP
    11·1 answer
  • write the equation of the line (in slope-intercept form) that passes through the points (2,3 and (5,7)
    7·1 answer
  • There is an error in the diagram. Choose the statement that best describes what is wrong.
    14·1 answer
  • Please Help- <br> K + ⅓ = 5 ⅛ | K = ?<br> Show Your Reasoning.
    12·1 answer
  • IMPORTANT, COULD LEAVE TO DEATH IF NOT ANSWERED plz help I've reposted 5 times My family is at Native Wings and the bill came to
    10·1 answer
  • One out of every five students in this class has an A. What percent of the students have an A?​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!