HW Hack 1

## Ask for User Input to find age and citizenship
citizen = input("Are you a citizen of the United States (Y/N)")

age = int(input("What is your age?"))

## Check if age >= 18

if age >= 18 and citizen == "Y":
    print("You can vote!")
else:
    print("You are too young!")
You can vote!

HW Hack 2

## ask for current salary and years working

salary = float(input("Input your salary: "))
workTime = int(input("Enter your years of service: "))

## find bonus amount and print it
if workTime >= 5:
    bonus = salary * .05
    print(f"Your net bonus is ${bonus}")
else:
    print("You are not eligible for a bonus")


Your net bonus is 0.5

HW Hack 3

## ask for user input of marks

marks = float(input("Enter your grade percentage!"))

if marks < 25:
    print("Your grade is F")
elif 25 <= marks < 45:
    print("Your grade is E")
elif 45<= marks<50:
    print("Your grade is D")
elif 50<= marks < 60:
    print("Your grade is C")
elif 60<= marks <= 80:
    print("Your grade is B")
elif marks > 80:
    print("Your grade is A")
Your grade is A