Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
--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