CÓDIGO: 301304
Presentado a:
MIRIAN DEL CARMEN BENAVIDES
Tutora
Entregado por:
Grupo: 301304_3
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace factura_bono_redimible
{/*El almacén ABC por cada compra que realizan sus clientes asigna puntos (10 puntos por cada
$1.000), los cuales pueden ser retirados.
Al final de la transacción, se debe calcular la cantidad acumulada de puntos asignados a los
clientes y el número de puntos que le corresponde al cliente que acaba de realizar la compra.
class Program
{
//imprimir información.
Console.WriteLine("*************factura de venta almacen ABC*************");
Console.WriteLine("************articulo televisor***********");
producto.producto();
producto.valor();
producto.vono();
Console.ReadKey();
}
}
}
}
EJERCICIO REALIZADO POR
ANRES RENE VARGAS
2. using System;
3. using System.Threading;
4. using System.Globalization;
5. using System.Collections.Generic;
6. using System.Linq;
7. using System.Text;
8. using System.Threading.Tasks;
9.
10.
11.
12. // Elaboro: ANDRES VARGAS ROBLES
13. // CODIGO: 1049633545
14.
15. namespace aplicacioncompu
16. {
17. class Datos
18. {
19.
20. // colocmos el primer atributo
21.
22.
23. String tamaño_disco;
24. public void setTamaño_disco(String n)
25. {
26. tamaño_disco = n;
27. }
28. public String getTamaño_disco()
29. {
30. return tamaño_disco;
31. }
32.
33. // colocamos el segundo atributo
34.
35.
36. String cantidad_ram;
37. public void setCantidad_ram(String n)
38. {
39. cantidad_ram = n;
40. }
41. public String getCantidad_ram()
42. {
43. return cantidad_ram;
44. }
45.
46.
47. // colocamos el tercer atributo:
48.
49. String velocidad_procesador;
50. public void setVelocidad_procesador(String n)
51. {
52. velocidad_procesador = n;
53. }
54. public String getVelocidad_procesador()
55. {
56. return velocidad_procesador;
57. }
58.
59. // colocamos el cuarto atributo:
60.
61. String valorcomercial;
62. public void setValor_comercial(String n)
63. {
64. valorcomercial = n;
65. }
66. public String getValor_comercial()
67. {
68. return valorcomercial;
69. }
70.
71. // VALOR DE IVA
72.
73. public int valor_iva;
74. public int valor_comercial;
75.
76.
77. public void iva()
78. {
79. Console.WriteLine("valor de iva" + (valor_comercial * 16 / 100));
80. }
81.
82.
83. // colocamos el quinto atributo:
84.
85. static void fecha_adquisicion(string[] args)
86.
87. {
88. CultureInfo ci = new CultureInfo("en-GB");
89. Thread.CurrentThread.CurrentCulture = ci;
90.
91. // DD // MM // YYYY :
92.
93. String fromDate = "12-10-2018";
94. DateTime dt = DateTime.Parse(fromDate);
95.
96. Console.WriteLine(dt.ToString());
97. Console.ReadLine();
98.
99.
100. }
101.
102.
103. }
104. }
105.
106.
107.
108. using System;
109. using System.Collections.Generic;
110. using System.Linq;
111. using System.Text;
112. using System.Threading.Tasks;
113.
114. namespace aplicacioncompu
115. {
116. class Program
117. {
118. static void Main(string[] args)
119. {
120. Datos d = new Datos();
121.
122.
123. Console.WriteLine("ESCRIBE EL TAMAÑO DE DISCO : ");
124. d.setTamaño_disco(Console.ReadLine());
125.
126. Console.WriteLine("ESCRIBE LA CANTIDAD DE RAM : ");
127. d.setCantidad_ram(Console.ReadLine());
128.
129. Console.WriteLine("ESCRIBE LA VELOCIDAD DE PROCESADOR :");
130. d.setVelocidad_procesador(Console.ReadLine());
131.
132. Console.WriteLine("ESCRIBE EL PRECIO DEL PRODUCTO :");
133. d.setValor_comercial(Console.ReadLine());
134.
135. d.valor_comercial = 3000000;
136. d.valor_iva = d.valor_comercial * 16 / 100;
137.
138.
139.
140.
141. Console.WriteLine("LA FECHA ES : ");
142. Console.WriteLine(DateTime.Today);
143. Console.ReadLine();
144.
145.
146. // ENCABEZADO DE LA IMPRESION
147.
148.
149. Console.WriteLine("+++++++++++++++ FACTURA DE COMPUCENTER
COMPUCENTER +++++++++++++++++");
150. Console.WriteLine("+++++++++++++++++++++ DESCRIPCION DE
PRODUCTO ++++++++++++++++++++++");
151.
Console.WriteLine("++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++");
152.
Console.WriteLine("++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++");
153.
154. // con este codigo se imprimen los registros de los datos anteriores:
155.
156. Console.WriteLine(" EL TAMAÑO DEL DICO ES : " + d.getTamaño_disco
());
157. Console.WriteLine(" LA CANTIDAD DE RAM : " + d.getCantidad_ram());
158. Console.WriteLine(" LA VELOCIDAD DE ELL PROCESADOR ES : " +
d.getVelocidad_procesador());
159. Console.WriteLine(" PRECIO DE PRODUCTO : " +
d.getValor_comercial());
160. Console.WriteLine(" VALOR DE IVA " + d.valor_iva);
161.
162.
163. Console.ReadKey();
164. }
165. }
166. }
}
}
}
CONCLUSIONES