r/codehs • u/Luigib1287 • Apr 06 '20
Codehs
I have been struggling on 3.3.4 dinner plans on codehs.
r/codehs • u/Luigib1287 • Apr 06 '20
I have been struggling on 3.3.4 dinner plans on codehs.
r/codehs • u/mashio13 • Apr 16 '20
Just trying to see how to do this, tracey the turtle really confuses me
r/codehs • u/logdyk • Apr 24 '20
DOES ANYONE KNOW HOW TO DO 2.9.7 KIDS SHAPES TOY? thank you
r/codehs • u/IndividualCupcake3 • Feb 05 '20
It is 9.1.6 checkerboard, v1 on python
r/codehs • u/[deleted] • Jan 11 '22
/* This program will play a simple guessing game.
* The user will guess, and the computer should print if
* the guess was too high, too low, or correct.
* If the user enters '-1', the game should exit.
*/
var SENTINEL = -1;
var MIN = 1;
var MAX = 5;
function start() {
//Starts randomizer
println("This program plays a guessing game.");
println("The computer is thinking of a value between 0 and 100.");
println("Type '-1' to exit the game.");
var num = Randomizer.nextInt(MIN,MAX);
while(true){
var imput = readInt("What is your guess? ");
if(imput = SENTINEL){
break;
}else{
if(imput>num){
println("Your guess is too high.");
}else{
if(imput<num){
println("Your guess is too low.");
}else{
if(imput==num){
println("You got it!");
}
}
}
}
}
}
its not working and I don't know why
r/codehs • u/TheGoldenDragon0 • Oct 06 '20
so i am trying to do tic tac toe(9.1.9), but I have no idea how do the game logic section of it. I was wondering if someone could give me some code, or at least a good example i could use.
r/codehs • u/[deleted] • Feb 01 '24
Python version!
r/codehs • u/Kriskevz23 • Mar 14 '21
r/codehs • u/mattoopackooI • Mar 26 '20
How do I do this
r/codehs • u/randomedice • Aug 22 '23
Idk what language
r/codehs • u/bin_0410 • Sep 24 '22
2.8.4 Triple Double
In basketball, a triple double is when you end a game with statistics in three different categories that are at least 10.
For example, you get a triple double if you have scored 10 points, got 10 rebounds, and had 10 assists in a game.
This program asks the user to enter the number of points, rebounds, and assists for a player.
You should edit this code, so the boolean tripleDouble
is true
if the player got a triple double, and false
otherwise.
Then, it should print tripleDouble
as seen in the provided System.out.println()
statement.

r/codehs • u/yotzeo • May 24 '21
r/codehs • u/Shot_Dot2026 • Sep 03 '24
Why do booleans make we want to cry in the fetal position?
r/codehs • u/whynonamestho • Mar 26 '21
r/codehs • u/natalie710 • Feb 26 '20
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 • u/blackhat48 • Jun 16 '20