Advertisement
conception

13.1 one

Dec 5th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. CLS
  2.  
  3. OPEN "ch13.dat" FOR INPUT AS #1
  4.  
  5. LET A$ = "Salesman Salesman Name Sales Commision Commision"
  6. LET A2$ = " Number Amount Rate Amount"
  7. LET C$ = " #### \ \####.## #.#% #####.##"
  8.  
  9. PRINT
  10. PRINT A$
  11. PRINT A2$
  12. PRINT
  13.  
  14. INPUT #1, number, name$, amount, rate
  15. DO UNTIL UCASE$(name$) = "END"
  16.  
  17. ' PRINT number;
  18. ' PRINT name$;
  19. ' PRINT amount;
  20. ' PRINT rate;
  21. LET Camount2 = amount * rate
  22. LET rate = rate * 100
  23. 'PRINT Camount2
  24. ' PRINT 1#, USING C$; number; name$, amount; rate; Camount2
  25. PRINT USING C$; number; name$; amount; rate; Camount2
  26.  
  27. INPUT #1, number, name$, amount, rate
  28. LOOP
  29.  
  30.  
  31. CLOSE #1
  32. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement