Create a program that maintains the required book catalog

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

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: EM13347885

Questions Cloud

Imagine that you work for fema or the department of : imagine that you work for f.e.m.a. or the department of homeland security.in light of the problems brought up by
Genome4u is a scientific research project at a large : genome4u is a scientific research project at a large university in the united states. genome4u has recently started a
1 n vehicles occupy squares 1 1 through n 1 ie the bottom : 1. n vehicles occupy squares 1 1 through n 1 i.e. the bottom row of an n times n grid. the vehicles must be moved to
Experimentuse the transistor board provideddc analysisa1 : experimentuse the transistor board provideddc analysisa1 connect a 15 volt supply to vcc and ground and accurately set
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. the book catalog is to
Question 1 an unanticipated demand-pulled inflation would : question 1 an unanticipated demand-pulled inflation would normally lead to all the following problems except a change
Correlation and regressionuse the subsequent hypothetical : correlation and regressionuse the subsequent hypothetical correlation matrix to answer the first two
It has to be between 210-280 words for each bullet consider : it has to be between 210-280 words for each bullet. consider that your team is a group of economic advisors working for
Consider a and b are symmetric illustrate why the following : consider a and b are symmetric. illustrate why the following are symmetric or not.1 a2 - b22 aba-b3 aba4 abab5

Reviews

Write a Review

C/C++ Programming Questions & Answers

  C program to calculate power loss in transmission line

Write program in C to calculate the power loss in transmission line with resistance of 0.05 ohms/mile. Calculate power loss if 500 kW of power is transmitted from power generation station

  Write a recursive and iterative versions of binary search

in C++ write a recursive and iterative versions of binary search and compare their run times using the array a[i]=i, i=0,..., n-1

  A company hired 10 temporary workers

A company hired 10 temporary workers who are paid hourly and you are given a data file that contains the last name of the employees, the number of hours each employee worked in a week, and the hourly pay rate of each employee.

  Write an abstract class carbon footprint

Using an abstract class with only pure virtual functions, create three small classes unrelated by inheritance---clases Building, Car and Bicycle.

  Repeat these questions by writing functions

Repeat these questions by writing functions that receive the arrays as constant reference parameters and return the appropriate values through the function name (via return statement). The function header could look like:

  Write a c program to do the followingwrite a program that

write a c program to do the followingwrite a program that reads a data file of floating numbers into an array and

  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

  1 write a c program that takes an eastern standard time

1. write a c program that takes an eastern standard time in hours minutes and secondsand prints it out in central

  50 element array of integers with random numbers

write a java code to instantiate and initialize a 50 element array of integers with random numbers in the range of 45 through 256 inclusive.

  How the function delete can be implemented for arrays

Explain in details how the function Delete() can be implemented for arrays to function exactly as it would with lists. Use pseudo code to clarify your explanation.

  Native method with deadlock detection and recovery

The naïve method with deadlock avoidance and the naïve method with deadlock detection and recovery - what will you measure and compare in order to determine the winner or which is better

  Write the class definition for a class called complex

. Write the class definition for a class called complex.

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