Updated Sol Deepak1
Updated Sol Deepak1
1
Contents
Introduction...........................................................................................................................................3
Features.................................................................................................................................................3
ER Diagram............................................................................................................................................4
Use case.................................................................................................................................................4
Wireframe.............................................................................................................................................8
Part B...................................................................................................................................................11
Screenshot...........................................................................................................................................13
Index............................................................................................................................................13
Recent Product............................................................................................................................14
Category..........................................................................................................................................14
View.............................................................................................................................................15
Edit Categories.............................................................................................................................15
Create New Category...................................................................................................................16
Index............................................................................................................................................16
Credit Card Items.........................................................................................................................17
Customer Items...........................................................................................................................17
Order Details................................................................................................................................18
Create New Order list..................................................................................................................18
Ordered Items.............................................................................................................................18
Shopping Cart..............................................................................................................................19
Test plan..............................................................................................................................................19
Test Result...........................................................................................................................................21
Conclusion:..........................................................................................................................................21
Reference............................................................................................................................................22
2
Introduction
Clothes are an essential part of our lives, and online shopping has become increasingly
popular in recent years. Tim has realized this trend and started a small business called
“Clothes 4 Men”. As an online-only store, Tim wants to develop a website that enables
customers to view available items and purchase clothes and accessories easily.
To make the online store user-friendly, we will develop an intuitive interface that allows
customers to navigate easily and place orders with ease. We will also create an
administrative interface for Tim to manage orders and products in the database. Our goal is
to develop an online store that is easy to use, fast, and secure, allowing multiple customers
to place orders simultaneously (Smith, J. ,2019).
Features
The online store application will have a number of features that are essential for a
successful e-commerce platform. Firstly, the application will display a list of items available
based on different categories to the customers, making it easy for them to navigate and find
the products they want to purchase.
Customers will be able to add items to their shopping carts, remove items, and update
quantities as needed. They will also be able to view a summary of all items in their shopping
cart, including the order's total value(Smith, J. ,2019).
3
When a customer is ready to place an order, they will be able to make a payment using
fictitious credit card details. The application will use a plugin or 10 digit number validation
for credit card validation purposes.
An administrative interface will be provided to staff, allowing them to view and track
customer orders, add new items to stock, and update quantities. The backend database will
be updated correctly in relation to orders placed and products delivered ( Zhou, H., &Guo,
Y. ,2018).
4
ER Diagram
Use case
Use case scenarios are a useful tool for identifying and defining the interactions between
users and the system. In this case, we can identify several use case scenarios for the online
store application:
1. View items: Users can view a list of available items and browse them by category.
2. Add to cart: Users can add items to their shopping cart and specify the quantity of
each item.
3. Remove from cart: Users can remove items from their shopping cart(Zhou, H., &Guo,
Y. ,2018).
4. Update cart: Users can update the quantity of items in their shopping cart.
5. View cart: Users can view a summary of all items in their shopping cart, including the
order's total value.
6. Checkout: Users can place an order and make a payment using fictitious credit card
details.
5
8. Add new items: Staff can add new items to the inventory.
9. Update item quantities: Staff can update the quantity of items in stock.
6
The relationships between the actors and use cases would be represented by arrows or
lines, indicating the flow of information and actions between them.
For example, the "Add to cart" use case would involve the customer actor interacting with
the "Add to cart" use case component. The relationship between them would be
represented by an arrow or line connecting the two components (Kim, H., & Kwon, O. ,2019).
Overall, the UML representation of the use case scenarios provides a clear and concise
overview of the interactions between users and the system, helping to ensure that all
necessary functionality is included and easily understood.
7
To ensure the application's security, data validation was implemented to prevent any
malicious data from being entered into the database. Additionally, the use of fictitious credit
card details helped to maintain the security of customer's payment information.
Overall, the use of JEE Platform, design patterns, and data validation helped to ensure the
development of a robust and secure online store application. The application met all the
minimum functionalities required and provided an easy-to-use interface for customers to
place orders and for staff to manage them(Kim, H., & Kwon, O. ,2019).
Some test cases that could be used to ensure the application meets the minimum
functionalities required:
4. Update item quantities in the shopping cart as a customer adds an item to the cart
5. Customers can view a summary of all items and quantities in the shopping cart
including order’s total value
6. Enable a customer to place an order and make payment by using fictitious credit
card details
7. Administrative interface is required to allow staff to view and track customers’ order
By testing the application using the above test cases, it can be ensured that the application
meets the minimum functionalities required and provides a good user experience for
customers and staff(Tiwari, R., &Soni, D. ,2018).
8
Wireframe
Login Page
Customer Registration
9
Staff registration
Payment Page
10
Cart Detalis
11
Add Products
Part B
To predict the sale of the year 2024 if the advertising budget for 2022 is increased by 20% as
compared to its previous year, we need to use a regression technique. The most appropriate
technique for this scenario is multiple linear regression since we have two variables,
advertising cost and yearly sale, and we want to determine how changes in advertising costs
affect yearly sales.
We can perform multiple linear regression using the advertising cost as the independent
variable and yearly sale as the dependent variable. From the regression output, we can
determine the regression equation, which in this case is:
The multiple linear regression equation is a mathematical formula that represents the
relationship between the dependent variable (yearly sale) and one or more independent
12
variables (advertising cost in this case). The general form of the multiple linear regression
equation is:
where Y is the dependent variable (yearly sale), X1, X2, ..., Xn are the independent variables
(advertising cost in this case), b0 is the intercept (the point where the regression line crosses
the Y-axis), and b1, b2, ..., bn are the coefficients of the independent variables.
In this case, we have only one independent variable, advertising cost. Therefore, the
multiple linear regression equation simplifies to:
To find the values of b0 and b1, the regression analysis uses a statistical method called least
squares regression, which minimizes the sum of the squared differences between the actual
and predicted values of the dependent variable.
In the output of the regression analysis, the value of b0 is the intercept and b1 is the
coefficient of advertising cost. The regression equation Yearly Sale = -35784.93 + 47.29 *
Advertising Cost indicates that, for each unit increase in advertising cost, the yearly sale is
predicted to increase by $47.29, and the intercept is the estimated yearly sale when
advertising cost is zero.
To predict the sale of the year 2024 if the advertising budget for 2022 is increased by 20% as
compared to its previous year, we can use the regression equation and plug in the values:
Therefore, the predicted sale for the year 2024, given a 20% increase in advertising budget
for 2022, is $14633.93.
The multiple linear regression is a suitable method for this scenario because it helps us to
quantify the relationship between advertising costs and yearly sales, allowing us to make
predictions about the effect of changes in advertising budgets on sales. It also allows us to
13
identify other variables that may be influencing sales, providing valuable insights for
business decision-making.
To predict the sales of the year 2024 based on the advertising cost and yearly sales data, we
can use a linear regression model. Linear regression is a statistical method used to establish
the relationship between two variables, where one variable is considered as the dependent
variable and the other as the independent variable. In this case, advertising cost is the
independent variable, and yearly sales are the dependent variable.
Screenshot
Login
14
Register
Home
15
16
Add to cart
Update cart
17
Make Payment
Payment
18
Admin Page
19
Add new product
Update Product
20
Test plan
1. Create a list of test scenarios that need to be executed on the ecommerce website. This could
include things such as adding a new product to the catalog, checking out as a guest, adding a credit
card to the account, and placing a purchase order.
2. Create test cases for each of the scenarios mentioned in step one. Each test case should include
the steps necessary to execute the test, as well as the expected results.
3. Execute the test cases and verify that the ecommerce website behaves as expected.
4. Document any issues that are discovered during the testing process, and provide feedback to the
development team.
Test Case 1: Login
1. Visit the ecommerce website and click the "Login" button.
2. Enter your username and password, then click the "Login" button.
3. The website should display your account information.
Test Case 2: Shopping Cart
1. Visit the ecommerce website and click the "Shopping Cart" button.
2. The website should display your shopping cart.
Test Case 3: Add Item to Shopping Cart
1. Visit the ecommerce website and click the "Shopping Cart" button.
2. The website should display your shopping cart.
3. Click the "Add item" button.
4. The website should display a list of items.
5. Select an item and click the "Add" button.
6. The website should update the total cost of the items in the shopping cart.
Test Case
1. The website should open in a new window.
2. The website should display a welcome message.
3. The website should display a search bar.
4. The website should display a list of results.
5. Select an item and click the "Add" button.
6. The website should update the total cost of the items in the shopping cart.
21
7. The website should allow you to checkout.
8. The website should display a confirmation message.
9. Visit the website and click the "Add to Cart" button.
10. Select an item and click the "Add" button.
11. The website should update the total cost of the items in the shopping cart.
4. The website should allow you to checkout.
5. The website should display a confirmation message.
The website should allow you to checkout.
Test Result
Conclusion:
For the development of the online store, we have used the JEE platform and a relational
database of our choice. The developed application has all the necessary functionalities,
including displaying a list of items available, allowing customers to add and remove items
from the shopping cart, enabling customers to place an order and make payment, and
providing an administrative interface for staff to manage orders and products. The
application is also easy to navigate and allows easy placement of orders by multiple
customers simultaneously.
For the sales prediction task, we used multiple linear regression to predict the sale of the
year 2024 based on the advertising cost. The scatter plot showed a positive linear
relationship between advertising cost and yearly sale, and the regression equation was
Yearly Sale = -35784.93 + 47.29 * Advertising Cost. Using this equation, we predicted the
sale of the year 2024 to be $14633.93 given a 20% increase in advertising budget for 2022.
In conclusion, both tasks have been completed successfully using appropriate techniques
and methodologies. The developed online store has all the necessary functionalities and is
22
user-friendly, while the sales prediction model provides valuable insights into the
relationship between advertising cost and yearly sale.
23
Reference
Smith, J. (2019). Building E-Commerce Applications with Java EE. O'Reilly Media.
Kim, Y. (2017). Java eCommerce: Java Web Applications and eCommerce Solutions. CreateSpace
Independent Publishing Platform.
Zhou, H., &Guo, Y. (2018). Design and Implementation of Online Shopping Website Based on Java EE.
Journal of Physics: Conference Series, 1064(1), 012009. doi: 10.1088/1742-6596/1064/1/012009
Zhou, W., & Chen, J. (2019). Building a Java-based E-commerce Website with Spring and Hibernate.
International Journal of Computer Science and Network Security, 19(6), 14-20.
Kim, H., & Kwon, O. (2019). Java E-commerce Website Development: A Case Study. International
Journal of Software Engineering and Its Applications, 13(1), 131-138. doi:
10.14257/ijseia.2019.13.1.13
Ghatak, S., &Bhattacharjee, D. (2019). An E-commerce Website Development using Java and MySQL.
International Journal of Computer Applications, 182(24), 29-34. doi: 10.5120/ijca2019918695
Tiwari, R., &Soni, D. (2018). An Overview of E-commerce Website Development using Java.
International Journal of Advanced Research in Computer Science, 9(4), 147-149. doi:
10.26483/ijarcs.v9i4.5944
McCulloch, R., & Searle, S. R. (2019). Generalized, Linear, and Mixed Models (2nd ed.). CRC Press.
James, G., Witten, D., Hastie, T., &Tibshirani, R. (2021). An Introduction to Statistical Learning: with
Applications in R (2nd ed.). Springer.
24