find the question for chapter 2 exercise 3 page 83. Programming logic and design by joyce farrell edition 9.
Please upvote if you like the answer, as it helps the community a lot.
Also if you have any doubts, feel free to ask in comments, we will reach you ASAP.
I hope you were asking this question, I could not find a book with same edition, if it is another question, do let me know.
QUESTION:
3. Assume that cost = 10 and price = 12.
What is the value of each of the following expressions?
a. price - cost * 2
b. 15 + price - 3 * 2
c. (price + cost) * 3
d. 4 - 3 * 2 + cost
e. cost * ((price - 8) + 5) + 100
a. 12-10*2 = 12-20 = -8
b. 15 + 12 -3 *2 = 27-6 = 21
c. (12+10)*3 = 22*3 = 66
d. 4-3*2+10 = 4-6+10 = 8
e. 10*((12-8)+5) +100 = 10*9 +100 = 90+100 =190
Get Answers For Free
Most questions answered within 1 hours.