A Simple Online Book Order System
- Renee Li
- Oct 9
- 2 min read
Since this is the first work I showcase here, I want to keep it really simple. I ask myself as a programmer, if I just need to design a very simple book store order system, what do I need to get from the user?

which book they want | how many copies they want | payment successfully? yes or no | if yes, make a shipment. if no, say bye |
I believe above are all I need for the simplest order system. My goal really just try to create some lists of data that we need users to provide to help achieve our goal here, which is making a shipment of order that insists bunch of books.
After writing this down, everything becomes more clear. I started with writing the book class.

It was pretty easy. I then moved on to order class.

I decided to create a class just to ask user to provide for one book and the quantity of the book. This will be treated like an object which later will be added to the actual order list. So, we need to create another class that can create empty order list.

List<> we created allow us to add each object contain book and quantity into the list. It could be just 1 object or several objects. For example, it could be 1 copies of My year of rest and relaxation and 2 copies of Calculus, which consist the order.
For shipment, I keep it very simple as well. In stead of worrying about the whole payment system, I simply ask the user answer yes or no. If yes, shipment will be made. Otherwise, no.
Okay, now I want to talk about the extent on this program. I can work on extend on customer profile really as currently only has shipping address. I can include customer name, contact detail, and so on, and customer ID, which can be included in customer profile.
Next blog, me and Copilot will team up to extent on this simple project.


cool! Thanks for sharing! Look forward to seeing more from you. lol