Question: Please use C++ Problem All years that are evenly divisible by 400 or are evenly divisible by 4 and not evenly divisible by 100 are

 Please use C++ Problem All years that are evenly divisible by
400 or are evenly divisible by 4 and not evenly divisible by Please use C++

Problem All years that are evenly divisible by 400 or are evenly divisible by 4 and not evenly divisible by 100 are leap years. For example, 1600 is evenly divisible by 400, the year 1600 was a leap year. Since 1988 is evenly divisible by four but not by 100, the year 1988 was also a leap year. Using this information, write a function that accepts the year and returns a true if the year is a leap year and a false if it is not The main( ) function should read the year values from the data file year.txt located on Angel. Be sure to view the data file to determine what type it is and what would be the best loop to read the data from that file. For each year in the data file, print a statement to the black box with the results from the above function. This print statement should be located in the main ()function as well. The year 1600 is a leap year. The year 1601 is not a leap year

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!