Question: Ues Visual Studio please, show all your work please Lab #4: Population Growth 15 Points For this program, develop a CONSOLE APPLICATION that allows the
Ues Visual Studio please, show all your work please
Lab #4: Population Growth 15 Points For this program, develop a CONSOLE APPLICATION that allows the user to project the population of your city for a specified number of years and growth rate. Allow the user to specify the current year's population, the number of years, and the annual growth rate Use integers for population and number of years. Enter annual growth rate as a percent. For example, 5.5% would be entered as 5.5 Use a loop to compute and display each year, starting with the current year, and the corresponding . Kee p (and round) population as an integer population Remember, next year's growth includes on this year's growth. Use a loop to allow the user to run the program again without exiting. Use appropriate data types and names for variables. Do not forget to add the Program/Author block at the beginning of your source code. Submit a copy of the code and the exccutable to Moodle NOTES All of your code will go in the main method. The main method is in the Program class. The form of the header line is below namespace INF143Lab4PopulationGrowth class Program static void Main(string] args) Instead of Labels, you will use Console.WriteLine ("text to write to screen"); Instead of TextBoxes, you will use stringVariable-Console.ReadLine or int variable-int.Parse (Console.ReadLine ) To calculate growth: newPopulation-Math.Round (oldPopulation (1growthRate100.0))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
