PROGRAM DOCUMENTATION BANK MANAGER I hope that some of you like to savemoney or do some business and dreamabout the big fortune like I do. Theprogram I send is aimed to help withsolving mathematical problems for allthe dreamers like me who wonder what todo with their 'fortunes' from summerjobs. I typed the prog in following the book'2^5 Mathematical Programs in Basic' bytwo Polish authors. I bought the book afew years ago and used the simpleprograms during my studies.Unfortunately for you it is written inPolish so I have prepared the Englishversions of some programs. 'Bank Manager' is based on solving anequation: P*(1+I)^N+S*(1+I*X)*((1+I)^N-1)/I+F=0 Too long? I hope not. The letters havethe following meaning: P - start amount to be borrowed orlent, S - instalments, F - final amount to be paid or takenback, I - interest rate per year, N - operation time (years), X - equals 1 if paying ahead, and 0 ifpaying back. I hope everyone understands how he canbecome a millionaire. I wish you that.Even though I have had this prog forquite long there has been no miracle sofar, but of course everything ispossible. The program is written in Basic ofcourse and is written in a very simpleway so it can be easily used on othercomputers. It starts with the menuwhere you have to choose the problemwhich disturbs you and then put somedata to the machine. It is very simpleso I hope nobody will have any troublewith it. To help you in getting started I willgive you a few examples of problems tobe solved. 1. Uncle Max lent to his nephew Jimmy asmall amount, £8.00 for one year. Afterthis time nephew Jimmy returned £8.96.Was uncle Max fair? He can add interestrate only once a year as he has not gota personal computer. How big is hisinterest rate? Warning: If there are now instalmentsput 0 where necessary. 2. Now uncle Max is in poverty and heborrows £8.00 to buy a pocketcalculator. His nephew Jimmy demands12% per year. How much money has uncleMax to pay back every month to returnthe whole debt within a year? Jimmy isa proud owner of a pocket calculatorand he adds interest rate every month. 3. After this operation both ourfriends decided to run a real business.They took an amount of money to theWest Midlands Bank and left it for oneyear. They were very lucky as theirinterest rate was 12% per year addedevery month. After one year they got£901.46. How much money did they leavein the bank? 4. Uncle Max wanted to buy a flat forhis nephew Jimmy. He borrowed from thebank £100,000. He will have it paidback within 30 years. He is going topay £1,125 at the end of every month(back). After 30 years his nephew Jimmywill have to pay back another £3,580 ofthe debt that he has inherited. Whatwas the banks interest year per year? 5. The flat is quite far from thenearest Tube station so nephew Jimmydecided to buy a bicycle. He is goingto save money in the bank for 3 yearsand he will pay £1.00 at the beginningof every two weeks (ahead). As a wellknown customer he will have hisinterest rate added every day but hisrate will be 5.5% per year. Will he beable to buy a bicycle after this time? I hope that now you will be able to buylots of flats and bicycles with only£1.00 after ... some time. Piotr Pagowski, Warsaw, Poland 7 COLUMN CARD PATIENCE This is a computerised version of avery old card patience game. It takes afair amount of skill to complete, butthere is a large element of luck in howthe cards have been dealt. The cards are dealt face down onto atable of seven columns, the number ofcards in each column increasing from 1to 7. The top card in each column isturned face up. The remaining cards arekept ready to be laid out. The game is played by building ontoface up cards in the columns, indecending value, alternating red andblack. Aces can be moved face up to theleft hand side of the screen, wherecards of the same suit can then bestacked on top in increasing value. Theremaining cards are turned over 3 cardsat a time onto a pile in the bottomleft corner of the screen. Cards can bemoved from this pile and built upeither on the stacks or on the columns.A particular column or the pile isselected by moving the pointer to thatcolumn using the left and right arrowkeys. The following keys can then beused in conjunction with the arrowkeys. A - Picks up a single card or run ofcards. D - Drops the picked up cards at thecolumn selected. S - Moves the selected top card tothe stacks. Pressing Space turns over the next 3cards onto the pile. Kings may be moved to empty columns. The game is completed when all thecards are stacked face up on top of theaces. When the game was originally playedwith real cards, some people used tocheat slightly, but would never admitto it. For their benefit a small cheathas been included. Pressing the C keywill alter the order of the cardsturned over on the pile. If you get really stuck pressing the Qkey will quit the game, and you will beprompted to start again. There are three files to the program; 1) PATNCE; this has all the charactercontrol codes for drawing the picturecards, and these cards are builtstraight into memory in the locations&1100 - &11EE. It also generates thedisplay for the user instructions whenrequired. 2) SCREEN; this is a file containingthe title screen which has previouslybeen drawn and saved. This is loadedstraight into memory with *LOAD SCREEN3000 from the PATNCE part of theprogram, to produce a MODE1 titlescreen. Editor's note - I have altered *LOADSCREEN 3000 to *LOAD SCREEN FFFF3000 inorder to make the programTUBE-compatible. 3) NEWPAT; this is the main part of theprogram which is automatically loadedwith PAGE set at &1200. This program isthen able to access the memory between&1100 - &11EE to print the picturecards on the screen when required. The game can be run from the normal8-Bit menu or from a keyboard commandof CHAIN"PATNCE". Try to complete thegame without using the cheat, but ifyou do cheat, never admit to it!!