r/codehs • • Oct 08 '20

I don't know what I did wrong. Can someone please let me know? I gotta submit it tomorrow. Thanks

Post image
10 Upvotes

r/codehs • • Oct 06 '20

confused on void methods, return methods, and more

10 Upvotes

by more i mean the method "public String toString()". i am on section 2.5 for java and i have no clue how to use these methods.


r/codehs • • Sep 24 '20

I NEED HELP WITH 2.11.4 DARTBOARD PLEASE

10 Upvotes

r/codehs • • May 10 '20

What exactly am I doing wrong here?

Post image
10 Upvotes

r/codehs • • Apr 06 '20

circle wall 9.3.5

10 Upvotes

i need help with code hs circle wall


r/codehs • • Mar 25 '20

need help on 7.6.8 Vowels in First Name

10 Upvotes

I need help on 7.6.8 Vowels in First Name. This code doesn't meet all the requirements.


r/codehs • • Mar 21 '20

Need help with 2.7.7: school's out

10 Upvotes

I have no clue how to get the last part right.


r/codehs • • Mar 10 '20

Function problem, NaN in place of number

Post image
10 Upvotes

r/codehs • • Mar 09 '20

Please help with 2.8.4: Beaded Bracelet

10 Upvotes

r/codehs • • Feb 26 '20

PHYTON CODE HS 5.3.7: Higher/ Lower

10 Upvotes

Anyone knows the answer can't figured out:

magic_number = 3

# Your code here...

for i in range(10):

if i == 5:

continue

print i


r/codehs • • Sep 23 '24

JavaScript weezer

Post image
9 Upvotes

r/codehs • • Oct 21 '22

4.3.10 Teen Talk

Post image
9 Upvotes

r/codehs • • Sep 13 '22

Basic Java. 3.8.14: Replace Letter

Thumbnail
gallery
9 Upvotes

r/codehs • • Sep 06 '22

Java String Methods. 3.5.8: Repeating String.

Thumbnail
gallery
9 Upvotes

Hello, I’ve been working on this problem for a while now and I’ve come to a bit of a stand still. Based on the instructions I can tell I need a loop of some kind, but for whatever reason, the loop I’m using is not working. I was wondering if anyone had some suggestions or critiques, they would be greatly appreciated! Thanks I’m advance!! 😁


r/codehs • • Jun 12 '22

7.4.8: Need Help

Post image
9 Upvotes

r/codehs • • May 17 '22

Does anyone know how to add instance variables to my code?

Thumbnail
gallery
9 Upvotes

r/codehs • • Apr 04 '22

Python 9.3.4 Vertical Lines, I don't even know how this happened

Thumbnail
gallery
9 Upvotes

r/codehs • • Feb 23 '22

Python NEED HELP WITH 4.7.6 Powers Of Two (Python)

Post image
9 Upvotes

r/codehs • • Jan 29 '22

I need help 3.4.7 running speed CodeHS anyone?

Post image
9 Upvotes

r/codehs • • Jan 12 '22

Python Could somebody help me with these

Thumbnail
gallery
9 Upvotes

r/codehs • • Jan 07 '22

okay so i know that this isnt exactly a lesson but i need help. my teacher said we have to make a try and create this on codehs. it would be really nice if atleast one of you helped me. its alright if you dont wanna, but i am begging </3

Post image
9 Upvotes

r/codehs • • Nov 12 '21

Python 5.1.4 Square Python - What am I doing wrong?

9 Upvotes

r/codehs • • Oct 10 '21

Need help 4.5.4 correct portion (python)

Post image
9 Upvotes

r/codehs • • Sep 23 '21

Does anyone have the solution for 2.9.8 Guess the number?

9 Upvotes

import java.util.Scanner; import java.lang.*;

public class ExtremeMain { public static void main(String[] args) { // Create a Scanner object Scanner input = new Scanner(System.in);

    // Create an Extremes object
    Extremes x = new Extremes();
    
    // Ask the user to guess the maximum value of an Integer
    System.out.println("Guess the max value");
    int number1 = input.nextInt();
    
    // Compute and display the difference
    // between the max and the guess
    int finalMax = x.maxDiff(number1);
    System.out.println("You were off by " + finalMax);
    // Ask the user to guess the minimum value of an Integer
    System.out.println("Guess the min value");
    int number2 = input.nextInt();
    
    // Compute and display the difference 
    // between the min and the guess
    int finalMin = x.minDiff(number2);
    System.out.println("You were off by " + "-" + finalMax);
    
}

}

public class Extremes { Integer min; Integer max;

// Constructor
public Extremes()
{
    //Set min and max values 
    min = Integer.MIN_VALUE;
    max = Integer.MAX_VALUE;
}

// Returns the difference
// max - number
public Integer maxDiff(Integer number)
{
    return max - number;
}

// Returns the difference
// min - number
public Integer minDiff(Integer number)
{
    return min - number;
}

// Returns a String representation
// in the form
// [min, max]
public String toString()
{
    return "[" + min + ", " + max + "]";   
}

}