Future Date Calculator

Have you ever wondered what date falls 259 days in the future, without taxing your brain? Now, with this assignment you can!

This assignment is intended to see if youve learned the basic concepts talked about thus far in the lectures.

  • You will be required to use the function getDayOfYear() provided in the attached .cpp file, you can paste it over to your cpp.
  • You will be required to read from a text file in your program
    • download the txt file attached to this assignment, open it in a text editor to familiarize yourself, your program must use this file.

Program

Use the attached txt file.

Use the function provided in the attached cpp file, this function requires that ctime be included

The file contains information about the months and lengths of a month of a year.

The 2 lines of the file contain:

  • Month-ordered abbreviations of the 12 months in a year
  • Month-ordered number of days for each month
    Note: for this assignment you do not need to consider leap years
    As you can see, row 1 and row 2 are related.

Your submission must:

  • Load the rows into appropriately named and sized arrays by reading from the file.
  • Ask the user: How many days in the future they want to display the date for?
  • Show the user the (abbreviated) Month and Day of the month that the day in the future falls on.

Note: for this assignment you do not need to consider leap years

  • Your program must only accept unsigned int values from the user (hint: look at code from previous assignments
  • Your program should be able to handle any number that an unsigned int can hold.

Sample Output: (run on October 12th)

Incredible Edible Date Predictor!
*********************************
Enter the number of days in the future you want to predict the date for:2
The Date you have asked for is:
Oct 14
Incredible Edible Date Predictor!
*********************************
Enter the number of days in the future you want to predict the date for:1393
The Date you have asked for is:
Aug 6
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.