
Lesson 1-7: Case Study Maintenance
18 | Chapter 1
Name __________________________________________ Date _______________________
Section _________________________________________
Exercise 1: Compile program LeapYear (leapyear.cpp), the case study program from Chapter
1. Run the program four times, using the following data values. Record whether the year is a leap
year.
Date Is a Leap Year?
1066 _________________
1939 _________________
1776 _________________
2012 _________________
Exercise 2: The input prompt is "Enter a year AD, for example, 1997." Change the
prompt so that the example year is 2005. Recompile and run your program.
Exercise 3: The documentation ...