private static void Main(string[] args) { Inputwrapper iw = new Inputwrapper(); Hotel hotel = new Hotel(); City = iw.getString("City: "); Name = iw.getString("Name: "); Rooms = iw.getInt("Number of Rooms: "); Cost = iw.getDecimal("Cost: "); Year = iw.getInt("Year: "); Rating = iw.getInt("Star Rating: "); Console.WriteLine(Show()); }
static void Main(string[] args) { Inputwrapper iw = new Inputwrapper(); double annualPopIncrease; double estimatedPop; //Calculate world population growth each year till 75 years int currentPop = iw.getInt("Current World Poplulation: "); decimal growthRate = iw.getDecimal("Current Growth Rate % (e.g, 2.0 for 2%): "); int anticipatedWorldPoplulation; for (int count = 0; count <= 75; count++) { annualPopIncrease = ((growthRate / 100) * currentPop)) * count; estimatedPop = currentPop + annualPopIncrease; } }