spooky-oysters / Bangazon-Command-Line-Application

0 stars 1 forks source link

User should see overall product popularity #11

Open stevebrownlee opened 6 years ago

stevebrownlee commented 6 years ago

Given a user wants to see the most popular products in the system When the user selects the corresponding option from the main menu Then the user should see the following report

Product             Orders      Purchasers    Revenue
*******************************************************
AA Batteries        100         20            $990.90 
Diapers             50          10            $640.95
Case of Cracking... 40          30            $270.96
*******************************************************
Totals:             190         60            $1,902.81

-> Press any key to return to main menu
  1. User will see the top 3 revenue generating products
  2. The product column must be 20 characters wide, and will display a maximum of 18 characters for the product name.
  3. The orders column must be 11 characters wide.
  4. The purchasers column must be 15 characters wide.
  5. The revenue column must be 15 characters wide.
DreRandaci commented 6 years ago