Enter book number: 0755798652
Enter price per copy: 34.98
Enter expected class enrollment: 31
Enter 'R' if required or 'S' if suggested: r
Enter 'N' if new or 'O' if not a new text: O
First off surround the text of code with {code} and {/code} except use square brackets [] instead of curly braces {} to make it easier to read.
Also, be a bit more descriptive about your problem. It looks like your issue is scope, but that's a guess bc you aren't explaining the issue you are having. Letter1 and letter2 in
Have no values. They are not the same variables as the ones in the main. You need to either make them global variables to the file or pass them as arguments to the function.