Question: Visual studio: c++ Design a program that uses a class called Date. The Date class should store a date in three integers: month, day, and

Visual studio: c++

Design a program that uses a class called Date. The Date class should store a date in three integers: month, day, and year. There should be member functions to print the date in the following forms:

1/15/13

January 15, 2013

15 January 2013

The class: variables: month, year, day

string array to store the months names

constructors: default and Date(int, int, int)

functions:

setNames (to initialize the string array to the months names),

modifier functions for month, day, year

accessor functions for month, day, year

displayDate1, displayDate2, displayDate3

Input Validation: Do not accept values for the day greater than 31 or less than 1 (dont worry about different months here). Do not accept values for the month greater than 12 or less than 1.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!