# QUESTION 1
# Person enters their age
age = int(input("Enter your age: "))

# asks if the person is a citizen
is_citizen = input("Are you a citizen? (yes/no): ").lower()

# checks if the user is 18 and older and a citizen
if age >= 18 and is_citizen == "yes":
    # if both are true, the person can vote
    print("You are eligible to vote!")
else:
    # If one of them are not true, then the person can't vote
    print("You ain't eligible to vote.")
    
    # inputted 19 and yes they are a citizen

You are eligible to vote!
# QUESTION 2
# asks person for their salary
salary = float(input("Enter your earnings: "))

# asks person for how much years they worked
years_of_service = int(input("Enter your years of service: "))

# Check if  employee has more than 5 years of work experience
if years_of_service > 5:
    # Calculates the bonus amount 
    bonus = 0.05 * salary
    print(f"nicee! Your bonus is ${bonus:.2f}")
else:
    print("Sorry, work longer and harder.")
    
    # inputted 25,000 and put 5 years of work

Sorry, work longer and harder.
# QUESTION 3
# asks user to enter their test score
marks = float(input("Enter your test score: "))

# Determines the grade
if marks < 25:
    grade = 'F'
elif marks >= 25 and marks < 45:
    grade = 'E'
elif marks >= 45 and marks < 50:
    grade = 'D'
elif marks >= 50 and marks < 60:
    grade = 'C'
elif marks >= 60 and marks <= 80:
    grade = 'B'
else:
    grade = 'A'

# Prints their grade
print(f"Your grade: {grade}")
# entered 76
# Srini is a frog

Your grade: B