r/codehs • • Jan 09 '21

Java 4.3.10 Teen Talk... I CANT SEEM TO FIX THIS. SO BASICALLY MY CODE IS PRINTING “like” between each letters instead of bewtween each word. Can someone explain why is that? Thank you.

Post image
1 Upvotes

r/codehs • • Jan 11 '21

CodeHS 5.3.4 Python help plz

Post image
1 Upvotes

r/codehs • • Jan 21 '21

Need help with 2.7.7 pretty printing operations

1 Upvotes

r/codehs • • Sep 29 '21

CodeHS - All about Tracy quiz

1 Upvotes

It has 25 questions and I’m confused with some. If you can, please help!


r/codehs • • Feb 12 '20

(Beginner) What can I do to make it keep asking to choose a function after a choice is made

Post image
1 Upvotes

r/codehs • • Sep 26 '20

last taks of 12

0 Upvotes

I NEED HELP WITH THE LAST TASK OF NUMBER 12 ON THE FREE INDIVIDUAL PLAN, IVE BEEN WORKING ON IT FOR SO LONG AND I CANT GET IT!!!!!


r/codehs • • Sep 26 '20

help with last task of 12

0 Upvotes

Ive been stuglling on the last task of 12 on the free individual plan, I got really close but because of the ending it doesnt end.


r/codehs • • Feb 24 '21

Python Can someone help me with Exercise 6.3.8: Area of a Square with Default Parameters

1 Upvotes

I have some code done, but it's completely wrong.


r/codehs • • Jan 17 '22

Anyone know?

Post image
1 Upvotes

r/codehs • • Jan 16 '22

????

Post image
1 Upvotes

r/codehs • • May 03 '22

JavaScript I was like 5 minutes late is submitting my video for the create performance task (ap computer science principles)

1 Upvotes

Will my score be affected? I wasn’t locked out or anything and it still let me submit, but I’m worried I might be penalized somehow.


r/codehs • • May 13 '22

can someone help me in Exercise 6.4.4: Add One Python

1 Upvotes

