Ask Question, Ask an Expert


Ask Programming Language Expert

General Instructions:

In this assignment you will create a program that maintains the available book catalog for the circulation desk of a library. The book catalog is to be maintained in sorted order. The list is initialized from information stored in the file ‘AvailableBooks.txt’. The available book information is to be read from an input file which includes the book title, author and is for each book. The librarian interacts with the list through an interactive menu. The menu would let the librarian to return books, lend books and check if a book is available. In addition there should be a menu option that lets the librarian to print the list of available books at any given time in two modes: in sorted order by book title or in sorted order by author. The quit option should save the current list of available books into the file ‘AvailableBooks.txt’. The entire session should be sent to the screen as well as output file ‘Session.txt’.

Specific Instructions:

Your program must help a librarian on a circulation desk to return/lend/check availability of books.The list data is kept sorted alphabetically by book title.The format for the input and output filesare given below:

AvailableBooks.txt                                           Session.txt

Baby Day!                                                     
Nancy Elizabeth Wallace                                Welcome to the Children’s Library!
978054735808                                              1. Return Book
                                                                  2. Lend Book
Huckle’s Opposites                                         3. Check Availability
Richard Scarry                                               4. Print List
97815725158061                                            5. Quit
                                                              Choose Option: 2
Froggy Eats Out                                             Book Title: Froggy Eats Out
Jonathan London                                            1. Return Book
0439396441                                                   2. Lend Book
                                                                   3. Check Availability
Froggy’s First Kiss                                           4. Print List
Jonathan London                                             5. Quit
0590376098                                               Choose Option: 3
                                                                 Book Title: The Peace Book
Froggy Learns To Swim                                    This book is available.
Jonathan London                                                  …
059027452X                                                        …
The Peace Book
Todd Parr
You utilizeSTL containers and algorithms which you find suitable. In particular, attempt to eliminate all loops from the application. Include all source code (well documented) and sufficient representative output.

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M91625

Have any Question? 

Related Questions in Programming Language

Integrative programmingassignment- managing a user account

Integrative Programming Assignment- Managing a User Account List Objective: To manage a user list that can be modified and saved to a text file. Inputs: • Input text file consisting of pairs of usernames and passwords, s ...

Assignmentcase problem1 - online trivia found on pages

Assignment: Case Problem1 - Online Trivia found on pages 794-795 of your textbook. Complete the web pages and upload them to your 000WebHost account. After uploading the files make sure to update your index.html page to ...

1 implement dfs by using prolog2 implement bfs by using

1. Implement DFS by using PROLOG. 2. Implement BFS by using PROLOG. 3.  Solve the problem of Question 3 in Assignment 1 by using your PROLOG programs of DFS and BFS, respectively. Question 3 from Assignment 1 to Solve wi ...

Programming lab assignment set awhat to submitcomplete

Programming Lab Assignment (Set A) What to Submit Complete Problem Solving Steps 1 - 3 (check plan, data analysis, initial algorithm, and refinement algorithm) for the following programs. 1. (Name: lab1a-1.cpp) Write a p ...

Programming assignment- implement a udp client and udp

PROGRAMMING ASSIGNMENT- Implement a UDP client and UDP server that support simple timeout-based retransmission with AIMD congestion control: -The client should send as many packets as are in its CURWIN (current window) a ...

1 tic tac toein a tic tac toe game two players x and o take

1 TIC TAC TOE In a Tic Tac Toe game two players, X and O, take turns to mark the spaces in a 3X3 grid. The winner will be the player who first succeeds in placing three of his/her marks in a horizontal, vertical, or diag ...

Csis program homeworkwrite a program where the user will

CSIS program homework Write a program where the user will enter a number between 1 and 50 representing a state. The program should display the full name of that state. Assume the states are in alphabetical order, that is ...

The briefyour small development team of ideally three

The Brief Your small development team of (ideally) three people has been asked to implement and test the Human Resource Information System desktop application. Your software product will be a database- backed desktop app ...

Shell programmingyou have created the directory structure

Shell Programming You have created the directory structure and some base files to be used by the Web server and Web site. For the Web site to be created in a production environment, you need to package your commands in a ...

Add a swift class file to the project that illustrates and

Add a SWIFT class file to the project that illustrates and contains the following: • The class name is 'Calculator' • Has public variables of the type float called numerator, denominator and total. • Has a method called ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate