1. use fscanf, not scanf. If someone types a name longer than 15 characters, your program may crash.
2. call fflush(stdin) after each scanf/fscanf. This will consume the carriage return allowing the next character to be read.
3. when declaring character arrays, it's best to initialize them like so:
char name[15] = {0};
... or ...
memset(name, 0, sizeof name);
Makes debugging easier since you can distinguish characters actually read from characters set to nul.