add extra files
This commit is contained in:
38
basic/social-security.bas
Normal file
38
basic/social-security.bas
Normal file
@@ -0,0 +1,38 @@
|
||||
[start]
|
||||
cls
|
||||
print "This program will help you determine"
|
||||
print "if you are old enough to apply for"
|
||||
print "Social Security."
|
||||
print
|
||||
input "Please enter your current age."; age
|
||||
if age < 65 then [young]
|
||||
if age > 65 then [old]
|
||||
if age = 65 then [correct]
|
||||
goto [start]
|
||||
|
||||
[young]
|
||||
cls
|
||||
print "You are too young. Please try again"
|
||||
print "in a couple of years."
|
||||
print
|
||||
input "Press 'Enter' to continue."; dummyVariable
|
||||
print
|
||||
goto [start]
|
||||
|
||||
[old]
|
||||
cls
|
||||
print "You are should have applied for"
|
||||
print "Social Security by now."
|
||||
print
|
||||
input "Press 'Enter' to continue."; dummyVariable
|
||||
print
|
||||
goto [start]
|
||||
|
||||
[correct]
|
||||
cls
|
||||
print "You are now eligiable to apply for "
|
||||
print "Social Security."
|
||||
print
|
||||
input "Press 'Enter' to continue."; dummyVariable
|
||||
print
|
||||
goto [start]
|
18
basic/taxes.bas
Normal file
18
basic/taxes.bas
Normal file
@@ -0,0 +1,18 @@
|
||||
[start]
|
||||
print "Type a dollar and cent amount ?"
|
||||
input "(Press 'Enter' alone for help) "; amount
|
||||
let tax = amount * 0.05
|
||||
print "Tax is: "; tax; ". Total is: "; tax+amount
|
||||
goto [start]
|
||||
|
||||
[help]
|
||||
cls
|
||||
print "SALESTAX.BAS Help"
|
||||
print
|
||||
print "This tax program determines how much tax is"
|
||||
print "due on an amount entered and also computes"
|
||||
print "the total amount. The tax rate is 5%."
|
||||
print
|
||||
input "Press [Enter] to continue."; dummyVariable
|
||||
cls
|
||||
goto [start]
|
25
basic/taxes2.bas
Normal file
25
basic/taxes2.bas
Normal file
@@ -0,0 +1,25 @@
|
||||
[start]
|
||||
print "Type a dollar and cent amount ?"
|
||||
input "(Press 'Enter' alone for help) "; valueA
|
||||
let tax = amount * 0.05
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
let valueB = int(valueA)
|
||||
valueC = valueA - valueB
|
||||
|
||||
goto [start]
|
||||
|
||||
[help]
|
||||
cls
|
||||
print "SALESTAX.BAS Help"
|
||||
print
|
||||
print "This tax program determines how much tax is"
|
||||
print "due on an amount entered and also computes"
|
||||
print "the total amount. The tax rate is 5%."
|
||||
print
|
||||
input "Press [Enter] to continue."; dummyVariable
|
||||
cls
|
||||
goto [start]
|
Reference in New Issue
Block a user