Your assignment is to create a Python program that simulates selling books in a bookstore. The program should use the information below to sell a book to customer and order books when it is needed.

MIS 315 HOMEWORK 3:
Bookstore Management
Your assignment is to create a Python program that simulates selling books in a bookstore. The program
should use the information below to sell a book to customer and order books when it is needed.
The store only sells 10 different book titles, and each title has 5 copies in the beginning. To fill inventory,
store manager defined a different minimum number to order new copies. Manager orders 5 copies of
each book in each order. Due to overhead charges, the manager only orders new books when at least
two books are under the minimum. You can see the minimum numbers for different books in the
following table:
Book 1 Book 2 Book 3 Book 4 Book 5 Book 6 Book 7 Book 8 Book 9 Book 10
3 2 1 2 5 3 2 1 0 0
Your program simulates customer’s request randomly. A customer wants to buy only one book at a time
and only one copy. If a book is available, program decreases from the inventory and shows number of
remaining copies of that book. Then program checks to see if number of copies is under the minimum. If
yes, the program checks to see if there is any other book under the minimum or not. In that case (where
two books are under the minimum), the program order new books and increase the number of books by
5.
It is possible that a book is not available if a customer wants to buy a book. In this case, program shows
an error message. Keep in mind that negative number of copies should not happen, meaning that your
program should not sell books more than available numbers.
Program simulates this process for 100 cycles of selling books and at the end, it shows number of copies
of each book title.
Some considerations as you write your program:
 The program does not ask for any input. You can create the limitation in your code
manually.
 Ensure that your prompts and output are crisp, professional, and well-formatted. For
example, ensure that you have used spaces appropriately and double-checked your spelling.
 You need to use list, functions, and for loops.

Please use the following example as a template for the tool’s expected functionality:
Welcome to the Bookstore App
The program starts to simulate process:
Selling Book 5, current available copies: 9
Selling Book 2, current available copies: 9
Selling Book 3, current available copies: 9
Selling Book 3, current available copies: 8
Selling Book 4, current available copies: 9
Selling Book 4, current available copies: 8
Selling Book 7, current available copies: 9
….
Selling Book 5, current available copies: 5
Reached the minimum but there is no other book reached to the minimum.
Selling Book 8, current available copies: 1
Reached to the minimum, book 5 and 8 ordered.

Selling Book 9, current available copies: 0
Reached the minimum but there is no other book reached to the minimum.
Selling Book 9, Not available – Order rejected
Selling Book 4, current available copies: 9
Selling Book 4, current available copies: 9
Available books numbers:
Book 1: 3
Book 2: 9
Book 3: 1
Book 4: 9
Book 5: 6
Book 6: 5
Book 7: 3
Book 8: 2
Book 9: 0
Book 10: 4

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
error: Content is protected !!