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

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Create a program for a company named retail-mart

Prompt the user to enter an item name (one word only), a quantity and a price. For this step, in addition to functionality, I'll be looking at: location of the variable declarations; appropriateness of data types selected; appropriateness of the va..

  Write a program that converts between app and ppm values

Write a simple program that converts between APP and PPM values

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write the code

Write a program that allows an instructor to keep a grade book. Each students has scores for exams, homework assignments, and quizzes.

  Calculate the trajectory of a soccer ball

Write a program to calculate the trajectory (flight path) of a soccer ball

  Structured programming using procedural languages

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

  Prepare an arbitrary sinusoidal waveform

Create a program to compute the derivative of an arbitrary input function, with arbitrary duration and arbitrary limits

  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.

  Public transport fare ticketing system

Implement and test a public transport fare ticketing system.

  Prepare a program for a retail-mart company

Prepare a program for a company Retail-Mart.

  Write two short c programs and solve exam-style problem

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

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