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

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!