Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USING C++: Problem B: Birthdays (20 points0 Make a program that reads a list of birthdays from a file called birthdays.txt (please make sure this

USING C++:

image text in transcribedimage text in transcribed

Problem B: Birthdays (20 points0 Make a program that reads a list of birthdays from a file called "birthdays.txt" (please make sure this name is exact). You will then ask the user to input a date and you are required to find: (1) who has the next birthday, (2) how many days away that birthday is from the input date and (3) how old the person will be on that birthday. (Note: you DO need to take into account leap year (see example 3) The format of "birthdays.txt" will be: name put together with underscores mm/dd/yyyy You may may assume there is at least one birthday in "birthdays.txt". You may also assume the date entered is valid. You do not need to check if the file opened correctly. Example 1 (user input is underlined): Current date? 1/1/2040 Next birthday: Mary Rasmussen. in 12 days will turn 81 Problem B: Birthdays (20 points0 Make a program that reads a list of birthdays from a file called "birthdays.txt" (please make sure this name is exact). You will then ask the user to input a date and you are required to find: (1) who has the next birthday, (2) how many days away that birthday is from the input date and (3) how old the person will be on that birthday. (Note: you DO need to take into account leap year (see example 3) The format of "birthdays.txt" will be: name put together with underscores mm/dd/yyyy You may may assume there is at least one birthday in "birthdays.txt". You may also assume the date entered is valid. You do not need to check if the file opened correctly. Example 1 (user input is underlined): Current date? 1/1/2040 Next birthday: Mary Rasmussen. in 12 days will turn 81

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions