Q: When I initialize my array to contain times like "0100" it prints out funny values. What's up?

A: If you are initializing the array with constants inside your program, C reads any number starting with the prefix 0 as being in base 8, or octal (as the prefix 0x means hex). So for the first part of your programming, don't use leading zeros. Later, be sure to put the leading zeros in your data file; fscanf will read them as decimal numbers, not octal.

Q: How do I print a time with a leading zero, like "0100"?

A: This is not required, but it is a nice bonus feature. Use a conditional that looks at the number and decides whether it needs a leading zero printed.

Q: If I can read the information from the data file, do I still need to initialize the arrays with constants?

A: You only initialize the arrays so that you can do your preliminary coding and debugging without worrying about reading data from a file. Once you are reading the file correctly, take out your constant initializations. The reason for developing the project in this order is that file reading is a common source of errors. Starting with constant initialization means that you can do lots of testing of your code, and save a working copy, before you start trying to read data in during execution.

Q: In number 8, how do we get the time?

A: Ask the user.

Q: What does "midnight" mean?

A: One minute after 11:59 p.m.