[SOLVED] Johnny is planning to expand his small bookstore to sell Compact | SolutionInn

Question: Johnny is planning to expand his small bookstore to sell Compact Disks and DVDs. He needs your help. Create a program to manage Johnny?s inventory. Johnny is planning to expand his small bookstore to sell Compact Disks and DVDs. He needs your help. Create a program to manage Johnny?s inventory.

The program must do the following:

Allow entering new items into the program from the keyboard ? this identifies the items Johnny will sell, Book, CD, or DVD and the proper inventory record created for each one. The SKU, number on hand, description and so-on, are initialized at this time. Some of these items will be updated when receiving an order. SKU (Stock Keeping Unit) is a unique item number. Do not allow the user to enter this number. They might duplicate it. Create the number inside the program. The best way would be to create a static object Count variable and use that to create a new SKU. NOTE: some data members will reside in the base class and some in the derived classes. You must provide for appropriate member functions and data. ?? Receiving an order: This means the number of items received is entered into the program along with its cost per item and other pertinent details (see below). If there is a change in the cost, the new selling price is calculated. Calculate the selling price of each item from its cost based on a markup. The markup for books is 25%, for CDs is 30% and for DVDs is 40%. Price = Cost + Cost * percentage Sell an item: On hand is checked, and if there is enough merchandise, the sale is recorded by decrementing the number on hand by the number sold, computing the total price, including sales tax at 9.25%. Use a constant to store the tax percentage. If there is not enough inventory, sell whatever is available and issue a message. Output a report of all items on hand, including their total dollar value (not total cost). Include a warning whenever there are fewer than 10 of an item currently on hand.

For each item your inventory program must maintain the following:

When new items are created by using feature 1, assign an inventory number for the item. For Books, maintain the title, author, and short description. For CDs maintain the title, artist name, number of tracks, playing time, and genre such as: Pop, Jazz, Rock, Country, Rap, etc. Make this open ended so new classifications can be entered. A text field will do. For DVDs maintain the title, director, lead actor, playing time, and genre such as: Drama, Comedy, etc.(a text field) For all items, compute the price based on cost and markup, keep count of the number on hand. The report called for by requirement 5 should output all information about each inventory item. You will need to take advantage of the capabilities of C++ classes, inheritance, and polymorphism, including virtual functions.

Program Design:

All data members in all classes must be private. Create a class called Inventory that handles the inventory. The main function calls only a member functions of this class to display a menu. The rest of the inventory management is done in this class. The other classes (below) are never directly referred to in the main function. Create a class called Item which will serve as a base class for each of the several derived classes for Johnny?s merchandise. The classes Book, DVD and CD will inherit this class. The inventory class must maintain an array of pointers to Item objects to keep the inventory. Please do not use anything more sophisticated than an array. These pointers can point to Book, CD, and DVD objects. Keep the program simple. I am not interested in how slick you can make it. I am interested in whether you can demonstrate basic competence in the use of classes, inheritance, virtual functions, and good design. Make your Item class an abstract base class. All data members in the classes Book, CD, DVD and Inventory must be private. This is to assure that you use the C++ capabilities that this assignment is all about. Do not use any global, protected, or public variables. NOTE: To submit your project, create several items of each type, book, CD, and DVD. Create an order received for each type item, and several sales recorded to verify the various transactions. Include at least one sale that tries to sell more of something than you have on hand to test that aspect of your program. Also include a report to complete the test. Test, test, test, and test again. Inventory Class Illustration & Output Example Output Example: Main Menu: 1) 2) 3) For Sale enter 3 4) For a complete report enter 4 5) To quit enter 5 Inventory Class Book CD Book Array of Item pointers DVD DVD Book New Item: Order: Sale: B) To add a new Book, enter B C) To add a new CD, enter C D) To add a new DVD, enter D M) To return to the main menu enter M B To enter a new item, enter 1 To enter an order, enter 2 Enter title: Enter author: Enter description: Enter cost:. Enter SKU for new order: Enter quantity received: Enter cost:. SKU: Quantity: Next SKU or O to total: SKU: Quantity: Next SKU or O to total: Receipt: 1008 2 1041 3 Total Tax Subtotal Report: $12.50 $21.00 $25.00 (Message if not enough) $63.00 $88.00 $7.70 $95.70 SKU 1001 (Book) Number on hand: Cost: Title: The Art of War Price: Total $ value Author: Sun Tzu Description: A book of strategy by a mysterious philosopher SKU 1002 (CD) So on and so forth 9 $12.45 (Inventory is low, place an order) $15.56 $140.04 Step by Step Solution

3.28 Rating (151 Votes )

There are 3 Steps involved in it So for solving these questions I am designing a Management System which helpful to johnny for planning and expand his small bookstore 1fist step was based on Use Case Diagram In our system we have thr... View full answer Get step-by-step solutions from verified subject matter experts

1,665views
4.9
(125 ratings)

Related Study Guides

Hist222 | History homework help

HIST222 DaWizest08See attached - 3 months ago - 5 WK5DISCUSSIONINSTRUCTIONS_HIST222.docx WK5DISCUSSIONINSTRUCTIONS_HIST222.docx INSTRUCTIONS. Choose one of the below for your main post. Respond to at...

historystatistics

HIST405N Week 1 | US Culture and History in History - Chamberlain university

HIST405N United States History Week 1 Assignment Case Study Required Resources Read/review the following resources for this activity: Textbook: Chapter 1, 2, 3, 4 Lesson Minimum of 1 scholarly source...

historyart-design

Mythological comparison | History homework help

Mythological Comparison I am mePlease check the PDF file under the assignment. - 3 months ago - 10 MythologicalComparisonImagesandDetails-2.pdf MythologicalComparisonAssignment.pdf - Screenshot2025-10...

art-designhistory

HIST405N Week 1 | US Culture and History in History - Chamberlain university

HIST405N United States History Week 1 Assignment Required Resources Read/review the following resources for this activity: Textbook: Chapter 1, 2, 3, 4 Lesson Minimum of 1 scholarly source (in additio...

historyart-design

quantigration company scenario | Operations Management homework help

4. Write a (1,000- to 1,100 words) article on your chosen topic. Your article should synthesize perspectives from your sources, both primary and secondary, to form a cohesive historical narrative. It...

art-designhistory

Nutrition research topic selection | Biology homework help

Nutrition Research Topic Selection Prince100Select a nutritional intervention (diet plan) to research (ex. Ketogenic diet) and find at least three (3) scholarly sources supporting, or opposing, the ef...

historyart-design

HIST405N Week 1 | US Culture and History in History - Chamberlain university

HIST405N United States History Week 1 Discussion The Cost of Expansion Required Resources Read/review the following resources for this activity: Textbook: Chapter 3, 4 Lesson Minimum of 1 scholarly so...

historystatistics

Hum 102 module two project proposal | HUM 102 | Southern New Hampshire University - Manchester, NH

4. Explain how diverse perspectives influence self-concept. [Insert text.] References [Include any references cited in your paper in full APA style.] image1.png image2.svg course_documents/HUM 102 Cre...

art-designpsychology

Need Help With A Similar Question?

Our experts deliver perfect solutions with guaranteed A+ grades

A+
Student Grade
98%
Success Rate
12h
Delivery Time
Join 1,000+ students who got their perfect solutions
Rated 4.9/5 by satisfied students

Need Help With This Question?

Academic Expert

Subject Matter Specialist

98%
Success Rate
24/7
Support

Why Students Trust Us

  • PhD-Level Expertise
  • Original Work Guarantee
  • Better Grade or Free

"Got an A+ on my assignment. Exactly what I needed!"

Recent Student