Page 197 - เอกสารประกอบการสอนพื้นฐานการเขียนโปรแกรมคอมพิวเตอร์
P. 197

196





                                                         A


                                                 price,salvage,year


                                                  reduce = (price-

                                                   salvage)/year


                                                  bookvalue=price



                                                  "Years  Reduce
                                                   Book Value”

                                                 for n=1 to year

                                                     step+1

                                                                        F

                                                     n<=year                    D

                                                           T
                                                   bookvalue =

                                                bookvalue - reduce


                                                    n, reduce,

                                                    bookvalue
   192   193   194   195   196   197   198   199   200   201   202