(new) C++

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

(new) C++

Post by answerhappygod »

(new) C++
New C 1
New C 1 (103.49 KiB) Viewed 17 times
Programming assignment 4: Write a program to do the following: 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply