Answer:
x=11
Step-by-step explanation:
The switch case works like an if or if-else, where each of the cases are conditionals. Here we have 7 cases and we know that our variable begins with x=5.
First, it enters to case 5 because of x=5, so x+=3, this means we add 3 to the actual value of the variable ⇒ x=8.
At this point, if there's not break the program continues to the next case, executing the statements until a break or the end on the switch is reached.
In this order, the x = 8 and next we add 1 (case 6) ⇒ x=9. We add 2 (case 7) x+=2 ⇒ x=10. Then we rest 1 (case 8) ⇒ x=9 and then we add 1 again as in case 9 ⇒ x=11.
Answer:
it took her 54 mins to finish her walk.
Step-by-step explanation:
Given;
total distance walked by Katie, d = ⁵/₆
time taken to walk ¹/₆ mile = 10 mins
break time = 1 min
There are five ¹/₆ mile in the total distance which is ⁵/₆ miles.
Time for the first ¹/₆ mile = 10 mins +
break time = 1 min
Time for the second ¹/₆ mile = 10 mins +
break time = 1 min
Time for the third ¹/₆ mile = 10 mins +
break time = 1 min
Time for the fourth ¹/₆ mile = 10 mins +
break time = 1 min
Time for the fifth ¹/₆ mile = 10 mins
Total time = 5 (10 mins) + 4 (1 min)
= 50 mins + 4mins
= 54 mins
Therefore, it took her 54 mins to finish her walk.
<span>In a Metro there are:
20 rows of seats
18 seats in a row
and $5 per ticket
Using commutative property of Multiplication:
Therefore.
=> (20 x 18) x 5 = 5 x (18 x 20)
=> 360 x 5 = 5 x 360
=> 1800 = 1800
Therefore, they have $1800 income.</span>