Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Define a structure to store a date, which includes day(int), month (int), and year (int). 2. Define a structure to store an address, which

1. Define a structure to store a date, which includes day(int), month (int), and year (int). 2. Define a structure to store an address, which includes address(house number and street) (string), city (string), state (string), zip code (string). 3. Define a class to store the following information about a student. It should include private member variables: name (string), ID (int), date of birth (the first structure), address (the second structure), total credit earned (int), and GPA (double). And it also has public member functions: constructors (at least one default and one non-default), Accessors and Mutators for each member variable, and so on. (write definitions of at least one member function outside the class) 4. Test each member function of the class in main function. Each piece information of a student is inputted by user, not initialized by you (programmer) except for default constructor. 5. In main function, choose any one student you defined, and then check whether the student lives in the zip code of 11235 (close to school) or not, and check whether the student's birthday is in November or not

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions