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

Reviews

Write a Review

 

C/C++ Programming Questions & Answers

  Write a program that converts between app and ppm values

Write a simple program that converts between APP and PPM values

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Execute tests and repetitions

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

  Write a c program that reads a data file of floating numbers

Write a program that reads a data file of floating numbers into an array and prints the array elements along with the number of items in the array

  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.

  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.

  Develop a basic temperature class

You have to develop a basic temperature class

  Develop a simple poker game

Develop a simple poker game

  Write two short c programs and solve exam-style problem

Write two short C programs and solve four exam-style problems.

  Describe the probability of the moves

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

  Implement the guess the word

Implement  the ‘Guess the Word' game in an object-oriented manner

  Time conversion

Write a C++ program that takes an Eastern standard time in hours, minutes, and seconds,and prints it out in Central time, Mountain time, or Pacific time.

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