ive gotten this far
public boolean makeBricks(int small, int big, int goal) {
if ((big & small)> 0){
if (goal%(big*5)<=small){
return true;
}else{
return false;
}
Type: Posts; User: JoshKesner
ive gotten this far
public boolean makeBricks(int small, int big, int goal) {
if ((big & small)> 0){
if (goal%(big*5)<=small){
return true;
}else{
return false;
}
Here is the question: Given an array of ints, return the number of times that two 6's are next to each other in the array. Also count instances where the second "6" is actually a 7.
Here is the...
Thanks i was planning on using words
We want to make a row of bricks that is goal inches long. We have a number of small bricks (1 inch each) and big bricks (5 inches each). Return true if it is possible to make the goal by choosing...
public class SimpsonsParadox{
public static boolean isSimpsonExample(int p1y1S, int p1y1T, int p2y1S, int p2y1T, int p1y2S, int p1y2T, int p2y2S, int p2y2T){
if (((p1y1S +...
Here is my code in complete
public class BenfordsLaw{
public static void main(String[] args){
System.out.print("Generating Benford Sequence with initial amount =" + 100);...
ok here is my code in complete:
public class BenfordsLaw{
public static void main(String[] args){
System.out.print("Generating Benford Sequence with initial amount =" +...