EE308 Lab4

The24601 2021-11-22 21:52:05

The Link Your Class

https://bbs.csdn.net/forums/MUEE308FZ?category=0

The Link of Requirement of This Assignment

https://bbs.csdn.net/topics/601188617

The Aim of This Assignment

Develop a BoBing software

MU STU ID and FZU STU ID

19105274-831901203

Teammate's MU STU ID and FZU STU ID 

19105681-831901211

Teammate's blog link 

https://bbs.csdn.net/topics/601429282

 

  1. The key or difficult functions and programming thinking

 

(1) The logical relationship between the result of the six dice roll and the corresponding prize.

Six dice get six random numbers, we need to generate these six number and record the number and give the result by counting the total of these number show.

 

(2) Logical relationship between buttons and interface jumps.And the size of the interface and the computer interface, background, button matching, prevent the program crazy in the computer main interface, background overlapping or button dislocation.

 

2、Programming experience

 

As far as I am concerned, also in my partner’s opinion, programming is to design each interface after determining the core logic and program code, and then link the interface through buttons.

Then the debugged program in accordance with customer requirements to add content, modify and improve, add pictures for beautification.

Once the main body is complete, you can refine details such as cursors and shortcuts.  Test the program, make the program.

In additions, there are many rewarding events, such as learning for the first time how to develop a small program from start to finish, what you need, and how you should do it.
Then the process of implementing the small program, I will find that all kinds of original ideas which can not be realized, and I need to discuss with my partner, and go forward the change method; I understand that the product is not completely made in accordance with the model, and I need to constantly improve in the implementation process, constantly reject, and then constantly put forward new ideas, and finally make such a small program.

3、PSP Form

 

PSP Stages

Estimated Time/minutes

Completed Time/minutes

Planning

80

120

Time Estimation

50

60

Development

-

-

Requirement Analysis

110

120

Design Documents

-

-

Design Review

-

-

Code Specification

120

130

Specific Design

400

400

Specific Coding

1500

2000

Code Review

120

120

Test

600

800

Presentation

70

80

Test Report

-

-

Calculation Workload

30

40

Summary&Improvement

70

100

Total

3150

3970

We decided to use wechat mini program to complete this task. Because wechat small program is more convenient and fast and users do not need to download can be achieved.

 

 

4. Judgment of the results of bobing

 

 

 

 

 

5.Difficult functions and programming thinking:

 

In this experimental assignment, we believe that the main function and programming thinking is the judgment of the final result of six random dicers. Due to many situations and considering the priority and weight of the results, this part of the code is very error prone.It is difficult to design the algorithm to judge the result of dice . By referring to the real scene appearance of the bobing ,  we decided to realize this by clicking the Start button to make the dice automatically generate points ,  and clicking the end system to automatically generate the result of the bobing . 

  if(numarr1[3]==4 && numarr1[0]==2){
        obj.setData({
          txt:'您获得状元(状元插金花)',
        })
      }else if(numarr1[3]==6){
        obj.setData({
          txt:'您获得状元(六杯红)',
        })
      }else if(numarr1[0]==6 || numarr1[1]==6 || numarr1[2]==6 || numarr1[4]==6 || numarr1[5]==6){
        obj.setData({
          txt:'您获得状元(六杯黑)',
        })
      }else if(numarr1[3]==5){
        obj.setData({
          txt:'您获得状元(五王)',
        })
      }else if((numarr1[0]==5 || numarr1[1]==5 || numarr1[2]==5 || numarr1[4]==5 || numarr1[5]==5)&&numarr1[3]==1){
        obj.setData({
          txt:'您获得状元(五子带一秀)',
        })
      }else if((numarr1[0]==5 || numarr1[1]==5 || numarr1[2]==5 || numarr1[4]==5 || numarr1[5]==5)){
        obj.setData({
          txt:'您获得状元(五子登科)',
        })
      }else if(numarr1[3]==4){
        obj.setData({
          txt:'您获得状元',
        })
      }else if(numarr1[0]==1 && numarr1[1]==1 && numarr1[2]==1 && numarr1[4]==1 && numarr1[5]==1 && numarr1[3]==1){
        obj.setData({
          txt:'您获得榜眼(对堂)',
        })
      }else if(numarr1[3]==3){
        obj.setData({
          txt:'您获得探花(三红)',
        })
      }else if((numarr1[0]==4 || numarr1[1]==4 || numarr1[2]==4 || numarr1[4]==4 || numarr1[5]==4)){
        obj.setData({
          txt:'您获得进士(四进)',
        })
      }else if(numarr1[3]==2){
        obj.setData({
          txt:'您获得举人(二举)',
        })
      }else if (numarr1[3]==1){
        obj.setData({
          txt:'您获得秀才(一秀)',
        })
      }else{
        obj.setData({
          txt:'很遗憾您未获奖',
        })

 

6.Experience of Pairing Cooperation

 

This experiment strengthens our ability of teamwork, and our division of labor is more obvious. We also learned a new programming language in this experiment.

we didn't have a code specification, which was the easiest thing to overlook, which made the code look ugly when we first worked together, and it was not easy to understand each other's code, which caused a lot of trouble for us. With this experience we also learned that we need to determine the specifications first.

 

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

185

社区成员

福州大学 梅努斯国际工程学院 软件工程 教学
帖子事件
创建了帖子
2021-11-22 21:52
社区公告
暂无公告