Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hey can you help me with this programing for C++? DateClass Private: Month: int Day: int Year: int MonthName(): string Public: DateClass(int, int, int) PrintMonth():

Hey can you help me with this programing for C++?

image text in transcribedimage text in transcribed

DateClass Private: Month: int Day: int Year: int MonthName(): string Public: DateClass(int, int, int) PrintMonth(): void Procedure: 1. Create the Class DateClass with the following objects: 3 integer class variables (Month, Day, Year), and a (1) function call MonthNamel). These 4 object will be private. 2. In the public side of the class implement the constructor DateClass(int, int, int). The constructor will have 3 integers as parameters (m-> month, d-> day, y->year) those 3 parameters must be storage in the class variable Month, Day, and Year. And, the function PrintMonth). This function won't return anything, and it won't accept any parameter. Its only function will be to evaluate the variables: Month, Day, and Year and print it in the format shown in the first graphic. Don't forget that the PrintMonth() function must invoke the MonthName() function to evaluate the Month variable. 3. The function MonthNamel) which it will return an string (the month ex: 1=> January, 2= February etc.) You will need to use the IF statement to evaluate the Month passed by the Application when you create the instance of the class 4. Make a screenshot of all your output and code. And Paste them in this MS Word Document

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

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

=+ d. a professor deciding how much to prepare for class

Answered: 1 week ago

Question

=+ a. a family deciding whether to buy a new car

Answered: 1 week ago