Problem 1: Write a Python program that uses boolean logic to determine if a user is eligible to vote. The criteria for eligibility is that the user must be a citizen and must be 18 or older. Include comments in your code to explain each part of the program.

Problem 2: A company decided to give bonus of 5% to employee if his/her year of service is more than 5 years. Ask user for their salary and year of service and print the net bonus amount.

Problem 3: A school has following rules for grading system: a. Below 25 - F b. 25 to 45 - E c. 45 to 50 - D d. 50 to 60 - C e. 60 to 80 - B f. Above 80 - A Ask user to enter marks and print the corresponding grade.

#1
age=input("Type your age")
citizen=input("Type yes or no for if you are a citizen")
if(age>=18 and citizen.lower()=="yes"):
    print("You are elgiible to vote")
else:
    print("You are not elgiible to vote")
# I first took input from the user
# I then checked in an if statement if the user's age is above 18 and if they are a citizen
# If they are citizen I say they elligible if not I say they not elligible

#2 
current_salary=float(input("Type your salary"))
years=input("Type the amount of years you have serviced the company")
if(years>5):
    print(current_salary*1.05, "is your new salary")
else:
    print(current_salary, "is your salary")

#I first take input of the salary and years of service
#If the years of service greater than five I output the new updated salary and if not I output the same salary
#3
current=int(input())
if(current<25):
    print("You have an F")
elif(current>=25 and current<45):
    print("You have an D")
elif(current>=45 and current<60):
    print("You have an C")
elif(current>=60 and current<80):
    print("You have an B")
elif(current>=80):
    print("You have an A")

Notes

- Types of Comparison Operators
    -Equal to: a = b
    -Not equal to: a != b
    -Greater than: a > b
    -Less than: a < b
    -Greater than or equal to: a >= b
    -Less than or equal to: a <= b
    - AND operator: Checks if both conditions true and if so then returns true otherwise false
    - OR operator: If one is true than the whole expression is true