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
The volume of the rectangular prism is 648 feet. The rectangular base is 6 feet by 9 feet. What is the height of the prism?
IrinaK [193]

Answer:

h=12ft

Step-by-step explanation:

The formula one would use for finding the volume of a rectangular prism is as follows:

  • Volume = length × width × height , V=l*w*h

With this in mind, let's plug in the given variables in the question for this formula.

V=648ft^3

l=6ft

w=9ft

h= ?

  • We don't know the height, but that's just fine. We will plug in all our values and isolate h.

V=lwh\\648ft^3=(6ft)(9ft)h

  • I'm leaving in units just because I want to show that units aren't just for show. They can be used when in doubt of how to go about your math.

648ft^3=(6ft)(9ft)h\\648ft^3=(54ft^2)h\\\frac{648ft^3}{54ft^2}=\frac{(54ft^2)h}{54ft^2}

  • Notice, that the units on the left side cancel out, leaving only the unit ft left next to the solution. In the same way, the units on the right side cancel out too, leaving only h, height.

\frac{648ft^3}{54ft^2}=\frac{(54ft^2)h}{54ft^2}\\12ft=h

If involving units only confuses you, like it does for me, you can remove them like so, you just need to know what units your solution uses instead of being able to come to the proper units by using math.

V=lwh\\648=(6)(9)h\\648=54h\\\frac{648}{54}=\frac{54h}{54}\\12ft=h

5 0
3 years ago
Need Help solving this , pic of question
MissTica
<h3>Answer:</h3>

length: 7 ft

width: 5 ft

<h3>Explanation:</h3>

Your familiarity with times tables tells you that 35 = 5×7. Checking, you find that 7 = 3×5 - 8, so you know that these values (5, 7) are the width and length of the rectangle (in feet).

7 0
3 years ago
he graph below represents the price of sending video messages using the services of a phone company. What is the constant of pro
Colt1911 [192]

Answer:

24.

Step-by-step explanation:

Basically constant of proportionality is a ratio.

We take two points, we'll take the order pair (2,48)

It will always be y/x so y is 48 and x is 2

48/2    -  now we simplify

answer: 24

hope this helps! :))

8 0
3 years ago
Read 2 more answers
What is the sum of 3.6 × 103 and 6.1 × 103? Answer Choices 9.7x10^3 9.7x10^6 97x10^3 97x10^6
Nutka1998 [239]

Answer:

  9.7×10³

Step-by-step explanation:

(3.6×10³) + (6.1×10³) = (3.6+6.1)×10³ = 9.7×10³

___

The factor of 10³ can be factored out while you do the sum.

___

A calculator can find the sum for you. A scientific or graphing calculator will have the option to display the result in scientific notation format.

4 0
3 years ago
How do you factor: 2x + -15
Arisa [49]

Answer:

It is not factorable.

Step-by-step explanation:

It is not factorable with rational numbers.

6 0
2 years ago
Read 2 more answers
Other questions:
  • Find the percent of increase to the nearest whole from 12 to 20
    11·1 answer
  • caleb and emily are standing 100 yards from each other. caleb looks up at a 45 degree angle to see a hot air balloon. Emily look
    10·2 answers
  • One bus leeves a stop every 12 minutes. A second bus leaves the same
    13·1 answer
  • Do these two have the correct answers?
    12·1 answer
  • If two angles of a quadrilateral are 70 and 110 what are the other 2
    14·1 answer
  • 14. Compare the graph below to the function
    15·1 answer
  • ????????????????????????
    9·1 answer
  • The sun is about 10 • 10 million miles away from earth. Write 10 • 10 using an exponent. Then find the value of the power. How m
    14·1 answer
  • PLEASE HELP ITS GEOMETRY
    13·1 answer
  • List the side of the triangle in order from shortest to longest.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!