Question: You are to create a program that you use for keeping track of textbooks required and recommended for classes and the cost of those textbooks.

You are to create a program that you use for keeping track of textbooks required and recommended for classes and the cost of those textbooks. All input will be taken from standard input. Each line of input will begin with a single or double character code that identifies the type of operation that line describe

The possible line formats are:

You are to create a program that you use for keeping trackof textbooks required and recommended for classes and the cost of those

Notes: - The program should be developed in C++ - Books will be defined before details or costs are added - Books and courses will be defined before books are added to courses. - Note that later lines can overwrite information from previous lines. For example, a price could be updated, an edition number could change, etc. The last of the input lines should be the one used. - Printed lists should be reasonably informative, with all information provided possible (e.g. when printing a book, print the title, author (if known), costs (if known), etc.

NO SPAM RESPONSES PLEASE!!! READ THE QUESTION CORRECTLY BEFORE ANSWERING. THANKS!

Command B Explanation Define a book. The ISBN is a 13-digit number. The Title is a string of arbitrary length (ending with a line break). (Note that you favorite integer data type may not big enough for 13-digit numbers. In that case, it is OK to use a C++ std:string instead to store this number B 1234567890123 Programming for Programmers Example Command | D <isbn> <value> Explanation Define a characteristic of a book (for the book with the given ISBN. If 'A' is used, then the Author is set, and the value is name of the author (string of arbitrary length, ending with end of line). If 'E' is used, the value is the number of the edition (a positive integer). If D is used, it is the date of publication, where the date is in MM/YYYY format (no day) Example D 1234567890123 D 01/2017 Command M <isbn> <cost> <n iuir i e explanation define the cost for a book. isbn is number an amount expressed as floating-point with spaces after decimal point. final letter indicates whether price new used rented or electronic version of book may have different each format. m n example command c code> <course number> <name> Explanation Define a course. The Department Code is a 4-letter code for a department. The course number is a 3-digit number for the course. The name is a name for the course of arbitrary length, ended by the end of the line C CSCE 315 Programming Studio a string Example Command A <isbn> <department code> <course number> <section number> Explanation Assign a book to a class. The ISBN is the ISBN number for the book. The Department Code and Course number are as in the definition of a course. The section number is a 3 digit integer. The final digit is either R for required or O for optional A 1234567890123 CSCE 315 501R Example Command B<isbn> <title> Explanation Define a book. The ISBN is a 13-digit number. The Title is a string of arbitrary length (ending with a line break). (Note that you favorite integer data type may not big enough for 13-digit numbers. In that case, it is OK to use a C++ std:string instead to store this number B 1234567890123 Programming for Programmers Example Command | D <isbn> <value> Explanation Define a characteristic of a book (for the book with the given ISBN. If 'A' is used, then the Author is set, and the value is name of the author (string of arbitrary length, ending with end of line). If 'E' is used, the value is the number of the edition (a positive integer). If D is used, it is the date of publication, where the date is in MM/YYYY format (no day) Example D 1234567890123 D 01/2017 Command M <isbn> <cost> <n iuir i e explanation define the cost for a book. isbn is number an amount expressed as floating-point with spaces after decimal point. final letter indicates whether price new used rented or electronic version of book may have different each format. m n example command c code> <course number> <name> Explanation Define a course. The Department Code is a 4-letter code for a department. The course number is a 3-digit number for the course. The name is a name for the course of arbitrary length, ended by the end of the line C CSCE 315 Programming Studio a string Example Command A <isbn> <department code> <course number> <section number> Explanation Assign a book to a class. The ISBN is the ISBN number for the book. The Department Code and Course number are as in the definition of a course. The section number is a 3 digit integer. The final digit is either R for required or O for optional A 1234567890123 CSCE 315 501R Example</section></course></department></isbn><ame></ame></name></course></n></cost></isbn></value></isbn>

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!