EE308_LAB9

Arr_Xiao_ 2021-11-16 21:07:17
The Link Your Class
https://bbs.csdn.net/forums/MUEE308FZ?category=0
The Link of Requirement of This Assignment
https://bbs.csdn.net/topics/603386400
MU STU ID and FZU STU ID
19103557&831902230

Question

  Live-streaming sale, through some Internet platforms, is a new way of service using live-streaming technology for close commodity display, consultation response, and shopping guide. Merchants can open their own live broadcast room, or employ professional anchors to recommend goods. At present, not only many celebrities flock into this field, but some big companies’ executives are also frequently involved. Please try to design a comprehensive live-streaming sale system.

(i) List some actors that interact with this system. Explain the relevance of each actor.

Your Answer:

Commodity host is the actor who help to market goods.

Customer is the actor who maybe will purchase goods.

Merchant is the actor who can hire host and delivering goods.

Administrator is the actor who responsible for maintaining order in the room and creating harmonious, regular live rooms.

Aftermarket is the actor who handles the product, answers the customer question.

(ii) Prepare a use case diagram for this system.

Your Answer:

img

(iii) Prepare a normal scenario for each use case. (i.e. describe each use case in words)

Your Answer:
Name: Enter The Live Room
Description:

  1. The use case starts when the customer selects Enter the live room.

Name: Buy Goods
Description:

  1. The customer enters his or her name and address.
  2. The customer will selects product codes for the desired products.
  3. The system will supply a product description and price for each
    item.
  4. The system will keep a running total of items ordered as they are
    entered.
  5. The customer will enter credit card payment information.
  6. The customer will select Submit.
  7. The system will verify the information, save the order as
    pending, and forward payment information to the accounting
    system.
  8. When payment is confirmed, the order is marked Confirmed, an
    order ID is returned to the customer, and the use case ends.

Name: Ask Questions About Merchandise
Description:

  1. Customer can ask for details of the product.
  2. Customers can also ask about shipping information about the product and about the service after sales.

Name: Manage The Broadcast Room
Description:

  1. The Commodity host and administrator can fast bad patrons.
  2. The administrator can manage the poor behavior of the host.

Name:Add Or Delete Items
Description:

  1. Merchants can select the desired cargo upper or lower rack as needed

Name: Distributing Goods
Description:

  1. Merchants provide commodity orders to customers

(iv) Prepare sequence diagrams or activity diagrams for primary scenarios. By the way, each scenario can be described by a sequence diagram or an activity diagram, but both diagrams must be used in the question.

Your Answer:This is a sequence diagram and activity diagram of the purchase of goods.
activity diagram:

img

sequence diagram:

img

(v) Prepare a class diagram for this system. Explain which principles of object-oriented are applied in your design.

Your Answer:

img

Use Single Responsibility Principle.

(vi) Prepare state diagrams for primary classes.

Your Answer:This is a state diagram of placing an order and receiving the goods

img

(vii) Write the skeleton code corresponding to the class diagram in C++, Java, Python, or C#.

Your Answer:

Merchandise_Management_Window

import java.util.*;
public class Merchandise_Management_Window {
    public Merchandise_Management_Window() {
    }
    public void User_Name;
    public void Goods;
    public void Put() {
        // TODO implement here
    }
    public void Modification() {
        // TODO implement here
    }
    public void Delete() {
        // TODO implement here
    }
}

Indent

import java.util.*;
public class Indent {
    public Indent() {
    }
    public void Number;
    public void Message;
    public void User;
    public void Time;
    public void Money;
}

Goods

import java.util.*;
public class Goods {
    public Goods() {
    }
    public void Name;
    public void Money;
    public void Picture;
}

Merchant

import java.util.*;
public class Merchant extends User {
    public Merchant() {
    }
    public void Name;
    public void Commodity_Management() {
        // TODO implement here
    }
    public void Refund() {
        // TODO implement here
    }
}

Payment_Window

import java.util.*;
public class Payment_Window {
    public Payment_Window() {
    }
    public void indent;
    public void Money;
    public void Pay() {
        // TODO implement here
    }
}

Refund_Window

import java.util.*;
public class Refund_Window {
    public Refund_Window() {
    }
    public void Number;
    public void Refund() {
        // TODO implement here
    }
}

User

import java.util.*;
public class User {
    public User() {
    }
    public void User_Name;
    public void Account;
    public void Password;
    public void Log_In() {
        // TODO implement here
    }
    public void Registere() {
        // TODO implement here
    }
    public void Check_Order() {
        // TODO implement here
    }

...全文
105 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

183

社区成员

发帖
与我相关
我的任务
社区描述
福州大学 梅努斯国际工程学院 软件工程 教学
软件工程 高校
社区管理员
  • 单步调试
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