Each student will have to build a bookstore management system for adding, deleting, or searching for books in the store. Each book will have a title (string), bin number (four digit integer), and a price (double). When the program starts, it will load existing book information from a text file and when the program exits, it will save all changes made while running the program to that same file. After the book information is loaded from the file ( In this phase all you need to do is just print a message that the book information is loaded, but you don’t really open any files or load anything) , the program will display the following main menu to the user: Please Select an Operation (1-4): 1- Add a Book 2- Remove a Book 3- Search for a Book 4- Exit System 2 This menu will keep showing after each time a user selects an operation and that operation is performed. When the user selects operation 4 (exit system), the program will load all changes (updates) to the file ( In this phase all you need to do is just print a message that the book information is updated, but you don’t really open any files or update anything) and will then exit. Your program should at least contain the following functions: void displayMainMenu(); // displays the main menu shown above void addBook(); // adds information for a new book void removeBook(); // removes information of old book void searchForBook(); // searches for a book in the store void uploadDataFile(); // uploads book data from file void updateDataFile(); // saves book data updates to file For this phase those functions are just void functions that will mostly contain printf statements just to print what they are supposed to do. In later

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Each student will have to build a bookstore management system for adding, deleting, or searching for books in the store. Each book will have a title (string), bin number (four digit integer), and a price (double). When the program starts, it will load existing book information from a text file and when the program exits, it will save all changes made while running the program to that same file.
After the book information is loaded from the file ( In this phase all you need to do is just print a message that the book information is loaded, but you don’t really open any files or load anything) , the program will display the following main menu to the user:
Please Select an Operation (1-4):
1- Add a Book
2- Remove a Book
3- Search for a Book
4- Exit System
2
This menu will keep showing after each time a user selects an operation and that operation is performed. When the user selects operation 4 (exit system), the program will load all changes (updates) to the file ( In this phase all you need to do is just print a message that the book information is updated, but you don’t really open any files or update anything) and will then exit.
Your program should at least contain the following functions:
void displayMainMenu(); // displays the main menu shown above
void addBook(); // adds information for a new book
void removeBook(); // removes information of old book
void searchForBook(); // searches for a book in the store
void uploadDataFile(); // uploads book data from file
void updateDataFile(); // saves book data updates to file
For this phase those functions are just void functions that will mostly contain printf statements just to print what they are supposed to do. In later phases, the function prototypes will change and the functions will do more.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY