hi i need assist with my assignement in c++ : 2. Day of the YearAssuming that a year has 365 days, write a class named DayOfYear that takes an integerrepresenting a day of the year and translates it to a string consisting of the month followedby day of the month. For example,Day 2 would be January 2Day 32 would be February 1Day 365 would be December 31.The constructor for the class should take as parameter an integer representing the day ofthe year, and the class should have a member function print() that prints the day in themonth-day format. The class should have an integer member variable to represent the dayand should have static member variables of type string to assist in the translation fromthe integer format to the month–day format.Test your class by inputting various integers representing days and printing out theirrepresentation in the month–day format.3. Day of the Year ModiﬁcationModify the DayOfYear class, written in an earlier Programming Challenge, to add aconstructor that takes two parameters: a string representing a month and an integer in therange 0 through 31 representing the day of the month. The constructor should then initializethe integer member of the class to represent the day speciﬁed by the month and day of monthparameters. The constructor should terminate the program with an appropriate errormessage if the number entered for a day is outside the range of days for the month given.Add the following overloaded operators:++ preﬁx and postﬁx increment operators. These operators should modify the DayOfYearobject so that it represents the next day. If the day is already the end of the year, thenew value of the object will represent the ﬁrst day of the year.– preﬁx and postﬁx decrement operators. These operators should modify the DayOfYearobject so that it represents the previous day. If the day is already the ﬁrst day of theyear, the new value of the object will represent the last day of the year. i use visual studio to debug the programs should work in visual studio.
Place a similar order with us or any form of academic custom essays related subject and it will be delivered within its deadline. All assignments are written from scratch based on the instructions which you will provide to ensure it is original and not plagiarized. Kindly use the calculator below to get your order cost; Do not hesitate to contact our support staff if you need any clarifications.
Whatever level of paper you need – college, university, research paper, term paper or just a high school paper, you can safely place an order.