Page 1098 - SUBSEC October 2017_Neat
P. 1098

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

                                             INFORMATION TECHNOLOGY
                                                     PAPER 032
                                                    MARK SCHEME
                Body:

                Step 1: Start                     (1)

                Step 2 : Print (how many items did you purchase?)
                Step 3: Read num

                Step 4: For I = 1 to num do                appropriate use of iteration (1)
                Step 4i:Print (Enter the name of device)      use of Output statement (1)

                Step4ii:    Read name1                                   use of 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)2mks

                                     Set vat                 Vatpercent * cost

                              Else
                                 Set vat                   0

                              Endif
                Step 4ix:   set total_cost               vat + price

                     (1 for assignment variable and 1 for correct variables)
                Step 4x:   Print ( The total cost for a , name1 , is, total_cost)
                       (Output results  1 mark for each output) 2 marks

                Step 4xi: Endfor
                Step 5: Stop                                                            Terminator (1)


                Key 3 – Using WHILE Loop

                Header: Techno_Store                       appropriate Heading          (1)

                Declaration: The purpose of this algorithm is to output the name and
                total cost for a device.            (1)

                Constant

                              Vatpercent = 0.16            Use of constant (1)
                Variables:

                Name1, of string                    Use of datatypes - three or more (2)
                Cost, total_cost, vat of real
   1093   1094   1095   1096   1097   1098   1099   1100   1101   1102   1103