Question: C++ Write a program that lets the user enter a list of birthdays. Extract from this input two things: (1) the date with the most


C++
Write a program that lets the user enter a list of birthdays. Extract from this input two things: (1) the date with the most common day of the month and (2) the month with the most people born. When the month is entered as -1, stop reading input and display the statistics. We will not test for a tie in either of these statistics. You may assume at least one date is entered. The dates will always be enter in the format (with a single space between): mm/dd/yyyy Example 1 (user input is underlined): Gimme dates! 2/25/2021 -1 Most common day: 25 Most common birth month: 2 Example 2 (user input is underlined): Gimme dates! 1/2/3 3/2/1 3/1/2 -1 Most common day: 2 Most common birth month: 3 Example 3 (user input is underlined): 11/7/1972 2/14/1955 2/9/2005 1/11/1988 9/28/1993 9/3/1983 8/20/2012 11/28/1976 10/5/1997 10/17/1980 1/11/2010 1/22/1999 7/30/1966 3/14/1950 2/6/1988 4/2/1946 9/4/1987 1/19/1948 8/11/1977 11/22/1957 12/2/1970 Most common day: 11 Most common birth month: 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
