Question: This simple extra credit assignment asks you to write a C++ program to maintain a list of club members. Each member supplies the club with

 This simple extra credit assignment asks you to write a C++

This simple extra credit assignment asks you to write a C++ program to maintain a list of club members. Each member supplies the club with full member name ("fullname"), their age ("age"), and their sexual orientation ("sex") First create a C++ class called Member that contains the fullname, age, and sex fields. This class will be declared and defined with the member.h and member.cpp modules. The age field should be stored as an integer and the other two are character strings. Then add a useful constructors for new members and then getter & setter methods to maintain the various fields. Second, write a program to test your Member class. Call this program main.cpp. This program should store the information for five members, sort the members by full name, and then print out the full list, in sorted order. Your program must contain a working sort, which is tested by your member data. Display the member data before and after the sort. Your program must use an array to hold the member's information. You should create three files and turn these in: main.cpp, member.cpp, and member.h Example run: sex name. . . age huey duey Tuey donald 13 hillary 14 10 12 sort sex name. . . age donald 13 due hillary 14 huey Tuey 10 12

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!