Write a program that contains an array of strings. The array should contain the names of the days of the week. Input from the keyboard is the value 0 through 6, where 0 == Sunday. Display the name of the day of the week from the numeric value input.
I had this same assignment for a class, but I also have this added to it, and I've read all the corresponding material in the book and have no clue what to do. Any help would be appreciated.
Here are the instructions:
Rewrite the program so that the input is passed on the command line when the program is executed. Do the work in functions. Be sure to check that the proper number of parameters were passed. If the proper number of parameters were not passed: display a usage statement to the standard error device, and exit the program with a non-zero return code.
I don't even know what it means by passes and parameters.