Assuming that a year has 365 days, write a class named DayOfYear that takes an integer representing a day of the year and translates it to a string consisting of the month followed by day of the month. For example,

Day 2 would be January 2
Day 32 would be February 1
Day 365 would be December 31.



The constructor for the class should take as parameter an integer representing the day of the year, and the class should have a member function print() that prints the day in the month- day format. The class should have an integer member variable to represent the day, and should have static member variables of type string to assist in the translation from the integer format to the month-day format. Test your class by inputting various integers representing days and printing out their representation in the month-day format.

need to figure out how to get my main function to dispaly the day THAT THE USER INPUTS in the correct month-day format.

Respuesta :

Answer:

just try your best and take a good guest you dont need to cheat

Explanation:

Quality is not an act, it is a habit. ...

Well done is better than well said. ...

Life is 10% what happens to you and 90% how you react to it. ...

With the new day comes new strength and new thoughts. ...

Knowing is not enough; we must apply. ...

Good, better, best. ...

Optimism is the faith that leads to achievement.