- Use a while loop to prompt for multiple purchases.
- Use if statement to proceed with purchase.
- Use else statement to end loop.
2. Enable Automatic Lookup (cashier.cpp)
- Use for loop with if statement to find book by ISBN in bookdata array.
- Print information with cashier print function.
- If no ISBN is found, prompt input error and prompt if user would like input again.
- Once purchase information has been retrieved, check quantity for enough copies, if enough copies, deduct from stock, else output error.
3. Complete the stub functions (reports.cpp)
- The "repListing" function uses for loop to print out all books including: title, ISBN number,author, publisher, date added to inventory, quantity on hand, wholesale cost, and retail price, print report title, and then allows user to hit any key to continue.
- The "repWholesale" function uses for loop to print out all books including: title, ISBN number, quantity on hand, and wholesale cost, print report title, then allows user to hit any key to continue, and then display the total wholesale value of all the books in stock.
- The "repRetail" function uses for loop to print out all books including: title, ISBN number, quantity on hand, and retail price, print report title, then allows user to hit any key to continue, and then display the total retail value of all the books in stock.
- The "repQty" function uses for loop to print out all books including: title, ISBN number, and quantity on hand, use bubble sort to display quantity in descending order, print report title, and then allows user to hit any key to continue.
- The "repCost" function uses for loop to print out all books including: title, ISBN number, quantity on hand, and wholesale cost, use bubble sort to display wholesale cost in descending order, print report title, and then allows user to hit any key to continue.
- The "repAge" function uses for loop to print out all books including: title, ISBN number, quantity on hand, and date added to the inventory, use bubble sort to display date added in descending order, print report title, and then allows user to hit any key to continue.