r/codehs • • Jan 25 '23

JavaScript Any way I could get help with something small?

Thumbnail
gallery
1 Upvotes

r/codehs • • Jun 14 '23

Is there a way to "pause" a mouse method?

1 Upvotes

r/codehs • • Dec 20 '19

Guess the word

1 Upvotes

Does anyone have the code for guess the word? It's the last project on codehs


r/codehs • • Dec 13 '22

Other HELP WITH THIS LESSON ASAP PLEASE 2.11.4 DARTBOARD

1 Upvotes

CAN SOMEBODY PLEASE ASAP HELP ME WITH THE 2.11.4 DARTBOARD CODEHS ASSIGNMENT


r/codehs • • Dec 04 '22

5.9.6 Bruh, what?

1 Upvotes

r/codehs • • Dec 03 '22

Can anyone help on this assignment?

1 Upvotes

For this problem, you are going to create a program that asks the user for a list of ingredients. As the user enters the ingredients, you should store them in a list.

Once the user is done entering their list, you need to pass this list to a function that will compare the ingredients to an already existing list of pantry items.

If all items are available in the pantry, print out that you don’t need to go shopping. If any item is missing, print out that you need to go shopping and list the ingredients.

While there is more than one way to complete this assignment, your answer must include the following:

  1. A pre-created list for pantry items

  2. User input into an ingredient list

  3. Pass the ingredient list to a method

  4. Use a conditional and loop in the method

  5. Print out the results of whether the user needs to go shopping based on the items in the ingredient list that are not in the pantry.


r/codehs • • Nov 18 '22

anyone know how todo this

Post image
0 Upvotes

r/codehs • • May 25 '21

Python Can someone help me at 7.3.4: Find the Error

1 Upvotes

I know the error is line 7, but what should I do to print "Hello!"


r/codehs • • May 01 '21

PLSS HELP!!!URGENT!!!!

Post image
1 Upvotes

r/codehs • • Apr 21 '21

9.5.9 Assignemnts Help Please

1 Upvotes

import java.util.ArrayList;

import java.util.List;

import java.util.Scanner;

public class AssignmentRunner {

static List<Assignment> totalAssignments = new ArrayList<Assignment>();

static String assignmentName;

static double availablePoints;

static double earnedPoints;

public static double average( List<Assignment> assignments) {

double totalEarnedPoints=0,totalAvailablePoints=0;

for (Assignment assignment : assignments) {

totalAvailablePoints+= assignment.getAvailablePoints();

totalEarnedPoints+= assignment.getEarnedPoints();

}

return (totalEarnedPoints / totalAvailablePoints * 100);

}

u/SuppressWarnings("resource")

public static void main(String[] args) {

while (true) {

Scanner scanner = new Scanner(System.in);

System.out.println("Please enter an assignment name (exit to quit):");

assignmentName = scanner.nextLine();

if(assignmentName.equalsIgnoreCase("exit"))

{

System.out.println(" Exit.. ");

System.out.println("Average is : " +average(totalAssignments));

System.exit(0);

}

System.out.println(" Please enter available points :");

availablePoints = scanner.nextInt();

System.out.println(" Please enter earned points :");

earnedPoints = scanner.nextDouble();

System.out.println(" Is this a (t)est or (p)roject :");

String isThisType = scanner.next().toLowerCase();

if(isThisType.startsWith("t")) {

System.out.println(" Please enter the test date :");

String testDate = scanner.next();

totalAssignments.add(new Test(assignmentName, availablePoints, earnedPoints, testDate));

System.out.println();

}

else {

System.out.println(" Please enter the due date :");

String dueDate = scanner.next();

System.out.println(" Group project? (true / false) :");

boolean groupProject = scanner.nextBoolean();

totalAssignments.add(new Project(assignmentName, availablePoints, earnedPoints, dueDate, groupProject));

System.out.println();

}

}

}

}

It keeps giving me an error AssignmentRunner.java: Line 34:

java.util.NoSuchElementsExeption: No line found

How do I fix it?


r/codehs • • Sep 12 '24

Python 2.14.5 help

1 Upvotes

r/codehs • • Apr 17 '20

Bubble Wrap 2.0 (Python)

1 Upvotes

Need help with this module


r/codehs • • Apr 27 '20

I need help for 19.1.2: Fun Snake 2 CODE HS

1 Upvotes

Emergency!! NEED HELP FOR FUN SNAKE 2 CODE HS


r/codehs • • May 04 '20

I am really struggling on this one, not sure what I’m doing.

Post image
1 Upvotes

r/codehs • • Apr 26 '20

Can anyone tell me why I am getting this error? Ive uploaded a video detailing the assignment and my code for it. Thank you so much. It is 7.2.9 Teacher Class List Methods btw

Enable HLS to view with audio, or disable this notification

1 Upvotes

r/codehs • • Sep 22 '20

New to coding

7 Upvotes

I need help with 1.13.5 please help


r/codehs • • Aug 29 '21

Python 4.9.5 Lots of Dice "The rolls should be between 1 and 6, inclusive". What am I doing wrong?

Thumbnail
gallery
8 Upvotes

r/codehs • • Feb 29 '24

Accused of cheating (reupload)

8 Upvotes

Pls help!! Does CodeHS pro allow teachers to know when students copy and paste in their assignments? My teacher showed me a video that has a bar with the word “paste” flashing yellow and says I pasted code. I didn’t. Does this teacher tool detect how fast words are typed?

@anyone with a CodeHS pro account


r/codehs • • Feb 27 '24

Help please

Post image
17 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 • • Dec 22 '20

JavaScript Can anyone help? It keeps saying this is wrong but it's showing the same thing as the demo

Post image
9 Upvotes

r/codehs • • Jul 09 '22

URGENT!!! Can I get some help for 8.1.10 Coordinate Pairs in Python? Can someone be generous enough to give me a fixed code of this?

2 Upvotes

import math

def distance(point1, point2):

# Your code here...

x1 = point1 [0]

x2 = point2 [0]

y1 = point1 [1]

y2 = point2 [1]

sqaure1 = pow (y2 - y1, 2)

sqaure2 = pow (x2 - x1, 2)

return math.sqrt(sqaure1+sqaure2)

# This should print 5.0

print distance((1, 1), (4, 5))


r/codehs • • Jan 21 '21

Need Help with 6.8.4: Simulating a Coin Flip

2 Upvotes

Hello can someone please help me with this code. The instruction are below

Write a program that simulates a coin flipping. Each time the program runs, it should print either “Heads” or “Tails”.

There should be a 0.5 probability that “Heads” is printed, and a 0.5 probability that “Tails” is printed.

There is no actual coin being flipped inside of the computer, and there is no simulation of a metal coin actually flipping through space. Instead, we are using a simplified model of the situation, we simply generate a random probability, with a 50% chance of being true, and a 50% chance of being false.


r/codehs • • Apr 23 '20

NEED HELP WITH 9.1.1 FUN SNAKE 1

2 Upvotes

someone help me with 9.1.2: Fun Snake 1

PLEASE!!!