20090924

PRACTICA 2.3 COSTO DE UN AUTO MOVIL ( visual)

A CONTINUACION EL CODIGO EN VISUAL ,. PARA EL COSTO DE UN AUTOMOVIL,.

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 practica__C.v_
{
public partial class Form1 : Form
{
int Ct, G, I, Ca;
public Form1()
{
Ct = G = I = Ca = 0;
InitializeComponent();
}

private void pictureBox1_Click(object sender, EventArgs e)
{

}

private void Form1_Load(object sender, EventArgs e)
{

}

private void label1_Click(object sender, EventArgs e)
{

}

private void button1_Click(object sender, EventArgs e)
{
Ca = int.Parse(textBox1.Text);
I = (Ca * 6) / 100;
G = (Ca * 12) / 100;
Ct = I + G + Ca;
textBox4.Text = Ct.ToString();
textBox2.Text = I.ToString();
textBox3.Text = G.ToString();
}

private void button3_Click(object sender, EventArgs e)
{

}

private void button2_Click(object sender, EventArgs e)
{
textBox1.Clear();
textBox2.Clear();
textBox3.Clear();
textBox4.Clear();
}

private void label2_Click(object sender, EventArgs e)
{

}
}
}

No hay comentarios:

Publicar un comentario