Answer:
"EF"
Step-by-step explanation:
Given
String1 = "ABCDEFGHI"
Substring : String1(4,2)
To solve this, one must understand the following
1. The function call operator () is used to overload objects of class type.
2. A copy constructor must receive its argument by reference to prevent an otherwise infinite recursion.
3. overload ( ), doesn't mean that one is not creating a new way to call a function; instead, it is a way to create an operator function that can be passed an arbitrary number of parameters
Having pointed out this,
The string to overload goes thus
String1 = "ABCDEFGHI"
The parameters goes thus
String1(4,2)
To represent this properly, we have
("ABCDEFGHI",4,2)
Which means to return 2 strings starting from the 4th index character.
It should be noted that index starts at 0.
So, the character at the 4th index is "E"
Then, we count 2 characters starting from E (i.e. E, inclusive)
This gives
"EF"
So, the returned string is "EF"
Answer:
Step-by-step explanation:
M = -6/4
b = 7
equation : y = -6/4x+7
Answer:
-6.20x-6.20y=-948.6
add this to equation 2
6.20x-6.20x +9.30y-6.20y=1125.30-948.60
3.10y= 176.70
/3.10
y=176.70/3.10
y = 57 number of adult tickets
153-57=96 child tickets
Step-by-step explanation:
child admission is $6.20 : x numbers
adult admission is $9.30 : y numbers
153 tickets were sold
sales of $1125.30 .
x+y = 153.........................1
6.20x+9.30y= 1125.30..............2
Answer:
A
Step-by-step explanation:
We can find the surface area of the object by adding the surface areas of each part. We have many rectangle faces to count and two triangular faces. Each has a formula for the area. We will find the area of each and then add them all together.
Triangle - 0.5 *b*h
Rectangle - b*h
<u>Triangles</u>
There are two triangles on either side. The height is 1.5. The base is 1.8.
0.5(1.5)(1.8)=1.35 meters squared
Since there are two, we will add 1.35+1.35 in our final calculation.
<u>Rectangles</u>
We will start by calculating the largest rectangle on the side. It has height of 4 and a base of 2.5 (shown above left).
4(2.5)=10
Since there are two (one we can see and one we can't), we will add 10+10 in our final calculation.
Next we calculate the top and bottom. The height is 3 and the base is 2.5 on top. But the bottom sticks out more and adds 1.8 to its base.
Top - 3(2.5)=7.5
Bottom-3(2.5+1.8)=12.9
Finally, we will calculate the front side and back(not visible) as well as the slant up front. The back side has height 4 and base 3. The front side has base 3 and height 4-1.5=2.5. The slant has base 2.3 and height 3.
Back - 4(3)=12
Front- 3(2.5)=7.5
Slant - 3(2.3)=6.9
We add all together for the total surface area: 1.35+1.35+10+10+7.5+12.9+12+7.5+6.9=69.5 meters squared.