//Library (Book Database) #include #include ofstream outfile; ifstream infile; void addbook(), viewbook(), browse(), removebook(), bookcodekey(); int I; //this is the letter i capitalized, meaning a roman numeral 1 -- the first choice; int contquest; //question to continue or quit (use 2 diff. #'s) double inventory_count; //get rid of this line after I figure out how to implement this information char bookcode[3], title[31], author[31], ISBN[14], ISBN1[14]; main() { cout << "Welcome to the Library." << endl; cout << "Select a # from the following: " << endl; cout << "1. Add a book"<> I; switch(I) { case 1: addbook(); break; case 2: viewbook(); break; case 3: browse(); break; case 4: removebook(); break; case 5: return 0; break; default: cout << "Please type 1, 2, 3, 4, or 5 according to your selected option." <> inventory_count; if (inventory_count != 0) { inventory_count++; infile.close(); outfile.open("BookCount",ios::out); outfile << inventory_count; outfile.close(); } else { inventory_count = 1; infile.close(); outfile.open("BookCount",ios::out); outfile << inventory_count; outfile.close(); } cout <> contquest; cin.ignore(20, '\n'); if (contquest == 1) viewbook(); } else { cout << "Path 2.\n"; //Debugger main(); } } void browse() { cout << "Browse the library. "<