...poco a poco los impulsos eléctricos comenzaron a llenar la memoria de su cerebro de silicio. Tras un pequeño parpadeo que ilumino sus ojos, cobro vida...
Mostrando entradas con la etiqueta Estructura secuencial. Mostrar todas las entradas
Mostrando entradas con la etiqueta Estructura secuencial. Mostrar todas las entradas
Interés Compuesto
El interés compuesto representa la acumulación de intereses que se han generado en un período determinado por un capital inicial (CI) o principal a una tasa de interés (r) durante (n) periodos de imposición, de modo que los intereses que se obtienen al final de cada período de inversión no se retiran sino que se reinvierten o añaden al capital inicial, es decir, se capitalizan.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace InteresCompuestoForms
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
// Variables
float capital, redito, tiempo, interes, monto, tipo;
//Borrar
private void button3_Click(object sender, EventArgs e)
{
textBox1.Clear();
textBox2.Clear();
textBox3.Clear();
textBox4.Clear();
textBox5.Clear();
}
private void button1_Click(object sender, EventArgs e)
{
//Entrada
capital = float.Parse(textBox1.Text);
redito = float.Parse(textBox2.Text);
tiempo = float.Parse(textBox3.Text);
tipo = redito / 100;
Suma N primeros números enteros.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace numero22
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
//Variables
int numero, suma;
private void button2_Click(object sender, EventArgs e)
{
suma = (numero * (numero + 1)) / 2;
textBox2.Text = suma.ToString();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
numero = int.Parse(textBox1.Text);
}
Radicación
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace numero21
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
int radicando, indice, raiz;
private void button2_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
radicando = int.Parse(textBox1.Text);
}
private void textBox2_TextChanged(object sender, EventArgs e)
{
indice = int.Parse(textBox2.Text);
}
Potencia de un numero
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace numero16
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
//Variables
short entero, exponente;
int potencia;
//Entrada
private void textBox1_TextChanged(object sender, EventArgs e)
{
entero = short.Parse(textBox1.Text);
}
private void textBox2_TextChanged(object sender, EventArgs e)
{
exponente = short.Parse(textBox2.Text);
}
Suma de dos enteros
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace numero2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
//Variables
int entrada1, entrada2, salida;
//Entrada
private void textBox1_TextChanged(object sender, EventArgs e)
{
entrada1 = int.Parse(textBox1.Text);
}
private void textBox2_TextChanged(object sender, EventArgs e)
{
entrada2 = int.Parse(textBox2.Text);
}
Suscribirse a:
Entradas (Atom)