Another programming problem

I've been assigned the following for my C++ class. Some help would be appreciated. Thank you in advance.

a) A gym club keeps information on the name, height, date of joining, and fitness score (out of 100) for each member. Define a GymMember class to hold the data. Provide a default constructor, and a constructor with arguments for name, height, date of joining, and fitness score. Make all data members private and provide appropriate accessor and mutator member functions. Place any data type definitions and the class declaration in a header file GymMember.h. Place the class implementation in a file GymMember.cpp. Write a main program Problem2a.cpp that will create an array of GymMember objects. Populate all array elements - at least one array element using constructor arguments, and at least one array element using mutator functions. Then your program should print the array on the screen in a well formatted table.

b) Write another main program Problem2b.cpp that will use dynamic memory allocation to create a dynamic array of GymMember variables to populate and print. You can populate the array by initialization, by reading from the keyboard or by reading from a file. Then your program should print the array on the screen in a well formatted table.
Please note, that this is not a homework site. We won't do your homework for you. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.

We didn't see your attemts to solve this problem youself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again. As it is impossible to find deriviative of function without knowledge in ariphmetics, you cannot do more complex tasks in programming without clear understanding of basics
I'm not asking for anyone to do my homework for me. I'm simply asking for help. I'm not sure where to start because, even though this problem clearly requires more than basic programming knowledge, my class is only a beginners class. This is for my second programming course in college (only a level 100 course), and yet my professor seems to believe everyone in my class is capable of this more advanced material. I simply require more knowledge on files, as I'm not sure how to use them. I provided the question from my homework for the sole purpose of possibly better understanding what I need to know if someone were to apply their knowledge of files in C++ to the question itself.
There is good tutorials on this site: http://www.cplusplus.com/doc/tutorial/
For your assigment you should read Classes (I and II) and Input/Output with files.
Arrays and Dynamic Memory might be useful too.
If you haven't learn to use data structures or dynamic memory and arrays why would they give a task like this

So I am assuming you already know these concepts and should be able to start
Topic archived. No new replies allowed.