zoukankan      html  css  js  c++  java
  • 第十八周冲刺

    psp

    1.计划时间

    8天

    2.需求分析

    用户故事:作为一个赛事管理人员,我希望知道每场比赛队伍得分和积分情况,以便给每队进行排名。

      从分析用例故事可以知道完成此程序需要这两项任务:选择任务和查询队伍的比分和积分情况。

    3.生成设计文档

    由排球用户故事的需求可知,这个程序用来统计各个队伍的比分与积分情况,并对各个队伍进行排名。

    4.设计复审

    将编写的程序进行生成,进行设计复审。看看是否生成错误,如果错误进行修改。

    5.代码规范:

                       利用VS对该程序进行代码规范。

    6.具体设计

     

    7.具体编码(部分)
            private void cmb1_SelectedValueChanged(object sender, EventArgs e)
            {
               
                if (this.cmb1.Text.Equals("第一场")) {
                  
                    this.txt1.Text = "34";
                    this.txt2.Text = "24";    
                    if (i)
                    {
                        int a = int.Parse(txt1.Text);
                        int b = int.Parse(txt2.Text);
                        sumA += a;
                        sumB += b;
                        this.sumGrade(sumA, sumB);
                        i = false;
                        if (a > b) {
                            shengchang++;
                            this.textBox3.Text = shengchang.ToString();
                        }
                        else if (a < b) {
                            bshengchang++;
                            this.textBox4.Text = bshengchang.ToString();
                        }
                    }

                }
                else if (this.cmb1.Text.Equals("第二场"))
                {
                    this.txt1.Text = "39";
                    this.txt2.Text = "27";
                  
                  
                    if (j) {
                        int a = int.Parse(txt1.Text);
                        int b = int.Parse(txt2.Text);
                        sumA += a;
                        sumB += b;
                        this.sumGrade(sumA, sumB);
                        j = false;
                        if (a > b) {
                            shengchang++;
                            this.textBox3.Text = shengchang.ToString();
                        }
                        else if (a < b)
                        {
                            bshengchang++;
                            this.textBox4.Text = bshengchang.ToString();

                        }
                    }
                }
                else if (this.cmb1.Text.Equals("第三场"))
                {
                    this.txt1.Text = "27";
                    this.txt2.Text = "23";
                    if (m) {
                        int a = int.Parse(txt1.Text);
                        int b = int.Parse(txt2.Text);
                        sumA += a;
                        sumB += b;
                        this.sumGrade(sumA, sumB);
                        m = false;
                        if (a > b) {
                            shengchang++;
                            this.textBox3.Text = shengchang.ToString();
                        }
                        else if (a < b)
                        {
                            bshengchang++;
                            this.textBox4.Text = bshengchang.ToString();
                        }
                    }
                }

               
            }
            public void sumGrade(int a,int b) {
                this.textBox1.Text = a.ToString();
                this.textBox2.Text = b.ToString() ;
            }

            private void button1_Click(object sender, EventArgs e)
            {
                sumA = 0;
                sumB = 0;
                i = true;
                j = true;
                m = true;
                n = true;
                o = true;
                shengchang = 0;
                bshengchang = 0;
                this.textBox1.Text = "";
                this.textBox2.Text = "";
                this.textBox3.Text = "";
                this.textBox4.Text = "";
                this.txt1.Text = "";
                this.txt2.Text = "";
                this.cmb1.Text = "";
                this.textBox5.Text = "";
            }

            private void Form1_Load(object sender, EventArgs e)
            {

            }

            private void button2_Click(object sender, EventArgs e)
            {
                this.textBox5.Text = "冠军:A          亚军:B";
         
            }
           
        }
    }

    8.代码复审

    1天

    9.测试

    30分钟

    10.测试报告

    功能不完善

    11.计算工作量

    30分钟

    12.总结

    想实现的功能没有实现,没有制定代码规范,写代码还不熟练。

  • 相关阅读:
    传值,传引用?一切都是传地址
    前端神器sublime
    PHP中文乱码的常见解决方法总结
    css mainDiv和popbox居中
    中文系统 上传file的input显示英文
    css 任何元素都可以加背景图
    xpath的简明语法
    JQuery技巧总结
    当工作和爱情不如意的时候...
    微软2008年将发布的产品全表
  • 原文地址:https://www.cnblogs.com/wllwll/p/6256801.html
Copyright © 2011-2022 走看看