Practical Assignment
  1. Ask the user for their age and determine who they are: a child (0–12), a teenager (12–18), an adult (18–60), or a retiree (60–...).
  2. Ask the user for a year and check whether it is a leap year or not. A leap year is either a multiple of 400 or 4, and not a multiple of 100.
  3. Ask the user for the purchase amount and output the discount price: from 200 to 300 – the discount will be 3%, from 300 to 500 – 5%, from 500 and above – 7%.
  4. Ask the user 3 questions, each question has 3 answers. For each correct answer, 2 points are awarded. After the questions are over, output the number of scored points.
  5. Ask the user for a number and determine whether it is positive, negative, or zero.
  6. Ask the user for their age and check the correctness of the entered data (0–120 years old).
  7. Ask the user for time (hours, minutes, seconds) and check the correctness of the entered data.
  8. Ask the user for month number and display its name.
  9. Ask for 2 numbers and output the greater one.
  10. Ask for 1 number and check if it is a multiple of 5.
  11. Ask the user for name of the planet. If the user enters "Earth" or "earth", then output "Hello, Earthman!", otherwise, output "Hello, alien!"
  12. Calculate the sum of all numbers in a range specified by the user
  13. Ask the user for 10 numbers and calculate how many of them are positive, negative, and zeroes.
  14. Ask the user to solve this "2 + 2 * 2" until they calculate it correctly
  15. Divide 1000 by 2 until you get a number that is less than 50. Output this number and the amount of divisions.
  16. Display all numbers from 1 to 100, which are multiples of the number specified by the user.