Mark44 Mentor Insights Author Messages 38,140 Reaction score 10,730 Jun 12, 2015 #3 The lines in blue in your image pretty well explain what is happening in the pseudocode. Are you having trouble understanding the problem description?
The lines in blue in your image pretty well explain what is happening in the pseudocode. Are you having trouble understanding the problem description?
Amr719 Messages 31 Reaction score 0 Jun 13, 2015 #4 No I understand the description. But I don't understand the form of writing the code . Why in the first line he wrote units -500 and why in the second line he wrote units - 1000
No I understand the description. But I don't understand the form of writing the code . Why in the first line he wrote units -500 and why in the second line he wrote units - 1000
FactChecker Science Advisor Homework Helper Messages 9,546 Reaction score 4,789 Jun 13, 2015 #5 "every unit in excess of 1000" is (units - 1000) So the code is a direct translation of the description above.
"every unit in excess of 1000" is (units - 1000) So the code is a direct translation of the description above.