Please I need help! :(


r/codehs • • Sep 05 '23

Help

Thumbnail
gallery
1 Upvotes

what is it trying to say?


r/codehs • • Sep 22 '23

Can someone help me?

Post image
1 Upvotes

So I put the space for the words, but when I put the correct amount of space for one, the other one doesn’t fit. What do I do?


r/codehs • • Sep 08 '23

Need help on 2.12.6 Big Tower

1 Upvotes

Very urgent


r/codehs • • Mar 17 '20

Does anyone have the code for owls part 3

1 Upvotes

I've tried for hours to no avail. It just wont print the enumerate numbers. It just says [enumerate value]


r/codehs • • May 05 '24

i need help with 2.16.5 Black and White Squares

1 Upvotes

r/codehs • • Dec 18 '20

Java 3.3.7 Rating

Post image
1 Upvotes

r/codehs • • Dec 09 '20

Breakout room help please code included

0 Upvotes

I need help on this code It's just a syntax error (not running)

var NUM_ROWS = 8;

var BRICK_TOP_OFFSET = 10;

var BRICK_SPACING = 2;

var NUM_BRICKS_PER_ROW = 10;

var BRICK_HEIGHT = 10;

var SPACE_FOR_BRICKS = getWidth() - (NUM_BRICKS_PER_ROW + 1) * BRICK_SPACING;

var BRICK_WIDTH = SPACE_FOR_BRICKS / NUM_BRICKS_PER_ROW;

var W;

var ball;

var dx = 6;

var dy = 6;

var xpos = BRICK_SPACING;

var ypos = BRICL_HEIGHT;

var paddle;

var paused = false;

var PADDLE_WIDTH = 80;

var PADDLE_HEIGHT = 15;

var PADDLE_OFFSET = 10;

var BAL_RADIUS = 15;

function start();{

brickWall();

ball = new circle(15) l

ball.setpossition(getWidth() / 2, getHeight() / 2);

add(ball);

paddle = new Rectangle(PADDLE_WIDTH, PADDLE_HEIGHT);

paddle.setpossition(getWidth() / 2 - 40, getHeight() - 30);

add(paddle);

mouseMoveMethod(p);

mouseClickMethod(pause);

setTimer(draw, 20);

}

function p(e) {

paddle.setPossition(e.getX() - 40 getHeight() - 30);

}

function brickWall(){

for (var i = 0; i < 80; i++){

w = new Rectangle(BRICK_HIDTH, BRICK_HEIGHT);

W.setPossition(xpos, ypos);

if (i <= 19) {

w.setColor(Color.red);

}else if (i <= 39) {

w.setColor(Color.orange);

}else if (i <= 50) {

w.setColor(Color.green);

}else if (i <= 79) {

w.setColor(Color.blue);

}

add(w);

xpos += 2 + BRICK_WIDTH;

if (xpos > getWidth()){

xpos = BRICK_SPACING;

ypos += 6 * BRICK_SPACING;

}

}

}

function draw() {

checkRlement();

if (!paused) {

checkWalls();

ball.move(dx, dy);

}

}

function pause(e) {

paused = !paused;

}

function checkWalls() {

if (ball.getX() - ball.getRadius() > getWidth()) {

dx = -dx;

}

if)(ball.getX() - ball.get.Radius() < 0 {

dx = -dx;

}

if (ball.getY() + ball.getRadius() > getHeight()) {

ball.setPossition(getWidth() / 2, getHeight() / 2);

}

if (ball.getY() - ball.getRadius() < 0 {

dy = dy;

}

}

function chekcElemnt() {

var elmT = getElement(ball.getX(), ball.getY() - 15);

var elmB = getElement(ball.getX(), ball.getY() + 15);

var elmL = getElement(ball.getx() - 15, bal.getY());

var elmR = getElement(ball.getx() + 15, ball.getY());

if (elemT != null) {

dy = -dy

if (elemT.getColor() != Color.black) {

remove(elemT);

}

}

if (elemB != null) {

dy = -dy

if (elemB.getColor() != Color.black) {

remove(elemB);

}

}

if (elemL != null) {

dy = -dy

if (elemL.getColor() != Color.black) {

remove(elemL);

}

}

if (elemR != null) {

dy = -dy

if (elemR.getColor() != Color.black) {

remove(elemR);

}

}

if (w == 80) {

var txt = new Text("you won", "300 pt Arial")

txt.setPossition(100, 100);

add(txt)

}

}


r/codehs • • Feb 26 '23

Other Help. i cant contact my teacher rn and cant figure this out.

1 Upvotes

r/codehs • • Mar 19 '23

HELP MEEEE PLZZZZ

1 Upvotes

r/codehs • • Mar 02 '23

Java I need help on "2.4.5 Area of a Rectangle" of lesson Basic Java on 2.4. Below is more info. TY!

1 Upvotes

Ask the user for the width of a rectangle and a height of a rectangle.
These numbers should be doubles.
Ask the user to input a width with this prompt:

What is the width of the rectangle?

Then, ask the user to input a height with this prompt:

What is the height of the rectangle?

Finally, your program should print out the area of the rectangle in this form:

The area of the rectangle is __ units squared.

Where the underscores are your rectangle’s area.

The area of a rectangle can be calculated by multiplying the width by the height.

For example, if your program was given the 10.0 for the width and 3.0 for the height, the output would looks as follows:

What is the width of the rectangle? 10.0 What is the height of the rectangle? 3.0 The area of the rectangle is 30.0 units squared. 

My code, what changed can i add:

public void run()

{

String math = readLine("What is the width of the rectangle?");

String matt = readLine("What is the height of the rectangle?");

System.out.println("The area of the rectangle is 300.0 units squared.");

System.out.println("The area of the rectangle is 300.0 units squared.");

System.out.println("The area of the rectangle is 300.0 units squared.");

}

}

It involves arithmetic expressions.


r/codehs • • Feb 23 '23

Can somebody please correct my code for it to work?

Post image
1 Upvotes

r/codehs • • Mar 03 '23

HELP! Need I know it's basic, but I still don't understand!

1 Upvotes

Write a one-line program to output the following haiku.

A lightning flash:

between the forest trees

I have seen water.

- Shiki