**VIC PILOT Decimal Division**

I teach a Computer Programming course to 8th graders at our school, Castillero Middle School, San Jose, California. We have seven Commodore PETs and a VIC-20. The language, of course, is BASIC.

But now we are also using PILOT … from **COMPUTE!**'s December 1982 issue. Our students are finding it quite interesting to write programs in PILOT that they had previously written in BASIC.

One of my students, Mike Jennings, was intrigued with the notion that PILOT was integer only. He wondered whether it would be possible to have PILOT do decimal division. The result was a program he wrote which does just that. The user is prompted for two numbers, and for the number of decimal places desired. One small problem is when the division works out evenly: that is, when the decimal terminates. In such cases an additional zero is printed.

I thought it was a pretty good effort for an 8th grader with only a semester of programming.

Lawrence E. Corina

70 T:1 *AGAIN2 T:3 T : 2 NUMBERS?4 C : #T = 05 A : #A6 I : #A = 3337 JY : *END8 A : #B9 T : CARRY OUT HOW MANY PLACES?10 A : #L12 *MAIN PART14 I : #A <#B16 TY:.;18 JN : *A>B20 CY : #A = #A*1022 C : #C = #A/#B24 C : #T = #T + 126 C : #D = #C*#B28 C : #E = #A-#D30 C : #A = #E*1032 T : #C;33 I : #T = #L34 JY : *AGAIN35 I : #C = 036 JN : 2238 JY : *AGAIN44 * A>B46 C : #C = #A/#B48 T : #C;50 C : #D = #B*#C52 C : #E = #A-#D54 C : #A = #E*1056 J : 3560 *END