Professional Documents
Culture Documents
EVALUACIÓN #3
PROGRAMACIÓN II
Profesor(a): Estudiante:
C.I: 30.522.709
using System;
using System.Collections.Generic;
namespace Evaluación
{
public class Products
{
public string ProductName { set; get; }
public double ProductPrice { set; get; }
}
public class ProductData
{
public string Name { set; get; }
public double Price { set; get; }
}
public class TotalPrice
{
ProductData data = new ProductData();
private double iva = 0.19;
}
class Program
{
static void Main()
{
int count = 0;
int condicional = 0;
Console.WriteLine("Ingrese su nombre");
string UserName = Console.ReadLine();
Console.Clear();
Console.WriteLine($"Bienvenido a nuestra tienda {UserName}!");
Console.WriteLine();
Console.WriteLine("Porfavor ingrese la clave");
int Password = Int32.Parse(Console.ReadLine());
if (count == 3)
{
Console.WriteLine("Muchos intentos. Su usuario ha sifo
bloqueado.");
Environment.Exit(0);
}
}
Console.Clear();
Console.WriteLine();
Console.WriteLine($"Estos son los productos disponibles:");
Console.WriteLine();
if (bucle == "true")
{
List<ProductData> data = new List<ProductData>();
Console.Clear();
Console.WriteLine("");
Console.WriteLine("Selected products:");
}
else if (bucle == "false")
{
TotalPrice Total = new TotalPrice();
Console.WriteLine($"El monto total a pagar es: {Total.total}");
Console.WriteLine("Vuelva pronto");
Environment.Exit(0);
}
}
}