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
4.125 A rational ir irrational
WARRIOR [948]
Irrational is the answer
6 0
3 years ago
Read 2 more answers
10. What makes an equation a quadratic?
CaHeK987 [17]

Answer:

D. The equation has a variable multiplied by itself. A squared variable.

Step-by-step explanation:

A quadratic equation will always start with a term being squared. For example, 8x^{2} + 5x + 7 = 44. Another example would be 4x^{2} + 2x - 10 = 12. These are just random numbers, but the equation will always look the same! Hope this helps!

6 0
2 years ago
Read 2 more answers
Describe fully the single transformation that takes shape P to the shape Q
Fantom [35]

Answer:

Enlargement by a scale factor of 3 centre (1,0)

Step-by-step explanation:

4 0
3 years ago
Read 2 more answers
Does 4(2x-5) equal 8x-5 or 8x-20? explain
Scorpion4ik [409]
4(2x-5)
8x-20

it is equal to 8x-20 because you simplify it and it turns into that.
HOPE I HELPED!!!


8 0
3 years ago
Read 2 more answers
A science teacher has a supply of 5% hydrochloric acid and a supply of 65% hydrochloric acid(HC1). How much of each solution sho
Sphinxa [80]
Assume that the amount needed from the 5% solution is x and that the amount needed from the 65% solution is y.

We are given that, the final solution should be 42 ml, this means that:
x + y = 42 ...........> equation I
This can also be written as:
x = 42-y .......> equation II

We are also given that the final concentration should be 45%, this means that:
5% x + 65% y = 45% (x+y)
0.05x + 0.65y = 0.45(x+y)


We have x+y = 42 from equation I, therefore:
0.05x + 0.65y = 0.45(42)
0.05x + 0.65y = 18.9 .........> equation III

Substitute with equation II in equation III as follows:
0.05x + 0.65y = 18.9
0.05(42-y) + 0.65y = 18.9
2.1 - 0.05y + 0.65y = 18.9
0.6y = 18.9 - 2.1
0.6y = 16.8
y = 28 ml

Substitute with y in equation II to get x as follows:
x = 42-y
x = 42 - 28
x = 14 ml

Based on the above calculations:
amount of 5% solution = x = 14 ml
amount of 65% solution = y = 28 ml
The correct choice is:
The teacher will need 14 mL of the 5% solution and 28 mL of the 65% solution.
6 0
3 years ago
Other questions:
  • The area of the triangle is 1560 m2<br><br>True<br><br>False
    12·1 answer
  • Can someone help my with number six please?
    14·2 answers
  • Y+8=0(x-6)<br> Isolate y<br> slope intercept (y=Mx+b)
    14·2 answers
  • PLEASE HELP ON THESE 2
    7·1 answer
  • Seven more than the quotient of a number and 4 is 9
    6·1 answer
  • Use the communitve property to find the unknown number in the equation 35×70 =m×35
    6·2 answers
  • Pls help me I’m dumb i and I don’t understand
    10·1 answer
  • 25−3x=40 what does x equal
    14·2 answers
  • Which figure is a translation of figure 1?
    7·1 answer
  • . You are mailing a gift box that is 18 inches by 8 inches by 12 inches. You
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!