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: the cost per unit of gas is $0.38
Step-by-step explanation:
Let x represent the cost per unit of electricity.
Let y represent the cost per unit of gas.
During one month, a homeowner used 600 units of electricity and 100 units of gas for a total cost of $344. It means that
600x + 100y = 344- - - - - - - - - -1
The next month, 400 units of electricity and 250 units of gas were used for a total cost of $299.
It means that
400x + 250y = 299- - - - - - - - - -1
Multiplying equation 1 by 400 and equation 2 by 600, it becomes
240000x + 40000y = 137600
240000x + 150000y = 179400
Subtracting, it becomes
- 110000y = - 41800
y = - 41800/- 110000
y = 0.38
Substituting y = 0.38 into equation 1, it becomes
600x + 100 × 0.38 = 344
600x + 38 = 344
600x = 344 - 38 = 306
x = 306/600
x = 0.51
Answer:
服務公司夢見手裡神經衰弱損失老師Jan損失啊愛沙尼亞是不是交往嗎就是歷史數據算不算雙氧水本身就是世界軍事實力宿舍江蘇省本書不是私人損失誰來是不是不是說備考無數台灣92我7是6給我看數字不是說本書我忘記說了結束時間舒適感五四運動和我萬家燈火下半身思考的劇的
Working for 2 hours pays $15.
Divide $15 by 2 to get $7.50 per hour.
Divide each amount of pay by its hours, and all are $7.50 per hour.
The equation is $7.50 multiplied by the number of hours, or
p = 7.50h
Answer:
$1,296
Step-by-step explanation: