Saturday, September 29, 2012

Quadratic Equation in C#

This is for programmers. If you have problem in College Algebra and learner of computer programming then go ahead and copy and paste this code then you can do the assignments in few seconds.
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 dQuadratic_Equation
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnSolve_Click(object sender, EventArgs e)
        {
            double A = Convert.ToDouble(coeffXx.Text);
            double B = Convert.ToDouble(coeffX.Text);

            double C = Convert.ToDouble(consTant.Text);
           

            double E = -B - Math.Sqrt((Math.Pow(B,2) - 4*A*C));
            double F = -B + Math.Sqrt((Math.Pow(B,2) - 4*A*C));
          
         
            double G = 2 * A;

            double Xp =(E)/(G);
            double Xn = (F)/(G);

            positiveX.Text = Xp.ToString();
            negativeX.Text = Xn.ToString();

        }

        private void btnEraser_Click(object sender, EventArgs e)
        {
          
            coeffX.Clear();
            coeffXx.Clear();
            consTant.Clear();
            coeffXx.Focus();
        }

        private void btnOff_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}

This will make your life much easier.

Tuesday, September 4, 2012

Rice Rice Rice.....Benefits of eating Rice

  • Rice is the primary dietry staple for more than half of the world's population.
  • US grown rice is the standard for excellence and accounts for nearly 88% of the rice consumed in America. It is grown and harvested by local farmers in five south-central states and California.
  • Rice contains no sodium, cholesterol, trans fats or gulten, and has only a trace of fat. One half-cup of rice contains about 100 calories.
  • Research shows that people who eat rice have healthier diets than non-rice eaters and eat more like the US Dietry Guidelines for Americans recommendations.
  • Whole grains like brown rice help reduce the risk of chronic disease such as heart diseases, disbeters and cartain cancers and aid in weight management.
  • Brown rice is a 100% whole grain. One cup of whole grain rice provides two of the three recommended daily servings of whole grains.
  • Eating rice triggers the product of serotonin in the brain, a chemical that helps regulate and improve mood.
  • September is National Rice month- promoting awareness of the versatility and the value of US. grown rice.