21. The five line bellow are used to determine the profit or loss of a sale based on the buying cost and selling result after a margin calculation. The correct order of the program is . 1n = int...


21. The five line bellow are used to determine the profit or loss of a sale based on the buying<br>cost and selling result after a margin calculation. The correct order of the program is .<br>1n = int (input () )<br>2 buycost - 1000 * n + 1000<br>3 sellResult - 1200 • n<br>4 if (sellPrice-buyPrice>0) :<br>profit = True<br>if (sellPrice-buyPrice<=0):<br>profit = False<br>6.<br>a. 1,2, 3, 4, 5, no line of code can be reversed<br>b. 1, 2. 3, 4, 5. with line-1, line-2, line-3 can be reversed each other<br>c. 1, 2. 3, 4, 5. with line-4 and line-5 can be reversed with line-6 and line-7<br>d. Line-4 untul line-7 must be in sequence but can be placed in any order<br>

Extracted text: 21. The five line bellow are used to determine the profit or loss of a sale based on the buying cost and selling result after a margin calculation. The correct order of the program is . 1n = int (input () ) 2 buycost - 1000 * n + 1000 3 sellResult - 1200 • n 4 if (sellPrice-buyPrice>0) : profit = True if (sellPrice-buyPrice<=0): profit="False" 6.="" a.="" 1,2,="" 3,="" 4,="" 5,="" no="" line="" of="" code="" can="" be="" reversed="" b.="" 1,="" 2.="" 3,="" 4,="" 5.="" with="" line-1,="" line-2,="" line-3="" can="" be="" reversed="" each="" other="" c.="" 1,="" 2.="" 3,="" 4,="" 5.="" with="" line-4="" and="" line-5="" can="" be="" reversed="" with="" line-6="" and="" line-7="" d.="" line-4="" untul="" line-7="" must="" be="" in="" sequence="" but="" can="" be="" placed="" in="" any="">

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here