Question: C++ Write a program that opens a file of the users choice that contains a list of birthdays. Extract from this file two things: (1)
C++
Write a program that opens a file of the users choice that contains a list of birthdays. Extract from this file two things: (1) the date with the most common birthday (all of them) and (2) the month with the most people born. We will not test for a tie in either of these statistics. The file tested will always be in the format: mm/dd/yyyy Example 1 (user input is underlined): Enter file name: bday1.txt Most common birthday: 1/1 Most common birthday month: 3 Example 2 (user input is underlined):
Enter file name: bday2.txt Most common birthday: 8/15 Most common birthday month: 8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
