NursesPrint Go Premium
Reading Comprehension

HESI A2

Reading Comprehension

Difficulty: Medium Average Score: 74% Practice

Passage / Scenario

THE SUMMER OLYMPICS GAME:
The Summer Olympic Games are held every four years and occur during leap years. Write a C++ program that asks the user to enter a year and then tells if this is a year of Olympic Games or not. Pass the entered year to a function that determines if it is a leap year or not. Based on the finding of this function, print an appropriate message in the main() to let the user know if the Olympic Games are going to be held or not.
All years which are perfectly divisible by 4 are leap years, except for century years (years ending with 00). Century years are leap years only if they are perfectly divisible by 400. For example, 2012, 2004, and 1968 are leap years, but 1971 and 2006 are not leap years. Similarly, 1200, 1600, 2000, and 2400 are leap years, but 1700, 1800, and 1900 are not.

What is stated in the passage about the Olympic Games?

Related Questions

View all