Rhonda Johnson
Bamazon is an Amazon-like storefront. The app will take in orders from customers and deplete stock from the store’s inventory. The app will track product sales across the store’s departments and then provide a summary of the profits by department.
https://rmxjohnson.github.io/bamazon/
products table:
departments table:
On entry, the app displays all items available for sale
Once the customer has placed the order, the app checks if the store has enough of the product to meet the customer’s request. If not, the user is notified and the order does not process.
On entry, the user is given a set of menu options:
View Products for Sale - lists every available item: the item IDs, names, prices, and quantitiesView Low Inventory- lists all items with an inventory count lower than five. (minimum can be configured)Add to Inventory - displays a prompt that will let the manager “add more” of any item currently in the storeAdd New Product - allows the manager to add a new product to the store (validation of user input)Exit Program - allows the manager to exit the programOn entry, the user is given a set of menu options:
View Product Sales by Department - displays a summarized table - department_id, department_name, over_head_costs, product_sales, total_profit
product_sales & total_profit columns are not stored in the database but are calulated when needed
Create New Department - allows the user to add a new department to the store (validation of user input)
Product table displayed and user prompt

User prompts (with validation), total cost of purchase, continue prompt, exit message

Product table displayed, user prompt, view low inventory (none < 5), continue prompt

Add inventory prompts (with validation), success message, continue prompt

Add new product prompts, success message, continue prompt, exit message

User prompts, View Sales by department (table displayed with correct values), continue prompt, menu options

Add new department, prompts (with validation), success message, continue prompt, exit message
