In online marketing a shopping cart is a piece of

Assignment Help Database Management System
Reference no: EM13379992

In online marketing, a shopping cart is a piece of e-commerce software on a web server that allows visitors to an internet site to select items for eventual purchase, analogous to the American English term "shopping cart." In British English it is generally known as a shopping basket, almost exclusively shortened on websites to 'basket'.

The software allows online shopping customers to accumulate a list of items for purchase, described metaphorically as "placing items in the shopping cart" or "adding to cart". Upon checkout, the software typically calculates a total for the order, including shipping and handling (i.e. postage and packing) charges and the associated taxes, as applicable.

The development of web shop systems took place directly after the Internet or the World Wide Web had become a mass medium. This was a result of the launch of the browser Mosaic in 1993 and Netscape in 1994. It created an environment in which web shops were possible. The Internet and WWW therefore acted as the key infrastructure developments that contributed to the rapid diffusion of the e-commerce. E-commerce (as a subset of e-business) describes all computer-aided business transactions. In 1998 a total of 11 e-business models were observed, one of which was the e-shop business model for a B2C (Business-to-consumer) business - also called the "online shop". The two terms "online shop" and "electronic" or "e-shop" are used inter changeably. The term "online shopping" was invented much earlier in 1984; for example TV shopping often used the term before the popularity of the online method. Today the term primarily refers to the B2C transactional business model. In order to enable "online shopping" a software system is needed. Since "online shopping", in the context of the B2C business model, became broadly available to the end consumer, WWW-based "online shops" evolved.

These applications typically provide a means of capturing a client's payment information, but in the case of a credit card they rely on the software module of the secure gateway provider, in conjunction with the secure payment gateway, in order to conduct secure credit card transactions online.

Although the most simple shopping carts strictly allow for an item to be added to a basket to start a checkout process (e.g. the free PayPal shopping cart), most shopping cart software provides additional features that an Internet merchant uses to fully manage an online store. Data (products, categories, discounts, orders, customers, etc.) is normally stored in a database and accessed in real time by the software.

Shopping Cart Software is also known as e-commerce software, e-store software, online store software or storefront software and online shop.

Scenario

KitchenwareCity is a fast growing family business in Toowoomba. For the past five years, KitchenwareCity has served Toowoomba local community well. Aiming to provide high quality shopping experience and answering to the needs of many busy, aged, or disability customers, the management level of KitchenwareCity has decided to introduce online shopping facility to Toowoomba local community and develop a shopping cart software to allow customers to shop at home.

Against a group of talented, competitive programmers, you deadly want to win the contract of KitchenwareCity system development project. To first get into the short list, you need to develop a prototype program to demonstrate the main functions delivered in the shopping cart, as required by KitchenwareCity.

Functional Requirement Specification

As the prototype for web-based shopping cart system, the program is to be implemented in JavaScript and running on Firefox, an Operating System independent web browser. KitchenwareCity has specified detailed requirements as follows:

1. The prototype program should be running without errors throughout the two Phases: Information Gathering and Information Presenting.

2. In the Information Gathering Phase, each time the user adds one ordered product item into the shopping cart. The program should first confirm with the user before proceeding to gather information regarding the ordered product item.

3. When gathering the order information, the program should prompt and ask the user to enter the Product Code when adding a product item into the shopping cart.

o If the user entered something invalid, for example, a non-number value or a non-existing Product Code, the program should alert an error message on screen and terminate the current product-adding process. It then loops back to request user confirmation to proceed with adding a new item or moving to the next Information Presenting Phase.

o If the entered Product Code is valid, the program should then prompt the user to input the ordered quantity. Again, if an invalid value is input, such as a non-number value, a negative number or zero, the program should terminate the current product-adding process and loop back to request user confirmation to proceed with adding a new item or moving to the next Information Presenting Phase.

o If the entered quantity is valid, the ordered product item is successfully added into the shopping cart. The program then loops back to request user confirmation to proceed with adding a new item or moving to the next Information Presenting Phase.

4. In confirmation if the user confirms not to shop anymore, the program should then complete the Information Gathering Phase and moves to the Information Presenting Phase.

5. In the Information Presenting Phase, the program presents on the HTML a table listing the product items in the shopping cart, including product names, prices, quantity, and cost;

6. To make the Shopping Cart System user-friendly, KitchenwareCity also expects the program to display some statistic information:
o The total amount for ordered items in the shopping cart;
o The most expensive product item;
o The cheapest product item;
o The average cost per item in the cart.

Task Design

