Design Phase Incomplete

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

Requirement analysis and Design

For
Online Market Place for Laptops and Cars
with Price Predictor

Prepared by:
Osama Shabir (11)
Sayaam Naveed (23)

Supervised by:
Mr. Ammar Khalil

University of Kotli Ajk


Session: 2020-2024
Department of Data Science
08 Feb, 2024
Contents
Use Case Diagram ....................................................................................................................................... 1
Class Diagram ............................................................................................................................................. 2
Market Place............................................................................................................................................ 2
Price Prediction ....................................................................................................................................... 3
Activity Diagrams ....................................................................................................................................... 3
Activity diagram for registration........................................................................................................... 3
Activity diagram for login ...................................................................................................................... 4
Activity diagram for buying products ................................................................................................... 4
Activity diagram for Payment ............................................................................................................... 5
Sequence Diagram ...................................................................................................................................... 5
Sequence Diagram for registration ....................................................................................................... 5
Sequence diagram for Login .................................................................................................................. 6
Sequence diagram of buying product.................................................................................................... 6

ii
Use Case Diagram

Seller

Buyer

Login

Signup

Add Services

Remove
View
Update

Recommendation

Message

Buy
Products

Payment

Rating

Logout

1
Class Diagram

Market Place

User

user_id (int)
username (string)
email (string)
password (string)

login()
logout()

Buyer Seller
user_id (int) user_id (int)
username (string) username (string)
email (string) email (string)
password (string) password (string)

login() login()
logout() logout()

Products
product_id (int)
name(string)
description (string)
price (float)
images (list of strings)

get_price_prediction()

Car
Laptop
brand (string) make (string)
model (string) model (string)
CPU (string) year (int)
RAM (int) mileage (int)
storage (string) engine (string)
screen_size (float) transmission (string)

2
Price Prediction

Price_Prediction_model
product (Product)

predict_price()

LaptopPricePredictionModel
CarPricePredictionModel
brand (string)
model (string) make (string)
CPU (string) model (string)
RAM (int) year (int)
storage (string) mileage (int)
screen_size (float) engine (string)
transmission (string)

Activity Diagrams

Activity diagram for registration

3
Activity diagram for login

Activity diagram for buying products

Start

Buy Product
Choose
Category

Yes

Interest
No
ed
Search
END
Product

Find Product View Product

4
Activity diagram for Payment

Start

Payment
method

EasyPaisa COD

Slip

End

Sequence Diagram

Sequence Diagram for registration

5
Sequence diagram for Login

Sequence diagram of buying product

User System Database

1: Show Categories (Laptop/Car)

2: Choose one Category

3: Show products

4: Search products

5: Choose and buy


7: Save to database

6: generate receipt

You might also like