Click here to Skip to main content
15,670,981 members

Comments by paris jiji (Top 6 by date)

paris jiji 10-Apr-16 11:55am View    
I understand . Thanks
:(
paris jiji 10-Apr-16 11:47am View    
I would like answered questions . I said maybe someone will have information about questions
paris jiji 5-Apr-16 17:05pm View    
Based on this , but I saw it I was wrong !!!!
paris jiji 5-Apr-16 16:54pm View    
Deleted
namespace parisa
{
public partial class Form1 : Form
{
Random r = new Random();

public Form1()
{
InitializeComponent();
}

private void label4_Click(object sender, EventArgs e)
{

}

private void textBox1_TextChanged(object sender, EventArgs e)
{

}

private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
if (atxt.Text == " ")
{
MessageBox.Show("pls fill the emply boxes");
return;
}
if (btxt.Text == " ")
{
MessageBox.Show("pls fill the emply boxes");
return;
}
if (ctxt.Text == " ")
{
MessageBox.Show("pls fill the emply boxes");
return;
}
if (popsizetxt.Text == " ")
{
MessageBox.Show("pls fill the emply boxes");
return;
}
double x = 0;
double y = 0;
double z = 0;

for (int i = 0; i < int.Parse(popsizetxt.Text); i++)
{
x = r.Next(Int32.Parse(xmin.Text), Int32.Parse(xmax.Text)) + r.NextDouble();
y = r.Next(Int32.Parse(ymin.Text), Int32.Parse(ymax.Text)) + r.NextDouble();
z = r.Next(Int32.Parse(zmin.Text), Int32.Parse(zmax.Text)) + r.NextDouble();

int a = int.Parse(atxt.Text);
int b = int.Parse(btxt.Text);
int c = int.Parse(ctxt.Text);

double resulte = (double)(a * Math.Sin(x) + b * Math.Cos(y) + c * z);

string[] s = new string[4];

s[0] = x.ToString();
s[1] = y.ToString();
s[2] = z.ToString();
s[3] = resulte.ToString();
dataGridView1.Rows.Add(s);
}
}

private void dataGridView2_CellContentClick(object sender, DataGridViewCellEventArgs e)
{

}

private void button1_Click(object sender, EventArgs e)
{
popsizetxt.Text = r.Next(1, 50).ToString();
}

private void binaryrdb_CheckedChanged(object sender, EventArgs e)
{
if (bittxt.Text == " ")
{
MessageBox.Show("pls fill the emply boxes");
return;
}
if (atxt.Text == " ")
{
MessageBox.Show("pls fill the emply boxes");
return;
}
if (btxt.Text == " ")
{
MessageBox.Show("pls fill the emply boxes");
return;
}
if (ctxt.Text == " ")
{
MessageBox.Show("pls fill the emply boxes");
return;
}

if (popsizetxt.Text == " ")
{
MessageBox.Show("pls fill the emply boxes");
return;
}
double x = 0;
double y = 0;
double z = 0;

for (int i = 0; i < int.Parse(popsizetxt.Text); i++)
{
x = r.Next(Int32.Parse(xmin.Text), Int32.Parse(xmax.Text)) + r.NextDouble();
y = r.Next(Int32.Parse(ymin.Text), Int32.Parse(ymax.Text)) + r.NextDouble();
z = r.Next(Int32.Parse(zmin.Text), Int32.Parse(zmax.Text)) + r.NextDouble();

int a = int.Parse(atxt.Text);
int b = int.Parse(btxt.Text);
int c = int.Parse(ctxt.Text);



//int x_bits_length;
// int y_bits_length;
// int z_bits_length;

// List<string> x_bits = new List<string>();
//List<string> y_bits = new List<string>();
// List<string> z_bits = new List<string>();

double resulte = (double)(a * Math.Sin(x) + b * Math.Cos(y)
paris jiji 5-Apr-16 15:58pm View    
' MinValue ' can not be larger than MaxValue value .