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
Reil [10]
3 years ago
12

Suppose that you have the following function. void mystery(int& one, int two) { int temp temp = one; one = two; two = temp;

} What are the values of x and y after the following statements? (Assume that variables are properly declared.) x = 10; y = 15; mystery(x, y);
Mathematics
1 answer:
vlada-n [284]3 years ago
7 0

Answer:

x = 15 and y = 10

Step-by-step explanation:

It is assumed that 'x' and 'y' are declared as '10' and '15' respectively. Then following the mystery(x, y) function which is pass 10 and 15 as parameter. Then we can follow the logic of the mystery function.

First, temp is assigned to one; that is temp = 10

Secondly, one is assigned to two; that is one = 15

Thirdly, two is assigned to temp; that is two = 10.

Since x and y is same as one and two; we say:

x = one = 15  and

y = two = 10.

You might be interested in
You enter a relay race. To start, you must run 20 yards to Checkpoint A. You then must turn and run 12 yards to Checkpoint B. La
Anarel [89]

Distance to checkpoint A from starting line = 20 yards.

Then from A to B distance = 12 yards.

Let us take starting point C.

So, it would make a right triangle.

We have AB = 12, AC = 20, we need to find BC, that is Hypotenuse of the right triangle.

According to Pythagoras theorem:

BC^2 = AB^2+AC^2

BC^2 = 12^2+20^2

BC^2 = 144 +400 = 544

BC= \sqrt{544}

BC = 23.32.

<h3>Therefore,  23.32 yards is the distance from Checkpoint B to the starting line.</h3>
7 0
3 years ago
Read 2 more answers
NEED HELP ASAP Which of the following equations describe the line shown below?
bagirrra123 [75]
(-1,6)(2,-6)
slope = (-6 - 6) / (2 - (-1) = -12/3 = -4

y = mx + b
slope(m) = -4
(-1,6)...x = -1 and y = 6
sub and find b, the y int
6 = -4(-1) + b
6 = 4 + b
6 - 4 = b
2 = b

so the equation is : y = -4x + 2 <=== here is one

y - y1 = m(x - x1)
slope(m) = -4
(-1,6)...x1 = -1 and y1 = 6
sub
y - 6 = -4(x - (-1) =
y - 6 = -4(x + 1) <=== here is one

y - y1 = m(x - x1)
slope(m) = -4
(2,- 6)...x1 = 2 and y1 = - 6
sub
y - (-6) = -4(x - 2) =
y + 6 = -4(x - 2) .... here is one, but it is not an answer choice
6 0
3 years ago
Please help Picture can someone help me I don't know how to do this
lorasvet [3.4K]

Answer:

heres the answer

Step-by-step explanation:

just graph (2,3)   (3,2)   (4,3)

on a coordinate grid

5 0
3 years ago
Can anyone give me a geometric sequence will give brainlinest and need sequence of 6
snow_lady [41]

Answer:

3, 6, 9, 12, 15, 18

Step-by-step explanation:

If you count by threes you can make a Geometric Sequence of 6.

Final answer: 3, 6, 9, 12, 15, 18.

3 0
3 years ago
Evaluate function at the given value using the remainder theorem.
garik1379 [7]

Answer:

6

Step-by-step explanation:

f(a)=a^4-2a^3 -10a^2 -7a \\\\f(-2) = (-2)^4-2(-2)^3 -10(-2)^2 -7(-2)\\\\~~~~~~~~~=16-2(-8)-10(4)+14\\\\~~~~~~~~~=30+16-40\\\\~~~~~~~~~=46-40\\\\~~~~~~~~~=6

5 0
2 years ago
Other questions:
  • Factor completely x^3-8x^2-2x+16=
    11·1 answer
  • Estimate then find the sum or difference <br><br><br><br>8. 26<br>0. 47<br>+___​
    7·1 answer
  • Please explain to me how to answer this question
    8·1 answer
  • X+4y=2v make x the subject
    14·1 answer
  • Can someone help me please and thank you
    11·1 answer
  • Order these fractions from Least to greatest 9/10 13/20 and 4/5
    13·1 answer
  • if spongbob has 34 ponds of secret formula how mean krabby patties can he make if it takes 1 1/2 to make on 30 pts
    5·2 answers
  • 3 people traveled 27 miles total and person number 2 went 6 miles more than person number 1 and person number 3 went 3 miles mor
    10·2 answers
  • Factor the expression 15 x - 10 x y​
    6·1 answer
  • Round to the nearest tens: 997.9<br> Help?
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!