- Create a program that takes two numbers and an operator (
+,-,*,/) as input and performs the corresponding arithmetic operation. - Write a program that takes an integer as input and checks if it is even or odd.
- Create a program that asks the user to enter a number and then prints whether the number is positive, negative, or zero.
- 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.
- Create a program that takes three numbers as input and prints the largest of the three.
- Write a program that takes a year as input and checks if it is a leap year.
- Create a program that takes a person’s age as input and checks if they are eligible to vote (age 18 or older).
- Write a program that takes a number as input and checks if it is divisible by 5 and 11.
- Create a program that calculates simple interest. Take the principal amount, rate of interest, and time period as input.
- Write a program that asks the user to enter a password. If the password is correct, print “Access granted”; otherwise, print “Access denied”.
