Yanqi_Fan 831902104 2021-11-16 23:04 采纳率: 0%
浏览 26

EE308 LAB9

The Link Your Classhttps://bbs.csdn.net/forums/MUEE308FZ?category=0
The Link of Requirement of This Assignmenthttps://bbs.csdn.net/topics/603386400
The Aim of This AssignmentGit/GitHub Using & Keywords Capturing
MU STU ID and FZU STU ID19105932_831902104

Requirement

1. Please issue your Lab Blog on CSDN.

2. The Link of your blog of this lab and This Lab Sheet (This word file) must be submitted to Moodle, or you will lose the score of this Lab. (VERY IMPORTANT: You should submit TWO things)

3. Modeling must use professional tools.

4. You should EXPLAIN your diagrams in words if necessary.

 

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.

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

Your Answer:

In my opinion, it should be divided into the following actors。

1.customer:Buy goods, select the live broadcasting room and goods according to the recommendation of the anchor, and finally buy goods according to demand.

2.Anchor: mainly responsible for recommending product information and some shopping guidance and recommending good products to customers.

3.Administrator: responsible for the management and maintenance of users in the live broadcasting room.

4. Customer service: responsible for the after-sales of some goods and the specific purchase operation of goods.

 

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

I think there are four main participants: 1. Consumer 2. Anchor 3. Administrator 4. Customer service has four main participants.

 Customers can register, pay, view shopping cart, view commodity logistics information and return goods.

Customer service has the functions of filling in logistics information, helping customers return and exchange goods, filling in commodity information and so on.

 The administrator has the function of maintaining the platform.

The network anchor is responsible for introducing goods and directing customer service to link goods on the shelves.

 

 

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

  1. The user logs in through the account and enters the live broadcasting room. He can buy the goods in the shopping cart according to the goods recommended by the anchor. At the same time, he can view the details of the goods. In the payment interface, the user can choose the payment method, such as cash on delivery or online payment, and then fill in his own address information. After arrival, he can choose to return or exchange goods. The customer has this right, Contact customer service for relevant operations.
  2. The customer service will log in to the system, and then help the anchor to link the products on the shelves and reply to some customer information to help customers better understand the product information, and deal with some after-sales services, such as helping customers return and exchange goods.
  3. After logging into the system, the anchor can open his own live studio, and then introduce his products in the live studio to help customers choose.
  4. After logging into the system, the administrator is responsible for maintaining the live broadcasting room, such as opening or closing the live broadcasting, and can select some people who interfere with the live broadcasting to expel them

 (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 this question.

 

 

 

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

 

 

(vi) Prepare state diagrams for primary classes.

 

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

Your Answer:
public class Live {
class Customer{
String Name;
}

public boolean Login(String Name,String Password) {
return true;
}

public void AskCustomer() {

}
}

public void Discount() {

}

public void Buy() {

}
}

class NormalCustomer extends Customer{
public void Buy() {

}

public void TipStreamer() {

}
}

class NetworkAnchor{
String name;
int LiveNumber;
public void LiveStream() {

}
}

class CustomerService{
String name;
public void HelpCustomer() {

}
}

class Goods{
String GoodsName;
int Price;
int GoodsID;
}

class Administer{
String password;
public boolean Login(String Name,String Password) {
return true;
}

public void checkGoods() {

}

public void AddNewGoods(String GoodsName,int Price) {

}

public void RemoveGoods(String GoodsName) {

}
}

class LoginRegisterSystem{
int SequenceNumber;
boolean CheckUserName(String Name) {
return true;
}

}
}

  • 写回答

1条回答 默认 最新

  • 骆言 2022-10-19 20:12
    关注

    是的。

    希望采纳

    评论

报告相同问题?

问题事件

  • 创建了问题 11月16日

悬赏问题

  • ¥15 依据报错在原代吗格式的基础上解决问题
  • ¥15 在虚拟机中安装flash code
  • ¥15 单片机stm32f10x编写光敏电阻调节3.3伏大功率灯亮度(光强越大灯越暗,白天正常光强灯不亮,使用ADC,PWM等模块)望各位找一下错误或者提供一个可实现功能的代码
  • ¥20 verilog状态机方法流水灯
  • ¥15 pandas代码实现不了意图
  • ¥15 GD32H7 从存储器到外设SPI传输数据无法重复启用DMA
  • ¥25 LT码在高斯信道下的误码率仿真
  • ¥45 渲染完成之后将物体的材质贴图改变,自动化进行这个操作
  • ¥15 yolov5目标检测并显示目标出现的时间或视频帧
  • ¥15 电视版的优酷可以设置电影连续播放吗?