Page 1099 - SUBSEC October 2017_Neat
P. 1099

01229032/CSEC/SPEC/MS/2017
                                                        - 7 –

                                             INFORMATION TECHNOLOGY
                                                     PAPER 032
                                                    MARK SCHEME
                Response of char
                Num, count of integer


                Body:

                Step 1: Start                       (1)
                Step 2 : Print (how many items did you purchase?)

                Step 3: Read num

                Step 4: While count<=num do                appropriate use of iteration (1)
                Step 4i:              Print (Enter the name of device)   Output statement (1)

                Step4ii:    Read name1                                          Input statement (1)

                Step 4iv:   Print(Enter the cost of, name1)
                Step 4v:   Read cost

                Step 4vi:   Print (Enter “Y” if item is taxable or “N” if it is non-
                taxable)

                Step 4vii:  Read Response

                Step 4viii:          If (Response = “Y”)then
                       (use conditional branching - 1 for If-then and 2 for If-then-else)

                                            Set vat           Vatpercent * cost
                              Else

                                Set vat         0
                              Endif

                Step 4ix:   set total_cost         vat + price calculation

                     (1 for assignment variable and 1 for correct variables used)
                Step 4x:   Print ( The total cost for a , name1 , is, total_cost)

                        (1 mark for each output) 2 marks

                Step xi              Count                  count +1
                Step 4xii: Endwhile

                Step 5: Stop                                             Terminator (1)
                                                                                           Total 15 marks
   1094   1095   1096   1097   1098   1099   1100   1101   1102   1103   1104