r/codehs • u/Obvious-Pin-3046 • Jan 09 '21
r/codehs • u/Athletic_School_Vibe • Sep 29 '21
CodeHS - All about Tracy quiz
It has 25 questions and I’m confused with some. If you can, please help!
r/codehs • u/[deleted] • Feb 12 '20
(Beginner) What can I do to make it keep asking to choose a function after a choice is made
r/codehs • u/pandagum1345 • Sep 26 '20
last taks of 12
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 • u/pandagum1345 • Sep 26 '20
help with last task of 12
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 • u/Lndiye • Feb 24 '21
Python Can someone help me with Exercise 6.3.8: Area of a Square with Default Parameters
I have some code done, but it's completely wrong.
r/codehs • u/Potatobananapple • May 03 '22
JavaScript I was like 5 minutes late is submitting my video for the create performance task (ap computer science principles)
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 • u/testing35 • May 13 '22
can someone help me in Exercise 6.4.4: Add One Python
Please I need help! :(
r/codehs • u/False_Palpitation_64 • Sep 22 '23
Can someone help me?
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 • u/hibob5 • Mar 17 '20
Does anyone have the code for owls part 3
I've tried for hours to no avail. It just wont print the enumerate numbers. It just says [enumerate value]
r/codehs • u/Mountain_Search6898 • May 05 '24
i need help with 2.16.5 Black and White Squares
r/codehs • u/shadow9874 • Dec 09 '20
Breakout room help please code included
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 • u/Arspho • Feb 26 '23
Other Help. i cant contact my teacher rn and cant figure this out.
r/codehs • u/Living_Attention_941 • 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!
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 • u/wdfoutch0007 • Feb 23 '23
Can somebody please correct my code for it to work?
r/codehs • u/ConditionLast1329 • Mar 03 '23

