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