Answered step by step
Verified Expert Solution
Question
1 Approved Answer
HAVE TO USE THE FOLLOWING CODE and add to it CSci 1113: Introduction to C/C++ Programming for Scientists and Engineers Spring 2018 Homework 9 Due
HAVE TO USE THE FOLLOWING CODE and add to it
CSci 1113: Introduction to C/C++ Programming for Scientists and Engineers Spring 2018 Homework 9 Due Date: Friday, April 20, 2018 at 6:00pm. Instructions: This is an individual homework assignment. There is one problem worth 20 points. Solve the problem by yourself (unlike the labs, where you can work collaboratively), and submit the solution as a C++ source code file. Here are a few more important details You submit the correct file through Canvas by the due deadline You should follow the example input and output formats given in each problem description. (match the input and output format exactly) Regardless of how or where you develop your solutions, your programs compile and execute on cselabs computers running the Linux operating system . . . Problem: A "Beefier" Book Database This homework will carry on our work on the book database. A solution file for homework 8 is going to be provided, in case you need it. However, you are not required to use this, as long as your own solution is complete and 100% correct as per the requirements of homework 8 1. Program Tasks ("What do I have to do exactly?") In this homework, you will extend your book database in the following way: 1. Split the code into a header (hpp), a source (cpp) and a driver file (containing main0); 2. Perform multiple operations on the book records, described below 3. Use a basic "menu system" to prompt the user for their choice of operation. These are a) Add a new record from keyboard input, to be added to the end of the array of book objects In memory; b) Find a record using the author name (print "record not found" if the record does not exist), and display it on the screen. If there are multiple records that have the same author name, you have to display all those that match; c) Display all records from the input file on the screen; d) Choose a sorting criterion to sort the records, and send them to the output file and to the screen at the same time. Unlike homework 8, we will be not only sorting on book title, but we want to have the ability to sort on any field in the record. That is, the output file can be sorted on author name, or title, or edition, or publication year, or ISBN, or ID. The user wil choose what field he/she wants to sort the records on. Quit the program. e)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started