Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

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
0316835315
                                                       
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

Assignmenta student had to make a decision on how to be

Assignment A student had to make a decision on how to be paid. The student could accept a straight $10/hour or take 10 cents for the first hour, but have the hourly wage double each hour. That is, the student would make ...

Develop a pac and flowcharts for a program that does the

Develop a PAC and flowcharts for a program that does the following. A warehousing company has contracted you to develop a computer program that determines shipping costs for items by size. If the item is over 4 cubic fee ...

The colors red blueand yellow are known as the primary

The colors red blueand yellow are known as the primary colors because they cannot be made by mixing other colors. When you mix two primary colors, you get a secondary color as shown here: When you mix red and blue you ge ...

1 devise a register-allocation strategy on the assumption

1. Devise a register-allocation strategy on the assumption that we automatically store all registers on the stack before each procedure call and restore them after the return. 2. Construct the register-interference graph ...

Assignmentwrite a console application to meet the following

Assignment Write a console application to meet the following requirements. Create a system for a simple library. The library has a name and a list of books. Each book has a title, author and an int as the id number. Defi ...

1 take into account the number of hours worked if the

1.) take into account the number of hours worked. If the hours is greater than 40, then calculate 1.5 times the rate times the hours over 40. Add the overtime pay to the regular pay, calculated by multiplying rate times ...

Assignmentwrite a narrative describing the objective of the

Assignment Write a narrative describing the objective of the program, and what each routine will do, including the reason for and purpose of the array(s), in addition to the selection statement and use of iterations Expl ...

The air pollution level of a city on a given day is a

The air pollution level of a city on a given day is a function of the time of day (in hours). As an environmental specialist, you have collected carbon dioxide level readings at different times. An example of one day of ...

Lab- forms loops and stringssubmission Lab- Forms, Loops and Strings Submission

Lab- Forms, Loops and Strings Submission Instructions How Please submit your lab report to the Lab4_Submission folder in Moodle. When Labs are due in 1 week on Feb. 13, 2014 Exercises: Goals: - Gain more hands-on with us ...

Assignmentindent code and insert comments to document your

Assignment Indent code and insert comments to document your program. Program must be implemented and run as instructed Solve question 11 on page 974 using the following modifications: Design and implement the class myArr ...

  • 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

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro