Home /
Expert Answers /
Computer Science /
c-please-6-6-final-project-vector-struct-additions-1-create-a-book-structure-near-the-top-o-pa496
(Solved): C++ Please 6.6 Final Project - Vector \& Struct Additions 1. Create a Book structure near the top o ...
C++ Please
6.6 Final Project - Vector \& Struct Additions 1. Create a Book structure near the top of Main. Make the Book structure contain the following fields of data (aka "data members"): - title - isbn - author_first - author_last - pages - value Be sure to use appropriate data types for each field 2. Create three Book objects: - book1 - book 2 - book3 Populate them with the following data: bookl.title = "Manakamana"; bookl.isbn = "023130551-6"; bookl. author_first = "Jenney"; bookl. author_last = "Ruthi"; bookl.pages =656; bookl.value =73.05; book2.title = "Polyester"; book 2 .isbn = "319619356-X"; book2. author_first = "Shelia"; book2.author_last = "Koepp-Prohaska"; book 2 pages =1372; book 2 value =100.95; book3.title = "Hen Hop"; book3.isbn = "526262621-1"; book3. author first = "Cheevers"; book3. author_last = "Kore"; book 3 .pages =433; book 3. value =129.33; 3. Create a new vector of Books called library. 4. Add all three books to the library. 5. Modify Option 3 of the switch statement so that it uses a For-Each Loop to print the data for each book in a format like this:
Title: Manakamana ISBN: 023130551-6 Author: Jenney Ruthi Pages: 656 Value: 73.05
Load default template... \#include using namespace std; int main( ) \{ 1/ Print menu cout < "Welcome to My Library!" < endl; cout <"Choose an option below: << endl; cout <"1… Add a Book" << endl; cout <"2… Load a Library File" < endl; cout <"3…... Display All Books" < endl; cout <"4… "...Delete a Book" < endl; cout <"5…... Total value of Library" < endl; cout ? " 6… Save and Exit" < endl; cin ? menuchoice; // Get menu choice cout < endi; // blank line /? ADD CODE HERE ? return ?; 3// end main Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box.