-
-
Save bytecodeman/1f155ff4071b3c4d6b8077190de482d0 to your computer and use it in GitHub Desktop.
CSC-111 HW1 Population Project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Tony Silvestri | |
// 9/14/17 | |
// silvestri@stcc.edu | |
// Population Projection Problem | |
// CSCI-111-D01 | |
// HW 2: Problem 1-11 | |
public class Population { | |
public static void main(String[] args) { | |
System.out.println("Population in Year 0: " + | |
312032486); | |
System.out.println("Population in Year 1: " + | |
(312032486 + 365*24*60*60/7 - 365*24*60*60/13 + 365*24*60*60/45)); | |
System.out.println("Population in Year 2: " + | |
(312032486 + 2*(365*24*60*60/7 - 365*24*60*60/13 + 365*24*60*60/45))); | |
System.out.println("Population in Year 3: " + | |
(312032486 + 3*(365*24*60*60/7 - 365*24*60*60/13 + 365*24*60*60/45))); | |
System.out.println("Population in Year 4: " + | |
(312032486 + 4*(365*24*60*60/7 - 365*24*60*60/13 + 365*24*60*60/45))); | |
System.out.println("Population in Year 5: " + | |
(312032486 + 5*(365*24*60*60/7 - 365*24*60*60/13 + 365*24*60*60/45))); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment