Question: Write a short C++ program that will prompt the user and input three integer values (month, day, year) from the console in a date

Write a short C++ program that will prompt the user and input

Write a short C++ program that will prompt the user and input three integer values (month, day, year) from the console in a "date" format that includes '/' separator characters. e.g., 8/21/2013. Your program should then output the date as 3 integer values in year, month, day order separated by commas. [Hint: your program will need to read an integer, followed by a character, followed by an integer, and so on.] Enter a date in mm/dd/yyyy format: 8/21/2013 Year, month, day: 2013,8,21

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

1 We need to prompt the user to input a date in the specified format 2 We need to read the input ... View full answer

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 Programming Questions!