Create a program that maintains the required book catalog

Assignment Help C/C++ Programming
Reference no: EM131818

Create a program that maintains the required 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 adds 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 required. In addition there could 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 could 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 should aid a librarian on a circulation desk to return - lend or 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

978054735808

 

Huckle's Opposites

Richard Scarry

97815725158061

 

Froggy Eats Out

Jonathan London

0439396441

 

Froggy's First Kiss

Jonathan London

0590376098

 

Froggy Learns To Swim

Jonathan London

059027452X

 

The Peace Book

Todd Parr

0316835315

 

 

 

 

 

 

Welcome to the Children's Library!

 

1.  Return Book

2.  Lend Book

3.  Check Availability

4.  Print List

5.  Quit

 

Choose Option: 2

 

Book Title: Froggy Eats Out

 

1.  Return Book

2.  Lend Book

3.  Check Availability

4.  Print List

5.  Quit

 

Choose Option: 3

 

Book Title: The Peace Book

 

This book is available.

...

...

...

 

 

 

 

You to use STL containers and algorithms that you find appropriate. In particular, attempt to remove all loops from the application.

Reference no: EM131818

Questions Cloud

Write a report to investigate the government planning : Report in which you investigate the Federal government's planning and response to hurricanes
Prepare a graph of the storage requirements : Prepare a graph of the storage requirements for the project.
Calculate the size of the state space as a function of n : n vehicles occupy squares (1, 1) through ( n , 1) (i.e., the bottom row) of an n × n grid. The vehicles must be moved to the top row but in reverse order
Ac analysis gain at midband with bypass capacitor : AC Analysis Gain at Midband (with bypass capacitor in circuit) Connect the bypass capacitor using the switch.
Create a program that maintains the required book catalog : Create a program that maintains the required book catalog for the circulation desk of a library.
Which of the happing tends to occur during recessions : Which of the followings tends to occur during recessions Cyclical unemployment tends to fall The stock markets tends to surge (experience a rapid rise in prices) Interest rates tend to fall Gross Domestic Product rises Consumer ..
Correlation and regression : What are the degrees of freedom for regression
Contractionary and expansionary monetary policy : What is the difference between contractionary and expansionary monetary policy?
Check the symmetricality : Illustrate why the A and B are symmetric

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Structured programming using procedural languages

A a program that is called "Playing with Numbers or Letters".

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Prepare a linux shell

Prepare a linux shell (in other words, write a C/C++ program) that will recursively prompt for input from the user. The shell should prompt as

  Describe the probability of the moves

Write a program in C++ to describe the Probability of the moves

  Write a program to read a data file and extract parameters

Write a C/C++ program to read a data file and extract parameters. The program must obtain the filename via a command-line argument.

  Write a program that converts between app and ppm values

Write a simple program that converts between APP and PPM values

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Model-view-controller

Explain Model-View-Controller paradigm

  Execute tests and repetitions

Read data from standard input and store them in an array, Execute tests and repetitions

  Calculation of mortgage interest rates

Instruction of pointers and the calculation of mortgage interest rates.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Write a program to calculate existing angles

Write a program to calculate existing angles and do if and then from this, and to place fixed angles at certain position.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd