1-Write a program that determines the day number (1 to 366) in a year for a date that
provided as input data. As an example, January 1, 1994, is day 1. December 31, 1994, is
day 365. December 31, 1996, is day 366, since 1996 is a leap year. A year is a leap year
if it is divisible by four, except that any year divisible by 100 is a leap year only if it is
divisible by 400. Your program should accept the month, day, and year as integers.
2-The table shows the normal boiling points of several substances. Write a program that
prompts the user for the observed boiling point of a substance in ºC and identifies the
substance if the observed boiling point is within 5% of the expected boiling point. If the
data input is more than 5% higher or lower than any of the boiling points in the table, the
program should output message “Substance unknown”.
Substance Normal boiling point (ºC)