Question: #include bool validateDate ( int , int, int ) ; using namespace std; int main ( ) { int year; int month; int day; const
#include
bool validateDateint int, int;
using namespace std;
int main
int year;
int month;
int day;
const int MINYEAR MINMONTH MAXMONTH MINDAY MAXDAY ;
bool validDate true;
cout"Enter the year:"year;
cout"enter the month:"month;
cout"Enter the day:"day;
ifyear MINYEAR
validDate false;
else if month MINMONTH month MAXMONTH
validDate false;
else if day MINDAY day MAXDAY
validDate false;
ifvalidDate true
cout
rewrite this using real instead of simulated functions
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
