home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 72
/
072.d81
/
basics
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
1KB
|
39 lines
100 rem clr screen, print two downs, change to yellow, lowercase. lock case.
110 print"[147][158] **** [193]ctual [197]arnings ****[159]"
120 rem change border to dark grey. lenhange background to black
130 poke53280,11:poke53281,0
140 rem use input to ask questions
150 input"[217]our average gross paycheck ";gross
160 input"[217]our average net paycheck ";net
170 input"[200]ours worked per pay-period ";hours
180 print"[201]s this weekly or bi-weekly? (w/b)"
190 rem get loop. press w or b to pass
200 geta$:if a$<>"w" and a$<>"b" then 200
210 rem default is biweekly unless w is pressed
220 paid = 26 : if a$="w" then paid = 52
230 rem clear screen
240 print"[147]"
250 rem the rest is just high school math
260 print"[217]ou officially earn $"gross/hours" per hour"
280 print" but after taxes and deductions
290 [153]" you earn $"net[173]hours"per hour."
300 [153]
320 [153]"atnt a difference of $" gross[173]hours[171]net[173]hours"per hour
330 print
340 print" you earn $" gross*paid "per year."
350 print
360 print"[217]ou take home $" net*paid "per year."
370 print
380 print"[217]ou are deducted $"gross*paid-net*paid"per year.
390 [153]
400 [153]" or"(gross[172]paid[171]net[172]paid)[173]((gross[172]paid)[173]100)"% of your income.
410 print:print"[193]gain? (y/n)"
420 geta$:if a$<>"y" and a$<>"n" then 420
430 ifa$="y"thenrun
440 rem reconnect to loadstar
450 a$="hello connect":open15,8,15,"r0:"+a$+"="+a$:input#15,er:close15
460 if er<>63 then print"[147]":end
470 q$=chr$(34):poke646,peek(53281):print"[147]"
480 print"load"q$a$q$",8"
490 print"run":poke631,13:poke632,13:poke198,2:end