I have my code completely working but cant get it to loop back to the very begining. I need it to say "Enter the number of books in the sale" instead it says "Enter price: ". What do I need to do to have it loop back to the beginning completely?
Eyenrique's answer is more helpful than Backslashx00's. Involving the main function in recursion is not a good idea, especially in your case since calling the main function from within a while loop has the potential for creating a never-ending loop. For example, your user went through several main calls, but once he or she enters 0 for the number of books, the user will be confused when "Enter Price" pops up. Then, your user would either have to close the window via the button or he or she would have to enter 0 so many times.
Please don't give people solutions to their homework. It doesn't help them learn and it doesn't help this site. People start to expect/demand solutions when they show up and creates a very negative attitude from the people who regularly help people out.
By all means give them sample pieces of code or explain things to them, but doing their assignment is highly discouraged.
I expect responsibility from the people who ask for help, i suppose that this people are actually in some courses where they learn basic concepts -from their teachers- or are studying some textbook and if i do a partial or complete solutions they can learn by examining the code. I like share solutions -if i have it- and if i can't share solutions so i think that i'm in the wrong site.