Question: add comments if possible COMP 0411-WA Winter 2020 LAB 2 Due date: Wednesday, January 29 in the lab. Email submissions will NOT be accepted Write
COMP 0411-WA Winter 2020 LAB 2 Due date: Wednesday, January 29 in the lab. Email submissions will NOT be accepted Write a Fortran program to prompt for and read the year that a person was born. The year must be between 1900 and 2019 (inclusive). If an invalid entry is read, the program should display the message, "Sorry, that is not a valid year." If the year is valid, the program should display the year and a message "is a leap year" or "is a common year". Include appropriate declarations, prompts, read statements, calculations, and write statements. Here is the algorithm for leap year (hint: you may need to use an intrinsic function): if (year is not divisible by 4) then it is a common year) else if (year is not divisible by 100) then it is a leap year) else if (year is not divisible by 400) then it is a common year) else (it is a leap year)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
