Country.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. namespace ControlCatalog.Models
  2. {
  3. public class Country
  4. {
  5. public string Name { get; private set; }
  6. public string Region { get; private set; }
  7. public int Population { get; private set; }
  8. //Square Miles
  9. public int Area { get; private set; }
  10. //Per Square Mile
  11. public double PopulationDensity { get; private set; }
  12. //Coast / Area
  13. public double CoastLine { get; private set; }
  14. public double? NetMigration { get; private set; }
  15. //per 1000 births
  16. public double? InfantMortality { get; private set; }
  17. public int GDP { get; private set; }
  18. public double? LiteracyPercent { get; private set; }
  19. //per 1000
  20. public double? Phones { get; private set; }
  21. public double? BirthRate { get; private set; }
  22. public double? DeathRate { get; private set; }
  23. public Country(string name, string region, int population, int area, double density, double coast, double? migration,
  24. double? infantMorality, int gdp, double? literacy, double? phones, double? birth, double? death)
  25. {
  26. Name = name;
  27. Region = region;
  28. Population = population;
  29. Area = area;
  30. PopulationDensity = density;
  31. CoastLine = coast;
  32. NetMigration = migration;
  33. InfantMortality = infantMorality;
  34. GDP = gdp;
  35. LiteracyPercent = literacy;
  36. BirthRate = birth;
  37. DeathRate = death;
  38. }
  39. }
  40. }