In C++ Lab 11: Record for Two Books Key Concepts: structs In this lab, you\'ll k
ID: 3683524 • Letter: I
Question
In C++
Lab 11: Record for Two Books
Key Concepts: structs
In this lab, you'll keep track of some information that a bookstore might keep in its database.
Follow the following steps:
Create a struct that defines a new type BookType. It should store the following about a book:
The author of the book
The title
The book's ISBN, a 10-character code that uniquely identifies a book
The book's publication year
The book's list price in dollars
Whether the book is hardcover or paperback.
Create a main program. In the main program, create two instances of bookType. Then fill up each record with valid information about two different books, where one is paperback and one is not.
You may simply hardcode this information with assignment statements. (If you want to do inputs, feel free, but that's not really the focus.)
The bookstore is having a sale on paperback books; they're all 10% off.
Check both books and change the prices on the paperbacks.
Sure, you could hardcode the records, but you should assume you don't know what they store and write your code generally.
Then figure out which book is cheaper.
Again, assume you don't know what's stored in records.
Print out the title, author, and price of the cheaper book.
please use iostream !!
Thank You