home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Commodore Free 33R1
/
Commodore_Free_Issue_33R1_2009_Commodore_Computer_Club.d64
/
vat
< prev
Wrap
Text File
|
2023-02-26
|
1KB
|
42 lines
.
*************************************
VAT Calculator
By John Fielden
*************************************
Listing of: vat.prg
10 REM *VAT CALCULATOR*
12 REM *(C) JOHN A. FIELDEN 2009*
16 CLR:SCNCLR:PRINT"{SHIFT-+}black{SHIFT--} VAT CALC"
18 COLOR0,2
20 VA=17.5:T=100
30 INPUT "TAKINGS /AMOUNT: ";T
35 Q=T*VA/100:PRINT"AMOUNT: ";T
40 PRINTQ;" VAT AT: ";VA;"%"
50 PRINT"{SHIFT-+}brown{SHIFT--} TOTAL IF VAT TAKEN:
";T-Q
60 PRINT"{SHIFT-+}lblue{SHIFT--} ...IF VAT ADDED:
";T+Q
70 PRINTCHR$(18);"{SHIFT-+}black{SHIFT--} ANOTHER
AMOUNT Y/N? "
75 PRINTCHR$(146)
80 GETA$:IFA$=""THEN80
90 IFA$="N" THENEND
100 GOTO16
VA is current VAT level.
T is short for Takings and set to 100
to test that everything is working
properly. And to avoid the annoying
"DIVISION BY ZERO ERROR"
Q provides a base for the
mathematical sum to be stored
concerning how much VAT to be taken
or added to "takings". The added sum
is given purely for the sake of
covering all bases, as such may help
with pricing an object or service.
The rest is self explanatory.
=====================================