//Written by Mo Kashi //This program gets an integer as a year and specifies whether //this year is a leap year or not.Then it gives a suitable //message in this concern. #include #include ofstream fout; int freeze; class Leap{ public: int getYear(); void displayIfLeap(int); void Banner(); };//class Leap int Leap::getYear(){//This method prompts user to enter a year //between 1600 and 2400 and if the year is not in this range //it gives a suitable message and asks for another year.This method returns //the year at the end. int year; cout<<"Enter year to test:\n"; cin>>year; fout<<"Enter year to test:\n"; fout<2400){ cout<<"Year not between 1600 and 2400 inclusive..try again:\n"; cout<<"Enter year to test:\n"; cin>>year; fout<<"Year not between 1600 and 2400 inclusive..try again:\n"; fout<<"Enter year to test:\n"; fout<>freeze; }//main()