Against the Requirement Specification, you have made the following design to guide your implementation of the prototype. In respect wtih the two phases specified by KitchenwareCity, your program also consists of two components; Information Gathering Component and Information Presenting Component.

The first thing in the program will be two arrays, one for the list of products (namely PRODUCT_LIST in this document) and the other for the corresponding prices (namely PRICE_LIST). Thus, a product item and its price will have exactly the same index in the respecting arrays. (Hint: there is no need for an array to store the Product Codes. They can be just the index in PRODUCT_LIST .)

Task 1 - Information Gathering Component

You first need to create two arrays; one (namely orderedProductCodeArr) to store the Product Code of ordered items; the other to store the quantity of ordered item (namely quantityArr). Just like PRODUCT_LIST and PRICE_LIST, an ordered item's Product Code and quantity will be stored at exactly the same index in the respecting arrays. A diagram defining the relationships between PRODUCT_LIST, PRICE_LIST, orderedProductCodeArr, and quantityArr has been drawn in Figure 1.

62_Shopping Cart System.png

Figure 1: Relationship Diagram for Arrays

Subtask 1.1 - Pseudocode for Information Gathering Component
Information Gathering Component is very important to a shopping cart system. You really want to develop a good algorithm for it. As a professional practice, you decided to first make a working plan in pseudocode before putting hands on coding implementation for the Information Gathering component. After the consultation with an experienced software engineer, you have obtained an Activity Diagram (Figure 2). Now lets decipher the flowchart and input the pseudocode as multi-line comments into the program to guide implementation.

601_Shopping Cart System1.png

Figure 2: Activity Diagram for Information Gathering Component

Subtask 1.2 - Implementation of Information Gathering Component
Based on the pseudocode developed in Subtask 1.1, you are to implement the Information Gathering Component in this task.
Subtask 1.3 - Duplicate Order Detection [Challenging task for only extensive study, no extra mark gained. You can skip the task if you like]
KitchenwareCity will appreciate it if an extra feature can be delivered to detect duplicate orders. If an ordered item has already been in the cart, the system should detect the case, and then ask for user confirmation for updating the quantity or not. If the user confirms 'Yes', the stored quantity will then be replaced by the newly entered value; otherwise, the program terminates the current product-adding process and loop back to ask user confirmation for adding a new item or not. Note that the user is not allowed to completely remove an ordered item from the shopping cart.

Task 2 - Information Presenting Component (Functional Requirement 5, 6)

Subtask 2.1 - Calculating the Total Cost Amount

Your program needs to be able to calculate the total amount of all ordered items in the shopping cart. The calculation can be completed in either of two different ways;

1. Accumulate the amount of each order immediately after the items being added into the cart. For that you need to retrieve the price of a product item from PRICE_LIST in order to calculate the amount by price*quantity. (Hint: A product item and its price have exactly the same index in the respecting arrays.) In this case, the calculation will need to be implemented in the Information Gathering Component;

OR

2. After completion of the Information Gathering Phase, in a loop you can visit each of the Product Codes stored in orderedProductCodeArr in order to get the index for the corresponding price in PRICE_LIST. You then access to quantityArr to retrieve the quantity. With the calculation of price*quantity, you can accumulate the amount for total orders. In this case, the calculation is implemented after the Information Gathering Component.

Subtask 2.2 - Finding the Most Expensive Product Item in the Shopping Cart

Your program needs to be able to find the most expensive product item in the shopping cart. To do that, for each of the ordered items you need to firstly retrieve the corresponding price from PRICE_LIST, and then compare the prices one by one. Once you find out the most expensive price, the corresponding product item in PRODUCT_LIST will be the most expensive product item in the shopping cart.
Similarly, you can implement this feature either in or after the Information Gathering Component.

Subtask 2.3 - Finding the Cheapest Product Item in the Shopping Cart

Your program needs to be able to find the cheapest product item in the shopping cart. For it you may adopt the same strategy described in Subtask 2.2.

Subtask 2.4 - Calculating Average Cost Per Unit

Your program needs to be able to calculate the average cost per unit for the ordered product items in the shopping cart. This can be done by total cost divided by the accumulated value of quantities. Note that the program needs to handle "Division by Zero" exception. Only two digits after decimal point are required in display of the calculated average value.

Subtask 2.5 - Presenting the Order Information on a Table

To a table on HTML, your program needs to print out the detailed order information including product name, price, quantity, and cost. You may adopt an iteration plan to visit the elements stored in quantityArr and orderedProductCodeArr in order to get the index to retrieve the product names and prices from PRODUCT_LIST and PRICE_LIST.

