15 Week work

Source: Internet
Author: User

Plan
How long is it going to take? 7 days
Demand analysis 1h
Creating a design Document 1h
Design Review 40min
Code specification 20min
Specific design 40min
Specific code 5 days
Code review 1h
Test 50min
Test report 10min
Computational effort 25min

Using System;
Using System.Collections.Generic;
Using System.ComponentModel;
Using System.Data;
Using System.Drawing;
Using System.Linq;
Using System.Text;
Using System.Windows.Forms;

Namespace Volleyball Scoring Program
{
public partial class Form1:form
{
Public Form1 ()
{
InitializeComponent ();
}
int a, b,i= 1;
private void Btnh_click (object sender, EventArgs e)
{
int H = Convert.ToInt32 (Txth.text);
int L = Convert.ToInt32 (Txtl.text);
int H1 = Convert.ToInt32 (Txth1.text);
int L1 = Convert.ToInt32 (Txtl1.text);
Txth.text = (a++). ToString ();
if (H >= && (h-l) > 1)
{
Txth1.text = (Convert.ToInt32 (txth1.text) + 1). ToString ();
Txth.text = "0";
Txtl.text = "0";
Txtcount.text + + + (i++) + "bureau:" + txth1.text + ":" + txtl1.text;
A = 1;
if (Txth1.text = = "3")
{
MessageBox.Show ("Team A wins");
Txth.text = "0";
Txth1.text = "0";
Txtl.text = "0";
Txtl1.text = "0";
Txtcount.clear ();
}
}
if (H1 + L1 > 3)
{
if (H >= && (h-l) > 1)
{
Txth1.text = (Convert.ToInt32 (txth1.text) + 1). ToString ();
Txth.text = "0";
Txtl.text = "0";
Txtcount.text + + + (i++) + "bureau:" + txth1.text + ":" + txtl1.text;
A = 1;
if (Txth1.text = = "3")
{
MessageBox.Show ("Team A wins");
Txth.text = "0";
Txth1.text = "0";
Txtl.text = "0";
Txtl1.text = "0";
Txtcount.clear ();
i = 1;
}
}
}
}

private void Btnl_click (object sender, EventArgs e)
{

int H = Convert.ToInt32 (Txth.text);
int L = Convert.ToInt32 (Txtl.text);
int H1 = Convert.ToInt32 (Txth1.text);
int L1 = Convert.ToInt32 (Txtl1.text);
Txtl.text = (b++). ToString ();
if (l>= 24&& (l-h) >1)
{
Txtl1.text = (Convert.ToInt32 (txtl1.text) + 1). ToString ();
Txth.text = "0";
Txtl.text = "0";
Txtcount.text + + + (i++) + "bureau:" + txth1.text + ":" + txtl1.text;
B= 1;
if (txtl1.text== "3")
{
MessageBox.Show ("Team B wins");
Txth.text = "0";
Txth1.text = "0";
Txtl.text = "0";
Txtl1.text = "0";
Txtcount.clear ();
}
}
if (h1+l1>3)
{
if (L >= && (l-h) > 1)
{
Txtl1.text = (Convert.ToInt32 (txtl1.text) + 1). ToString ();
Txth.text = "0";
Txtl.text = "0";
Txtcount.text + + + (i++) + "bureau:" + txth1.text + ":" + txtl1.text;
b = 1;
if (Txtl1.text = = "3")
{
MessageBox.Show ("Team B wins");
Txth.text = "0";
Txth1.text = "0";
Txtl.text = "0";
Txtl1.text = "0";
Txtcount.clear ();
i = 1;
}
}
}

}

private void Form1_Load (object sender, EventArgs e)
{

}





}
}

15 Week work

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.