Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace Tarea_14
  12. {
  13. public partial class frmTarea14 : Form
  14. {
  15. public frmTarea14()
  16. {
  17. InitializeComponent();
  18. }
  19.  
  20. private void frmTarea14_Load(object sender, EventArgs e)
  21. {
  22.  
  23. }
  24.  
  25. private void cmdSalida_Click(object sender, EventArgs e)
  26. {
  27. //Cierre del propgrama
  28. Close();
  29. }
  30.  
  31. private void cmdResultado_Click(object sender, EventArgs e)
  32. {
  33. //Programa que calcule el nombre del empleado y su sueldo
  34. //Camacho Herrera Felipe
  35. //Tarea 14
  36.  
  37. //Declaracion de variables
  38. string Namem ;
  39. //Asignacion de valores a las variables
  40. Namem = txtNamem.Text;
  41. //llamar al procedimiento
  42. Horas _sueldo(Namem);
  43.  
  44.  
  45.  
  46. //Procedimiento Horas_sueldo (Nombre1)
  47. //Declaracion de variables
  48. int Horast, Sueldoh;
  49. //Asignacion de valores a las variables
  50. Horast = System.Int32.Parse(txtHorast.Text);
  51. Sueldoh = System.Int32.Parse(txtSueldoh.Text);
  52. //Llamar al procedimiento
  53. Calculo1(Namem, Horast, Sueldoh);
  54. //Fin procedimiento
  55.  
  56. //Procedimiento calculo1 (Horastrabajadas, Sueldoph,Sueldof)
  57. //Asignacion de valores a las variables
  58. int Sueldof ;
  59. //Calculo
  60. Sueldof = Horast* Sueldoh ;
  61. //Llamar procedimiento
  62. Sfinal(Sueldof,Horast, Sueldoh, Namem);
  63. //Fin procedimiento
  64.  
  65. //Procedimient sfinal
  66. //Asignacion de valores a las variables
  67. int Sueldoph , Horastrabajadas;
  68. //Salida del resultado
  69. txtNamem.Text = Namem.ToString();
  70. txtSueldof.Text = Sueldof.ToString();
  71. txtSueldoph.Text = Sueldoph.ToString();
  72. txtHorastrabajadas.Text = Horastrabajadas.ToString();
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80. }
  81. }
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement