EE308 LAB9

HSIF HSIF 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
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;
}

}
}

 

 

 

 

...全文

相关推荐

评论
收藏 已收藏
分享
返回顶部