Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem Statement: Write a c++ program which consistsof two classes: 1. Date 2.

ID: 3612460 • Letter: P

Question

Problem Statement:

Write a c++ program which consistsof two classes:

1. Date

2. Student

First classDate should contain three data members:

        Day

        Month

        Year

Date also containfollowing member functions:

       Setter function

       Getter function

       showdate()



Now second classStudent should have following three datamembers:

       ST_ID

       Name

       Ad_date

Where ID andName are char pointer whileAd_date (Date of Admission) is of type Date.

Studentclass should contain two member functions:

     Display()

      setdate()

Now in main function create an object of ClassStudent and call the member functions with it.

--------------------------------------------------------------------------

Sample output:

Name:              Ali

ID:                BC020400000

Admission Date:     12-08-2008

Explanation / Answer

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote