Page 224 -
P. 224

modular programming


           Only the sales from your program

           were rejected


           The transactions.txt file that was sent to the bank contains all
           of the day’s sales from both your POS program in the coffee bar and
           your friend’s POS program in the gym. This is a section of the file:













                                       This record is from the
                                        coffee bar and was
                                       REJECTED by the bank.


                                      50791428746281510000150            DONUT

                                      00035005002454912715921          WORKOUT
                                                                                   This record is from
                                                                                    the gym and was
                                                                                    ACCEPTED by the


          As expected, each record (from each of the POS programs) has been          bank.
           appended to the transactions file. That bit appears to be working fine.

           But, something is not quite right here...










                           Study the two records carefully. Is there a difference between them that
                           might explain why one was accepted and the other was rejected? Think
                           about recent events. What do you think has caused this problem?





                                                                                      you are here 4    189
   219   220   221   222   223   224   225   226   227   228   229