CalcularChurrasco

547 palavras 3 páginas
using System; using System.Collections.Generic; using System.Linq; using System.Text;

namespace CalcChurras
{
class Bebida { private string _tipo; private double _preco; private double _porcentagem_estimada_consumo;

public string Tipo { get { return _tipo; } set { _tipo = value; } }

public double Preco { get { return _preco; } set { _preco = value; } }

public double PorcentagemEstimadaConsumo { get { return _porcentagem_estimada_consumo; } set { _porcentagem_estimada_consumo = value; } } }
}

using System; using System.Collections.Generic; using System.Linq; using System.Text;

namespace CalcChurras
{
class Carne { private string _nome; private double _preco; private double _porcentagem_estimada_consumo;

public string Nome { get { return _nome; } set { _nome = value; } }

public double Preco { get { return _preco; } set { _preco = value; } }

public double PorcentagemEstimadaConsumo { get { return _porcentagem_estimada_consumo; } set { _porcentagem_estimada_consumo = value; } }

}
}

using System; using System.Collections.Generic; using System.Linq; using System.Text;

namespace CalcChurras
{
class Pessoa { private string _sexo; private int _idade; private double _estimativa_consumo_carne; private double _estimativa_consumo_bebida;

public string Sexo { get { return _sexo; } set { _sexo = value; } }

public int Idade { get { return _idade; } set { _idade = value; } }

Relacionados