• <nav id="26o4m"><source id="26o4m"></source></nav>
  • ee-308-lab9

    Cwq_kirito 福州大学 2021-12-07 13:12:14
    The Link Your Classhttp://www.docjed.com/forums/MUEE308FZ?category=0
    The Link of Requirement of This Assignmentee-308-lab9-CSDN社区
    The goal of this assignmentlearning UML
    MU STU ID and FZU STU ID19103077——831901218

    ?

    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 be done using 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.

    ?


    Q1.

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

    Your Answer:

    The actors: seller, professional anchor, celebrity , executive, consumer.

    Seller, an actor who intend to sell goods through the live streaming sale system.

    Professional anchor, an actor who employed by sellers to host live shows.

    Celebrity, an actor who also want to profit from live streaming system by selling goods or broadcasting.

    Executive, an actor who participate in the live stream sale system.

    Consumer, an actor who want to purchase goods through watching live shows on the live stream sale system.

    ?

    ?

    ?

    ?

    ?

    Q2.

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

    Your Answer:

    ?

    ?

    ?

    Q3.

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

    Your Answer:

    Watch live show: Users can use software to open the system and watch live broadcasts.

    Purchase goods: Users can buy goods after sign up their account and pay the money online.

    Live show: Pushed by the anchors or the sellers to recommend goods.

    Sell goods: The system has the channel to let consumers purchase the goods.

    Consultation response: Questions consulted by consumers or who is interest in the goods, and sellers or anchors will solute these questions.

    Shopping guide: The sellers and professional anchor will teach you how to buy their goods and how to use their goods.

    Commodity display: In the studio, the sellers and anchors will display the outlook of the goods and the usage of it to facilitate audience to understand this goods.

    ?

    Q4.

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

    Your Answer:

    ?

    ?

    ?

    ?

    ?

    Q5.

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

    Your Answer:

    ?

    ?

    ?

    Q6.

    (vi) Prepare state diagrams for primary classes.

    Your Answer:

    ?

    ?

    ?

    ?

    Q7.

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

    Your Answer:

    public class User

    {

    ??? private:

    ??????? string name;

    ??????? string password;

    ??? public:

    ??????? string username;

    ??????? void login();

    ??????? void register();

    ??????? void exit();

    };

    public class consumer: public User

    {

    ??? private:

    ??????? void purchase();

    ??? public:

    ??????? void watch live show();

    ??????? void consult();

    ??????? void pay money();

    };

    public class anchor : public User

    {

    ??? public:

    ??????? string password;

    ??????? int username;

    ??? private:

    ??????? void living show();

    ??????? void guide shopping();

    ??????? void display goods();

    };

    public class seller: public User

    {

    ??? public:

    ??????? void update goods' informations();

    ??????? void Check();

    ??????? void employ anchor();

    };

    public class goods:

    {

    ??? public:

    ????????? string names;

    ????????? int price;

    }

    ?

    ...全文
    247 回复 点赞 打赏 收藏 举报
    写回复
    回复
    切换为时间正序
    请发表友善的回复…
    发表回复
    相关推荐
    发帖
    福州大学-软件工程EE308-2021秋
    创建于2021-09-10

    185

    社区成员

    福州大学 梅努斯国际工程学院 软件工程 教学
    帖子事件
    创建了帖子
    2021-12-07 13:12
    编辑了帖子
    2021-12-07 13:12
    社区公告
    暂无公告
    天天躁夜夜躁狠狠综合2020,日本二区三区欧美亚洲国,自拍另类欧美图区视频一区,青青草国产免费无码