Question: c++ program to check the date only use the switch statement, bool, if else and function cases Write a program CheckDate.cpp that checks whether an
c++ program to check the date only use the switch statement, bool, if else and function cases Write a program CheckDate.cpp that checks whether an input date is correct. Note that February has 29 days in a leap year . You may assume that user inputs integer values only. Hint: cin reads input value up to a space, or when enter is reached. Sample result 1: Input day month year: 22 11 2000 22-11-2000 is correct Sample result 2: Input day month year: 30 2 2000 30-2-2000 is incorrect
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
