The algorithm
starts working 1.
2. Configure. The amount paid (Price) equal to zero
3. Product Information (Amt) and price (Cost)
4. Calculate the amount paid by the Amt = Price x Cost
5. display the amount due
6. Exit code. Implant (Pseudo Code) Begin Price = 0 Read Amt, Cost Price = Amt x Cost Write Price End Structure Selection (Selection Structure) is a condition that must decide the result of the condition is true or false, only the type of structure selected. 1. Select function only when the conditions are fulfilled pseudo code ............... IF THEN. ... (Order A) ... examples. The program displays the screen of the algorithms at work: 1. Start 2. values. TOEFL (Score) 3. If the test scores of 50 points or more to print the screen that says 'You Pass' 4. Exit pseudo code (Pseudo Code) Begin Read Score Score IF> = 50 THEN Write 'You Pass'. End 2. Choose either working conditions between true and false pseudo code THEN. ... .. (Statement B) ... .. ELSE. .. ... (Order A) ... 3. Select statement stacked algorithms at work: 1. Start 2. Get the score (Score) 3. compare scores> = 80 if a real offer. Do expressions Grade = 'A' if it is false to compare scores> = 70 If this is true, do the expressions Grade = 'B' if it is false to compare scores> = 60 If this is true, do the expressions Grade = 'C' if. It is false to compare scores> = 50 If this is true, do the expressions Grade = 'D' if it is to make false expressions. = Grade 'F' grade 4. Display (Grade) 5. Exit.
การแปล กรุณารอสักครู่..
