Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help me the fix the C++ code. I tyoed share code: https://codeshare.io/5gx9vw 10: Compare output A Output differs. See highlights below March 32 1776
Please help me the fix the C++ code.
I tyoed share code: https://codeshare.io/5gx9vw
10: Compare output A Output differs. See highlights below March 32 1776 Input Which Date constructor? (Enter 1, 2, or 3) 1 Month Number 2 - Month Name 3 - default month name? day? year? Invalid date values: Date corrected to 3/31/1776 Your output Numeric: 3/32/1776 Alpha: March 32, 1776 Which Date constructor? (Enter 1, 2, r 3) 1 Month Number 2 - Month Name 3 - default month name? day? year? Invalid date values: Date corrected to 3/31/1776 Expected output Numeric: 3/31/1776 Alpha: March 31, 1776 12: Compare output A Output differs. See highlights below june Input 31 1387 Which Date constructor? (Enter 1, 2, or 3) 1 Month Number 2 - Month Name 3 - default month name day? year? Invalid date values: Date corrected to 6/30/1387 Your output Numeric 6/31/1387 Alpha: June 31, 1387 Which Date constructor? (Enter 1, 2, or 3) 1 Month Number 2 - Month Name 3 - default month name Expected output dia year? Invalid date values: Date corrected to 6/30/1387 Numeric: 6/30/1387 Alpha June 30, 1387 Output differs. See highlights below february 29 2015 Input Which Date constructor? (Enter 1, 2, or 3) 1 Month Number 2 - Month Name 3 - default month name? day? year? Invalid date values: Date corrected to 2/28/2015 Your output Numeric: 2/29/2015 Alpha February 29, 2015 Which Date constructor? (Enter 1, 2, or 3) 1 Month Number 2 - Month Name 3 - default month name? day? year? Invalid date values: Date corrected to 2/28/2015 Expected output Numeric: 2/28/2015 Alpha February 28, 2015 Output differs. See highlights below February 29 1000 Input Which Date constructor? (Enter 1, 2, or 3) 1 Month Number 2 - Month Name 3 - default month name? day? year? Invalid date values: Date corrected to 2/28/1000 Your output Numeric: 2/29/1000 Alpha February 29, 1000 Which Date constructor? (Enter 1, 2, or 3) 1 Month Number 2 - Month Name 3 - default month name? day? year? Invalid date values: Date corrected to 2/28/1000 Expected output Numeric: 2/28/1000 Alpha: February 28, 1000Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started