// File: Book.cpp // // Implementation of the Book class. #include #include "Book.h" using namespace std ; // Default Book constructor. // Make zombie book. Book::Book() { // do nothing } // Alternate Book constructor. Use this one. // Must initialize Book data members. // Initially a book is not rated. // Use OrderItem() alternate constructor to initialize base class members. // Book::Book(string title, string author, unsigned int sku, unsigned int price) : // Add member initializers here!!! { // anything else needed?? } // Prints out the title of the book, its author and rating, if rated. // Also prints out the inherited data members m_sku, m_price and m_quantity. // Also prints out cost of this item. // void Book::PrintItem() { // Implement this function!!! } // Set the rating of this book to given parameter. // Note that the rating should be between 1 and 5 stars, so: // if the rating is < 1, make it 1. // if the rating is > 5, make it 5. // Mark the book as having been rated. // void Book::SetRating(unsigned int rating) { // Implement this function!!! }