add extra files

This commit is contained in:
2021-01-22 23:16:02 -05:00
parent 5b32cb677a
commit e657af0635
25 changed files with 7698 additions and 0 deletions

38
basic/social-security.bas Normal file
View 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
View 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
View 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]