I'm having a problem with a program I'm doing for class. The first part I have finished, it's a program that allows the user to enter a number from 1 to 365, and it outputs what Month and day of the month that number is associated with. My problem arises in the second part of the program in which I need to modify the program so that it allows the user to enter a month and day of the month, and outputs the associated day of the year. Essentially the finished program should allow the user to enter whichever they wish, and receive the opposite as output. I think I need to use an overloaded constructor that accepts a string, and an integer, but I'm not sure where to go from there.
Rofljosh 0 Newbie Poster
daviddoria 334 Posting Virtuoso Featured Poster
Rofljosh 0 Newbie Poster
Sky Diploma 571 Practically a Posting Shark
Rofljosh 0 Newbie Poster
VernonDozier 2,218 Posting Expert Featured Poster
Rofljosh 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.