Upload
vineeth-shankar-maller
View
232
Download
0
Tags:
Embed Size (px)
DESCRIPTION
Case Study, pseudo code, algorithm, flow charts on online shopping portal
Citation preview
Online Shopping Portal | A Case Study with Algorithm, Flow chart and Pseudo codeA Case Study byVineeth Shankar V Maller (11202047)
INT101 School of Computer Science & Engineering
LOVELY PROFESSIONAL UNIVERSITYJalandhar, Punjab
Online Shopping Portal| A case study 1. Case Statement In this case, we will be designing an online shopping portal. The site will provide a smooth shopping experience for customers. The system will allow more than one categories and different brands under the segment. The case will trace the following sequence.
2. Scenario A customer visits the online shopping portal. A customer may buy item or just visit the page. The customer can select a segment, then category, and brand to get the different products in the desired brand. The customer can select the product for purchasing. The process can be repeated for more It ems. Once the customer finishes selecting the product(s) the cart can be viewed, if the customer wants to edit the final cart it can be done here. For final payment the customer has to login, if the customer is visiting for the 1st time he must register with the site, else the customer must use the login page to proceed. Final cart is submitted for payment and card details and address (where shipment has to be made) are be confirmed by the customer. Customer is confirmed with a shipment Id and delivery of goods within 10 days.
3. Assumptions The currency followed depends on the country where the shipment is to be done. There are different segments, categories, brands where a brand can fall under more than one category. The shipment of the goods is not covered under the scope of the case Complains by the customers are not handled by the case study. Customers have to be validated before the payment can be confirmed. The feasibility of the shipment of product(s) depends on the availability of the product(s), destination or any other factors not given herein and will be mentioned when the product is added to cart.
4. Actors Customer Administrator.
Online Shopping Portal | A case study 5. Functionality 1. Portal Allows the customer to view the different categories and further to different products within the brands. Allows the customer to shop online saving time and cost of customer. The portal provides a bill and a shipment Id which can be used to track the delivery status of the goods purchased by the customer. 2. Customer Customers when entering the site can view the various products in different category. Authentication of the customer is done for the payment of the shopping done. Customer can browses through the products available in the shop, can select some of them and put into the shopping cart. Customer can anytime change the items in the cart either by adding new items or by removing existing items. Customer proceeds towards the payment counter. Finalize product list of items he finally wish to buy and make the final payment. 3. Administrator Updates the details of the different category, segments etc. Verifies the customer card details and records the details for shipment of goods.
6. Courtesy * Google * Wikipedia * Scribd
Online Shopping Portal | A case study
Online Shopping Portal | A case study
ALGORITHM MAIN step 1: Start step 2: Goto PRODUCT_SEARCH() STEP 5: GET PRODUCT STEP 6: STOP
PRODUCT_SEARCH() STEP 1: Start STEP 2: INPUT Product_name STEP 3: SEARCH FOR PRODUCT STEP 4: IF PRODUCT FOUND GOTO STEP 5 ELSE GOTO STEP 2 STEP 5: OUTPUT Product_name, modelno, price, stock STEP 6: IF stock NOT EQUAL TO ZERO and PURCHASE IS FEASIBLE THEN DO STEP 7 & 8 ELSE DO STEP 8 STEP 7: ADD PRODUCT TO CART STEP 8: REPEAT STEP 2 TO STEP 7 AS THE CUSTOMER REQUIRES IF NOT GOTO LOGIN() STEP 9: Stop
LOGIN() STEP 1: Start STEP 2: IF CUSTOMER HAS AN ACCOUNT THEN GOTO STEP 3 ELSE GOTO STEP 7 STEP 3: INPUT id, pass STEP 4: IF id==login_id AND pass==login_pass THEN GOTO CHECKOUT ELSE DO STEP 5 AND STEP 6 STEP 5: INPUT email_id STEP 6: IF email_id IS PRESENT IN DATABASE THEN SEND login_pass TO EMAIL ADDRESS THEN GOTO STEP 3 STEP 7: INPUT name, dob, age, address, mobileno, login_id, login_pass, email_id
Online Shopping Portal | A case study
STEP 8: IF login_id IS PRESENT IN DATABASE GOTO STEP 7 STEP 9: CREATE NEW ACCOUNT AND STORE DETAILS IN DATABASE STEP 10: SEND LOGIN LINK TO EMAIL ADDRESS AND GOTO STEP 3 STEP 11: Stop
CHECKOUT() STEP 1: Start STEP 2: FINALISE PRODUCTS STEP 3: INPUT local_adrs, pin, cntry, cntct_no STEP 4: IF pin, cntry, cntct_no ARE NOT VERIFIED THEN GOTO STEP 3 STEP 5: IF MODE OF PAYMENT IS CARD THEN DO STEP 6 AND GOTO STEP 11 ELSE GOTO STEP 7 STEP 6: INPUT card_name, cardno, cvc, exp_date, pin STEP 7: IF MODE OF PAYMENT IS VIA PAYPAL THEN DO STEP 8 AND GOTO STEP 11 ELSE GOTO STEP 9 STEP 8: INPUT paypal_id, paypal_pass STEP 9: IF MODE OF PAYMENT IS COUPONS THEN GOTO STEP 10 STEP 10: INPUT coupon_no, coupon_name STEP 11: IF DETAILS NOT VERIFIED THEN GOTO STEP 5 STEP 12: CUNDUCT TRANSACTION STEP 13: SEND CUSTOMER TRANSACTION DETAILS VIA EMAIL STEP 14: Stop
Online Shopping Portal | A case study PSEUDOCODE MAIN Begin PRODUCT_SEARCH() Get Product Stop PRODUCT_SEARCH() Begin Varchar PRODUCT_NAME, CH F: do Write " Input Product name:" Read PRODUCT_NAME Search for Product in inventory If Product found Write PRODUCT_NAME, MODELNO, PRICE, STOCK If STOCK0 AND Purcase is feasible Add pproduct to cart End if Else Goto F End if Write " Add annother product?(y/n)" Read CH while(CH'n' OR CH'N') LOGIN() End
LOGIN() Begin Varchar EMAIL_ID, ID, PASS, NAME, DOB, AGE, ADDRESS, MOOBILENO If customer has account E: Read ID, PASS If ID==LOGIN_ID AND PASS==LOGIN_PASS CHECKOUT() Else Read EMAIL_ID If EMAIL_ID present in database Send LOGIN_PASS to Email address Goto E End if End if Else
Online Shopping Portal | A case study G: Read NAME, DOB, AGE, ADDRESS, MOOBILENO, LOGIN_ID, LOGIN_PASS, EMAIL_ID If LOGIN_ID already present in database Goto G Else Create new account and store details in database Email Login link Goto E End if End if End
CHECKOUT() Begin Finalise Products I: Read LOCAL_ADRS, PINCODE, CNTRY, CONTACT_NO If PIN, CNTRY, CONTACT_NO ARE VERIFIED H: If mode of payment is CARD Read CARD_NO, CARD_NAME, CVC, EXP_DATE, PIN Else if mode of payment is PAYPAL Read PAYPAL_ID, PAYPAL_PASS Else if mode of payment is COUPONS Read COUPON_NO, COUPON_NAME End else if If details verified Conduct Transaction Email Customer transaction details Else goto H Else Goto I End
Online Shopping Portal | A case study
FLOWCHART
START
PRODUCT_SEARCH
LOGIN
CHECKOUT
GET PRODUCT
STOP
STARTPRODUCT_SEARCH
Online Shopping Portal | A case study
INPUT PRODUCT NAME
SEARCH FOR PRODUCT
OUTPUT RESULTS
Whether FEASIBLE and AVAILABLE
SEARCH FOR ANOTHER PRODUCT
ADD TO CART
EXIT FROM PORTAL
ADD ANOTHER PRODUCT
STOP
START LOGINOnline Shopping Portal | A case study
WHETHER CUSTOMER HAS ACCOUNT
GOTO SIGNUP PAGE
ENTER DETAILS ENTER LOGIN ID AND PASSWORD
VERIFY DETAILS FORGOT PASSWORD VERIFY LOGIN ID AND PASSWORD SEND CONFORMATION LINK ENTER EMAIL GO TO ACCOUNT FOR CHECKOUT
STOPVERIFY EMAIL WITH DATABASE
SEND PASSWORD
STARTOnline Shopping Portal | A case study FINALIZE PRODUCTS
ENTER SHIPMENT DETAILS
VERIFY ADDRESS AND CONTACT
ENTER CARD DETAILS
CHOOSE MODE OF PAYMENT
ENTER COUPON CODE
VERIFY CARD DETAILS
ENTER ID AND ACCOUNT DETAILS
VERIFY COUPON DETAILS
VERIFY ID AND DETAILS
CONDUCT TRANSACTION
STOP