Skip to content
Sign UpLog In
Profile icon

Lori Ingham

@OtakuMom
Married. Mom of one, stepmom of two. Working towards Associates in Software Development.
Repls
Community
OtakuMom
OtakuMom
shared a Post
3 years ago
Onto the next phase of this project....
Okay, so I tried looking up this answer online, but the only things I could find were if the answer was already put into the code, not if you were add
NHTIPeople
Java
OtakuMom
OtakuMom
shared a Post
3 years ago
I've been working on this for about two weeks, but I don't know why I'm getting this error. Here is the code: https://repl.it/@OtakuMom/NHTIPeople F
NHTIPeople
Java
Jennyr562
Jennyr562
Task 1. Modify the function count_down() def count_down(second): out = None if second = 0 out = "0\nIgnition\nLift off" elif seconds = 5 out str(second) + 'Dragon has cleared the tower' elif seond > 0 and second = 10: out str(second * -1) return out Special Decision to Determine if this code should run if name == "main": Task 2. Take input for seconds variable seconds = int(input()) Convert Positive Seconds to Negative Seconds at Start if seconds > 0: seconds = sec2 years ago
SixBeeps
SixBeeps
Let's look at the function in question: public int consoleUserInterface() { Scanner input = new Scanner(System.in); int answer = input.nextInt(); input.close(); if (answer == 1) { s.people(); } else { return answer; } } If we just look at the if statement, if the answer is not 1, then it returns answer. But, if it is 1, then it calls s.people() without ever returning anything. Try putting a return statement directly after the conditional and see if that works3 years ago
OtakuMom
OtakuMom
shared a Post
3 years ago
I think I might be a little confused on how to do constructors when it comes to using arrays. I'm getting all kinds of errors in the Student object t
NHTIPeople
Java
theangryepicbanana
theangryepicbanana
You can't run code inside a class. You need to run code inside methods in the class3 years ago
OtakuMom
OtakuMom
shared a Post
3 years ago
https://repl.it/@OtakuMom/CrapsGame Okay, so I've been getting an error on the last return in the Craps object, and I'm not sure what I'm supposed to
CrapsGame
Java
OtakuMom
OtakuMom
I'm still getting errors with the fix. :-( Appreciate your help, though.3 years ago
SagaciousPan
SagaciousPan
I don't know Java but, what seemed to fix the error form showing was changing: #46 } #47 }System.exit(0); #48 #49 } return sum(); #50 To: #46 } #47 }return "" + sum; #48 #49 } #50 The first thing is that the return is in the wrong place. The next problem is that sum is a integer not an string or a function BUT the code expects you to return a string: return sum(); => tries to return a non-existent function Gives Error return sum; => tries to return it as an integer Gives Error3 years ago
OtakuMom
OtakuMom
shared a Post
3 years ago
Here is the code: https://repl.it/@OtakuMom/GuessingGame This was originally about an error message that I was getting, but now it's about the game n
GuessingGame
Java
OtakuMom
OtakuMom
shared a Post
4 years ago
https://repl.it/@OtakuMom/IST113-19S-LI-Final Okay, so I'm working on my final for my Web Programming class, and this has me kind of stumped. The mes
rediar
rediar
Yes as the angry epic banana said, in “player 1” 1 becomes an unexpected integer.4 years ago
OtakuMom
OtakuMom
After seeing the comments, I now know not to try to code late at night. Oops. But now I'm having another issue, which is getting it to show up on the page. I don't know if I need to do anything different or if I just need to assign to code to particular objects in order to get it to work. I want to get it to work so that when you click on a picture you've made your choice. I'm trying to adapt this from the same game that I wrote in C# that I've been altering for the past semester in order t4 years ago
JackFly26
JackFly26
Having spaces in variable names isn't allowed. Most programmers will either use player1 or player_1. Use whatever looks best to you!4 years ago
OtakuMom
OtakuMom
shared a Post
4 years ago
I'm studying for an exam that I have Monday night for my Programming Fundamentals class, and as part of my studying tactic so that I knew what I was d
OtakuMom
OtakuMom
I’ll have to try again in the morning, but the error I was getting was that when I put in 5 (Spock) for Player 1, it would automatically say “Player 1 wins!” and move on to the prompt without player 2 putting in a prompt.4 years ago
ArchieMaclean
ArchieMaclean
I don't seem to be getting this problem...Could you try rephrasing the error? I think that some of the cases are mixed up though from lines 147--158 (according to here: https://wrpsa.com/rock-paper-scissors-lizard-spock/) they should be changed to case 1: case 3: Console.WriteLine("Player 1 Wins!"); Console.Write("Player one, make your choice, or -1 to end: "); play4 years ago
OtakuMom
OtakuMom
shared a Post
4 years ago
This semester I'm taking a class on web programming, and our midterm is to create a static page using HTML and CSS. He hasn't given us the guidelines
OtakuMom
OtakuMom
Very helpful! I'm always amazed at how the tiniest of things can screw everything up. Thanks again!4 years ago
ArchieMaclean
ArchieMaclean
You forgot to close the " " on line 56! It should be ``. Happens to the best of us. Please upvote if you found this helpful :) 4 years ago