Skip to content

Instantly share code, notes, and snippets.

@Jordach
Created October 22, 2013 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jordach/7099606 to your computer and use it in GitHub Desktop.
Save Jordach/7099606 to your computer and use it in GitHub Desktop.
--Global variables
Assumed_Hour = 7.50
Tax_Level = 0.2
-- Options
print ('Please select your options:')
print ('1: Get payroll record.')
print ('2: Calculate net pay.')
print ('3: Print paycheck.')
First_Input_Level = io.read()
if First_Input_Level == '1' then
print ('How many hours has the user worked for')
Hours_Worked = io.read()
end
if First_Input_Level == '2' then
print ('Calculate net pay')
end
if First_Input_Level == '3' then
print ('check')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment