Question: #include bool validateDate ( int , int, int ) ; using namespace std; int main ( ) { int year; int month; int day; const

#include
bool validateDate(int, int, int);
using namespace std;
int main()
{
int year;
int month;
int day;
const int MIN_YEAR =0, MIN_MONTH =1, MAX_MONTH =12, MIN_DAY =1, MAX_DAY =31;
bool validDate = true;
cout<<"Enter the year:"<>year;
cout<<"enter the month:"<>month;
cout<<"Enter the day:"<>day;
if(year <= MIN_YEAR)
validDate = false;
else if (month < MIN_MONTH || month > MAX_MONTH)
validDate = false;
else if (day < MIN_DAY || day > MAX_DAY)
validDate = false;
if(validDate == 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 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!