Syed Jafer K

Its all about Trade-Offs

TASK 3 – Operators, Conditionals, Input()

  1. Create a program that takes two numbers and an operator (+, -, *, /) as input and performs the corresponding arithmetic operation.
  2. Write a program that takes an integer as input and checks if it is even or odd.
  3. Create a program that asks the user to enter a number and then prints whether the number is positive, negative, or zero.
  4. Write a program that takes a numerical grade as input and prints the corresponding letter grade (A, B, C, D, or F). Total Marks is 100. You can set your own range.
  5. Create a program that takes three numbers as input and prints the largest of the three.
  6. Write a program that takes a year as input and checks if it is a leap year.
  7. Create a program that takes a person’s age as input and checks if they are eligible to vote (age 18 or older).
  8. Write a program that takes a number as input and checks if it is divisible by 5 and 11.
  9. Create a program that calculates simple interest. Take the principal amount, rate of interest, and time period as input.
  10. Write a program that asks the user to enter a password. If the password is correct, print “Access granted”; otherwise, print “Access denied”.