A community for students. Sign up today!
Here's the question you clicked on:
 0 viewing
 2 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
 2 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

This Question is Closed

DarkendSinz30
 2 years ago
Best ResponseYou've already chosen the best response.1Print "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.

DarkendSinz30
 2 years ago
Best ResponseYou've already chosen the best response.1I need help with this please

maheen_khizar
 2 years ago
Best ResponseYou've already chosen the best response.0what is the problem , m unable to get which kind of help u need ?

DarkendSinz30
 2 years ago
Best ResponseYou've already chosen the best response.1I need help to understand the logic behind each set of pseudocode

yoloxlarge
 2 years ago
Best ResponseYou've already chosen the best response.1so what do you need to know

DarkendSinz30
 2 years ago
Best ResponseYou've already chosen the best response.1How would you implement the logic used for the above examples?

DarkendSinz30
 2 years ago
Best ResponseYou've already chosen the best response.1There is 2 examples and I usually have a tendency to over think the question asked

yoloxlarge
 2 years ago
Best ResponseYou've already chosen the best response.1Analyze 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...

DarkendSinz30
 2 years ago
Best ResponseYou've already chosen the best response.1It does if it could be viewed entirely sorry

DarkendSinz30
 2 years ago
Best ResponseYou've already chosen the best response.1Would it help if it was broken down?
Ask your own question
Ask a QuestionFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.