## DarkendSinz30 3 years ago start read Customer_Order_Record if Quantity > 100 then Discount = 20 else if Quantity > 12 then Discount = 10 endif endif Total = Price* Quantity Total = Total - (Discount* Total)/100 Print Total Stop >> Example 2 Start Read Student_Marks_File Pass = 0 Fail = 0 Total = 0 X = 0 while (End Of Student_Marks_File) do Total = Total + Subject_Marks if (Subject_Marks > 40) then Print "Student passed in" Subject else

1. DarkendSinz30

Print "Student failed in" Subject endif X = X +1 Read Next Record endwhile Average = Total/X Print "Average Marks of" Student_Name "are" Average Stop From the above examples of pseudocode containing control structures, analyze the logic implemented in the pseudocode.

2. DarkendSinz30

I need help with this please

3. maheen_khizar

what is the problem , m unable to get which kind of help u need ?

4. DarkendSinz30

I need help to understand the logic behind each set of pseudocode

5. yoloxlarge

so what do you need to know

6. DarkendSinz30

How would you implement the logic used for the above examples?

7. DarkendSinz30

There is 2 examples and I usually have a tendency to over think the question asked

8. yoloxlarge

Analyze Pseudocode The following are a few examples of pseudocode: >> Example 1 start read Customer_Order_Record if Quantity > 100 then Discount = 20 else if Quantity > 12 then Discount = 10 endif endif Total = Price* Quantity Total = Total - (Discount* Total)/100 Print Total Stop >> Example 2 Start Read Student_Marks_File Pass = 0 Fail = 0 Total = 0 X = 0 while (End Of Student_Marks_File) do Total = Total + Subject_Marks if (Subject_Marks > 40) then Print "Student passed in" Subject else Print "Student failed in" Subject endif X = X +1 Read Next Record endwhile Average = Total/X Print "Average Marks of" Student_Name "are" Average Stop From the above examples of pseudocode containing control structures, analyze the logic implemented in the pseudocode. Answer Preview ...to the "Total" variable (overwriting its existing value). Continuing from the previous example, "Total" would be 100 - 20 = 80. 6. Finally, total is printed by the "Print Total" command. The above explanation is rather too detailed for such a...

9. yoloxlarge

dose that help any

10. DarkendSinz30

It does if it could be viewed entirely sorry

11. DarkendSinz30

Would it help if it was broken down?