Page 1097 - SUBSEC October 2017_Neat
P. 1097

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

                                             INFORMATION TECHNOLOGY
                                                     PAPER 032
                                                    MARK SCHEME
                Step3: Read name1                              use of Input statement (1)
                Step 4: Print(Enter the cost of, name1)

                Step 5: Read cost
                Step 6: Print (Enter “Y” if item is taxable or “N” if it is non-taxable)

                Step 7: Read Response
                Step 8: If (Response = “Y”)then            (use conditional branching

                            1 mark for If-then and 2 marks for If-then-else)2mks

                Set vat         Vatpercent * cost
                         Else

                              Set vat         0

                       Endif
                Step 9:  set total_cost            vat + price

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

                           1 mark for each output (2 marks)
                Step 11: Print (Do you have another item?)

                Step 12: Read Answer

                Step 13: Until ( answer = “No”)
                Step 14: Stop                                                   Terminator 1 mark



                Key 2 – Using FOR 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

                Response of char

                Num of integer
   1092   1093   1094   1095   1096   1097   1098   1099   1100   1101   1102