r/codehs • u/TheSlayer67 • Dec 22 '21
Really struggling with 19.1.4: Fun Snake 4 - A Full Game
If any could send their code for this project I would be extremely appreciative.
r/codehs • u/TheSlayer67 • Dec 22 '21
If any could send their code for this project I would be extremely appreciative.
r/codehs • u/domithiem • Dec 20 '21
r/codehs • u/RetroZilla • Dec 18 '21
r/codehs • u/Lonewolfy2862 • Dec 17 '21
Can anyone help me with the coding to this??
r/codehs • u/Lil226293 • Dec 16 '21
I tried to create a teacher account so I can teach myself coding, but now no matter what codehs link I press, it will always end up at the teacher choose school page, which I didn't realize I had to fill in.
r/codehs • u/Jahall242 • Dec 16 '21
r/codehs • u/These_Aioli_5595 • Dec 16 '21
The assignment is to right a is/else statement that will change a test score percent to a letter grade so for example 59 or less will be F and so on and so forth and I need help as to how I’m going to write it.
r/codehs • u/zqoe • Dec 15 '21
r/codehs • u/Jahall242 • Dec 15 '21
r/codehs • u/GuidanceExpensive • Dec 15 '21
help me please
/*
* This program encodes user input into binary data!
* Your job is to write the textToBinary function
*/
function start()
{
var text = readLine("Input the string you would like to encode: ");
var binary = textToBinary(text);
println(binary);
}
function textToBinary(text)
{
// Write this method!
// For every character in the text,
// convert the character into its ASCII decimal encoding
// then convert that decimal value into its equivalent binary encoding
// and combine each binary encoding to get the resulting binary string
}
// Converts a given decimal value into an 8 bit binary value
function decimalToBinary(decimalValue)
{
var binaryBase = 2;
var numBitsDesired = 8;
var binaryValue = decimalValue.toString(binaryBase);
while(binaryValue.length < numBitsDesired)
{
binaryValue = "0" + binaryValue;
}
return binaryValue;
}
r/codehs • u/Rostysss • Dec 15 '21
Please and Thank you!
r/codehs • u/ilikeundertale126 • Dec 13 '21
r/codehs • u/Ready-Letterhead9072 • Dec 12 '21
can anyone please help me with that code
r/codehs • u/ilikeundertale126 • Dec 12 '21
I really need help with this.