Created
April 28, 2016 22:41
-
-
Save pry0cc/2d2d9690560249cc74b39164ac78c4ca to your computer and use it in GitHub Desktop.
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
import java.util.Scanner; | |
public class JoshuaFlores_Exam4 { | |
public static void main(String[] args){ | |
Scanner input = new Scanner(System.in); | |
int day = 1; | |
int floor = 120; | |
int weeks = 7; | |
int roachsize = 3; | |
double formula = 0.53 * roachsize * 4; | |
double time = (0.53 * roachsize * 4)/(7); | |
while (day = 1; day * weeks; day++){ | |
while(formula <= 120){ | |
formula++; | |
} | |
} | |
System.out.println("A total of 4 cockaroaches will fully cover my apartment floors in weeks:" + time); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment