help with project!

1) Store information into arrays: first name, last name, address, city, state, zip, phone number, 1 homework average, 3 test scores and one final exam. Read these in from a file.
2) Sort these according to last name first, then first name second.
3) Calculate the final grade by weighting each test score by 20%, the homework average by 15%, and the final exam by 25%.
4) Print out in table format the first and last name, homework


DONT WHERE TO EVEN START!
Start by reading from the file.
You'll have to first initialize the various arrays: first name, last name, etc. Then you'll read from the file (you're probably given the layout of the file in which the information will be stored) using an ifstream object (and possibly getline() as well). This data will be placed into the arrays using loops.

If the assignment is to use arrays, go ahead, but if it's an open-ended, do it however you want project, I'd define a class instead.

Parts 3 and 4 should be pretty simple once you've read in the data.
Topic archived. No new replies allowed.