Skip to content

nss-day-cohort-16/bangazon-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Bangazon

The Command Line Ordering System

In this group project, you will be allowing a user to interact with a basic product ordering database.

Ordering System Interface

Main Menu

*********************************************************
**  Welcome to Bangazon! Command Line Ordering System  **
*********************************************************
1. Create a customer account
2. Choose active customer
3. Create a payment option
4. Add product to shopping cart
5. Complete an order
6. See product popularity
7. Leave Bangazon!
>

Create Customer

Enter customer name
>

Enter street address
>

Enter city
>

Enter state
>

Enter postal code
>

Enter phone number
>

Choose active customer

Which customer will be active?
1. John Q. Public
2. Svetlana Z. Herevazena
>

Create Payment Option

Enter payment type (e.g. AmEx, Visa, Checking)
>

Enter account number
>

Add Product to an Order

Note: These are examples. Add your own product names, please.

To make it easier to add multiple products, when the user selects a product to order, display the menu of products again. Make sure the last option of Back to main menu so the user can specify that no more products are needed.

1. Diapers
2. Case of Cracking Cola
3. Bicycle
4. AA Batteries
...
9. Done adding products

Complete an Order

If no products have been selected yet
Please add some products to your order first. Press any key to return to main menu.
If there are current products in an order
Your order total is $149.54. Ready to purchase
(Y/N) >

# If user entered Y
Choose a payment option
1. Amex
2. Visa
>

Your order is complete! Press any key to return to main menu.

# If user entered N, display the main menu again

Once the order is complete, show the main menu again, where the user can start creating another order.

See Product Popularity

When selecting this option, you will produce a command line report that looks like the following.

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

-> Press any key to return to main menu
  1. The product column must be 18 characters wide, and will display a maximum of 17 characters for the product name.
  2. The orders column must be 11 characters wide.
  3. The customers column must be 11 characters wide.
  4. The revenue column must be 15 characters wide.

Requirements

You will create a series of prompts that will allow the user to create various types of data in your ordering system.

  1. Start with writing unit tests. As a group, determine the core functionality of the application. Define classes and methods that you think you need to build. Do that before writing the implementation code for core logic. DO NOT WRITE TESTS FOR THE USER INTERFACE (menu and prompts).
  2. All classes and methods must be fully documented with docstrings.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published