TENDEX CALCULATOR APPLICATION

TENDEX system is a mathematical formula which calculates the basketball player’s productivity. Here it is presented a calculator which I have created eight years ago in C#. In the follow lines are presented the code and the interface of the applicationTENDEXPICT

namespace TENDEXCALCULATOR
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
try
{
RES.Text = (((Double.Parse(Points.Text) + Double.Parse(Rebounds.Text) + Double.Parse(Assists.Text) + Double.Parse(Steals.Text) + Double.Parse(Blocks.Text)) – ((Double.Parse(MFG.Text) + Double.Parse(MFT.Text) + Double.Parse(Turnovers.Text)+ Double.Parse(FC.Text))))).ToString();
TR.Text =((Double.Parse(RES.Text)/(Double.Parse(MP.Text)))).ToString();
}
catch (Exception)
{
MessageBox.Show(“Invalid input!Try Again!!!”);
}
}

private void Form1_Load(object sender, EventArgs e)
{

}

private void TR_TextChanged(object sender, EventArgs e)
{

}
}
}

 

sources:

1)https://en.wikipedia.org/wiki/Tendex

2)http://www.coachbasketball.gr/2010/06/tendex.html#.WiIEbA7o88w.facebook

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s