Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C + + program that reads in three integer values that represent a month, date, and four - digit year. Your program should
Write a C program that reads in three integer values that represent a month, date, and fourdigit year. Your program should print the date in one of following formats depending on the user's input.
If the user enters then print the month as a word January the date as an integer and the year
If the user enters then print the month as a threeletter abbreviation "Jan. date as an integer and the year
If the user enters then print month as an integer the date as an integer and the year
Here is a sample run users input shown in bold:
Please enter a date three integers: month, day, year:
How would you like to print your date?
Month date, full year. January : Enter
Abbreviated month date, full year Jan: Enter
Monthdateyear : Enter
If the user enters then the output would be
December
Step 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