View the step-by-step solution to:

Question

The population of Mexico at the end of 2014 was around 123.8 million.


Make a Java program that

will prompt the user for a number(a double) that represents a target population number(in millions) and print out the year in which the population of Mexico will reach or exceed that number, assuming a constant growth rate of 0.5 percent per year. Declare the starting year(2014), the starting population number(123.8), and the growth rate (0.5 percent) as symbolic constants.

Top Answer

public class calculatePopulation { private static int startYear = 2014; private static double population =... View the full answer

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question