EE308 LAB9

ZHENGYU-831901211 2021-12-25 14:20:36
The Link Your Classhttps://bbs.csdn.net/forums/MUEE308FZ
The Link of Requirement of This Assignment
https://bbs.csdn.net/topics/603386400
The Aim of This Assignment

To draw UML picture more proficiently. 

MU STU ID and FZU STU ID19105681 831901211

 

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

 

Host: The person responsible for introducing and selling products  

Customer: the person who wants to buy the product.  

Merchant: one responsible for supplying goods  

Administrator: the person responsible for checking whether there is any illegal behavior in the broadcasting room  

II. Prepare a use case diagram for this system.

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

 

1.Users bind their own identity information, log in the account to enter the studio.  Here he can buy items in the shopping cart according to the recommended items of the anchor.  At the same time, he can see the detailed logistics of the goods.  On the payment interface, users can select payment methods such as wechat and Alipay and fill in their address information.  Then you can place your order successfully.  Upon arrival, if he is not satisfied, he can choose to return or exchange the goods.  

2.The job of customer service is to reply some customer information on the platform, help customers better understand the product information, and deal with some after-sales services, such as helping customers to return or replace goods.  

3.After gogging in to the system, anchors can open their own live broadcast studio, introduce their products in the live broadcast studio and recommend consumers to buy 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.
Your Answer:

(6) Prepare state diagrams for primary classes.

 

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

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;
}

}
}

 

 

 

 

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

183

社区成员

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

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