Personal Development Plan: program development takes 6-7 days, possibly more time!
User story: As an audience, want to know the score of the match
The user opens into the interface, the user chooses their own team to see the results of the match, click on the OK button to view the game results in the text box.
Public partial class Form1:form {Action action = new Action (); Public Form1 () {InitializeComponent (); } int 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 = (h+1). ToString (); if (H >= && (h-l) > 1) {txth1.text = (Convert.ToInt32 (txth1.text) + 1). ToString (); if ((H1 + L1) = = 0) {Txtcount1.text + = "First" + (i++) + "bureau:" + txth.text + ":" + txtl.text ; } if ((H1 + L1) = = 1) {Txtcount2.text + = "+" + (i++) + "bureau:" + txth.text + ":" + txtl.text; } if ((H1 + L1) = = 2) { Txtcount3.text + + + (i++) + "bureau:" + txth.text + ":" + txtl.text; } if ((H1 + L1) = = 3) {Txtcount4.text + = "+" + (i++) + "bureau:" + txth.text + ":" + txtl.text; } if ((H1 + L1) = = 4) {Txtcount5.text + = "+" + (i++) + "bureau:" + txth.text + ":" + txtl.text; } Txth.text = "0"; Txtl.text = "0"; if (Txth1.text = = "3") {MessageBox.Show ("one team wins"); Insert (); Txth.text = "0"; Txth1.text = "0"; Txtl.text = "0"; Txtl1.text = "0"; Txtcount1.clear (); Txtcount2.clear (); Txtcount3.clear (); Txtcount4.clear (); Txtcount5.clear (); }} if (H1 + L1 > 3) {if (H >= && (h-l) > 1) {txth1.text = (Convert . ToInt32 (Txth1.text) + 1). ToString (); if ((H1 + L1) = = 4) {Txtcount5.text + = "First" + (i++) + "bureau:" + txth.text + ":" + t Xtl.text + "\ r \ n"; } Txth.text = "0"; Txtl.text = "0"; if (Txth1.text = = "3") {MessageBox.Show ("one team wins"); Insert (); Txth.text = "0"; Txth1.text = "0"; Txtl.text = "0"; Txtl1.text = "0"; Txtcount1.clear (); Txtcount2.clear (); Txtcount3.clear (); Txtcount4.clear (); Txtcount5.clear (); i = 1; } } }} private void Btnl_click (object sender, EventArgs e) {int H = Conv Ert. ToInt32 (Txth.text); int L = Convert.ToInt32 (Txtl.text); int H1 = Convert.ToInt32 (Txth1.text); int L1 = Convert.ToInt32 (Txtl1.text); Txtl.text = (l+1). ToString (); if (l>= 24&& (l-h) >1) {Txtl1.text = (Convert.ToInt32 (txtl1.text) + 1). ToString (); if ((H1 + L1) = = 0) {Txtcount1.text + = "First" + (i++) + "bureau:" + txth.text + ":" + txtl.text ; } if ((H1 + L1) = = 1) {Txtcount2.text + = "+" + (i++) + "bureau:" + txth.text + ":" + txtl.te xt } if ((H1 + L1) = = 2) {Txtcount3.text + = "+" + (i++) + "bureau:" + txth.text + ":" + txtl.text; } if ((H1 + L1) = = 3) {txtCount4.Text + = "+" + (i++) + "bureau:" + txth.text + ":" + txtl.text; } if ((H1 + L1) = = 4) {Txtcount5.text + = "+" + (i++) + "bureau:" + txth.text + ":" + txtl.text; } Txth.text = "0"; Txtl.text = "0"; if (Txtl1.text = = "3") {MessageBox.Show ("Two teams win"); Insert (); Txth.text = "0"; Txth1.text = "0"; Txtl.text = "0"; Txtl1.text = "0"; Txtcount1.clear (); Txtcount2.clear (); Txtcount3.clear (); Txtcount4.clear (); Txtcount5.clear (); }} if (H1 + L1 > 3) {if (L >= && (l-h) > 1) {Txtl1.text = (Convert.ToInt32 (txtl1.text) + 1). ToString (); if ((H1 + L1) = = 4) {Txtcount5.text + = "+" + (i++) + "bureau:" + txth.text + ":" + Txtl.text; } Txth.text = "0"; Txtl.text = "0"; if (Txtl1.text = = "3") {MessageBox.Show ("Two teams win"); Insert (); Txth.text = "0"; Txth1.text = "0"; Txtl.text = "0"; Txtl1.text = "0"; Txtcount1.clear (); Txtcount2.clear (); Txtcount3.clear (); Txtcount4.clear (); Txtcount5.clear (); i = 1; } } } }
Personal Development Summary