Okay, all I need help with is how to start this program.
How do I let the user start the program CA_Calculator with the command line:

./CA_Calculator -q 5 -a 8 -l 10 -t2 -f

Once they enter this the program then asks the user to enter the scores for 5 quizzes, 8 assignments and so on.

How can I do this? I know how to do the calculating the average part but its this begining using the command line and then having the progrom have the user enter in all the scores and then average the scores is what is confusing me? How do I store all this info so it can calculate? Anyone please show me what this program would look like.

Well, to do the job properly, you would need to interpret the data from the command-line to see whether it is valid, and if there are problems, output an informational message to the user before terminating the program.

You can use the strcmp() function in order to compare two character strings, and atoi() to convert a string to an integer, for example

1234567891011

if (argc > 3)
{
if (!(strcmp(argv[1], "-q"))
{
// first parameter was -q// next parameter should be a numberint number = atoi(argv[2]);
// number should be greater than 0
etc...
}
}

Though if the parameters can be in any order, you would need more generalised code than this.

First I have seen of that. Could you help me with getting this whole thing to work? What will the code have to look like to get the command line arguments working right? I just need a real working example of this first part with all the options and I can continue from there with error checking and whatever is left. I am just very stuck at this one point. Please.