Subtask 2.6 - Presenting the Statistic Information on an Unordered List [0 Mark, but it will reflect the result of Subtask 2.1-2.4]

Your program needs to print out the statistic information (total cost, the most expensive item, the cheapest item, and the average cost per unit for the ordered product items) to an unordered list on HTML, following the same format illustrated in Figure 3.

303_Shopping Cart System2.png

Figure 3: Sample Information Presented in the Shopping Cart

Task 3 - Program Integration Testing

You need to test the implementation of all functions and features thoroughly before delivering the prototype program to KitchenwareCity. The program should be running appropriately without any errors. The testing strategy will help you assure the product quality and increase your chance to win the contract of KitchenwareCity Shopping Cart System project.
Non-Functional Requirement Specification
• Constants should appear before variable declarations which should appear before other statements.
• Variable and constant identifiers should use an appropriate convention.
• Identifiers should be written consistently throughout the code.
• Code is indented appropriately and grouped in blocks according to the common tasks attempting to.
• Appropriate comments should be added to all blocks of code.


Attachment:- ShoppingCart.rar

Reference no: EM13379992

Questions Cloud

In this class weve stressed the importance of various : in this class weve stressed the importance of various system analysis and design tools and techniques. by now you
Draw anbsp dfd context andnbsp level 1 for placing an order : draw anbsp dfd context andnbsp level 1 for placing an order based on the e-r diagram shown here.some recommended major
Questiona military information system on a base overseas : questiona military information system on a base overseas tracks personnel on the base.nbsp each military member is
Which is not a factor to consider in software evaluationa : which is not a factor to consider in software evaluation?a. performance effectivenessb. performance efficiencyc.
In online marketing a shopping cart is a piece of : in online marketing a shopping cart is a piece of e-commerce software on a web server that allows visitors to an
Questionsince its establishment in 2003 fresh grocers has : questionsince its establishment in 2003 fresh grocers has expanded its business from a single store in queensland to
For this project you will use html forms php and mysql to : for this project you will use html forms php and mysql to collect data from users store that data in a mysql database
1 meets size criteria -2 incorporates a consistent look and : 1. meets size criteria -2. incorporates a consistent look and feel and an easy-to-use and consistent navigation toolset
Green river clothing company case study channel structure : green river clothing company case study channel structure and members.read the case study green river clothing company

Reviews

Write a Review

Database Management System Questions & Answers

  Draw at a context diagram and a level-0 diagram

Draw at a context diagram and a level-0 diagram. In drawing these diagrams, if you discover that the narrative is incomplete, make up reasonable explanations to complete the story. Provide these extra explanations along with the diagrams.

  Construct a data warehouse bus matrix

First construct a Data Warehouse Bus Matrix to identify the company's business processes and any likely Data Marts and design the star schema for any Data Marts you have identified.

  Why data-warehousing greatest threat to individual privacy

Consider following opinion shared by some people: database management systems and data-warehousing techniques are the greatest threat to individual privacy in modern times. What is your opinion?

  Database management systems

Rubric for PowerPoint Presentation Points

  List different entities-objects-logical processes-data flows

List the different entities or objects, logical processes, data flows, and data stores that are involved, starting from the time you submitted your time sheet.

  Describe entity-relationship model

Describe the entity-relationship model. How are entities, relationships, and attributes represented in this model? What is a composite entity? Describe the approach to diagrams that uses a crow's foot.

  Database planner should spend a considerable amount of time

Provide what reports may be produced as a result of your database design.Based on the information you have researched, create a 2-3 page design document that includes a description of the database you would like to create as well as sample tables ..

  Construct a relational schema for the er-diagram

Construct a relational schema for the ER-diagram. Make sure that you correctly translate Specialization and Many-to-Many relationships. Please follow carefully the following guidelines when you ?nish this question.

  List whether the index matches the given selection condition

Athabasca University has about 32,000 students between the ages of 17 to 60. Consider the AU student relation with the following schema.

  An active database in pl-sql

Did the corresponding lines for invoices 1001 and 1008 in table LINE get deleted automatically? Can you explain why?

  Draw dependency diagram after identifying all dependencies

Draw the dependency diagram after identifying all dependencies in this data structure. See Lecture 6, Slide 27 for dependency diagram and convert this data structure to a set of 3NF relations. Clearly showing each step

  Write name of employee on every project located in houston

Write the name(s) of employee(s) who works(work) on every project located in Houston. Write the name(s) of employee(s) who only works(work) on every project located in 'Houston.'

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd