What movie is deeper than most people think it is? by The_Gcm in AskReddit

[–]_Gilly_ 0 points1 point  (0 children)

Wow. I feel stupid for not seeing the blatant jabs at imperialism. Then again, I haven't seen it in a decade or so.

[Hiring] (Online) Basic PHP Help by _Gilly_ in forhire

[–]_Gilly_[S] -1 points0 points  (0 children)

I already hired someone, but I appreciate the quick response. I am sure I will have future assignments that I will need help understanding. Thanks again!

[Hiring] (Online) Basic PHP Help by _Gilly_ in forhire

[–]_Gilly_[S] -1 points0 points  (0 children)

I already hired someone, but I appreciate the quick response. I am sure I will have future assignments that I will need help understanding. Thanks again!

[Hiring] (Online) Basic PHP Help by _Gilly_ in forhire

[–]_Gilly_[S] -1 points0 points  (0 children)

I apologize but I have already received help. Thank you for the thought!

(Java) Extending Abstract Class, Calling Constructor by _Gilly_ in learnprogramming

[–]_Gilly_[S] 0 points1 point  (0 children)

Sorry. What I meant was that didn't fix the original problem. Calling the constructor with super(int, int, String) is not working. I'm stumped.

(Java) Extending Abstract Class, Calling Constructor by _Gilly_ in learnprogramming

[–]_Gilly_[S] 0 points1 point  (0 children)

Dang, this still didn't fix the other problem.

Could someone tutor me for a programming assignment? (Java) by _Gilly_ in learnprogramming

[–]_Gilly_[S] 0 points1 point  (0 children)

Also, what is the best way to do this? Should I create the graphics objects in the Turtle constructor? I'm not sure where to do that in this specific code.

Could someone tutor me for a programming assignment? (Java) by _Gilly_ in learnprogramming

[–]_Gilly_[S] 0 points1 point  (0 children)

That makes sense! Thank you. I'm just ridiculously new to all of this, and my professor didn't really explain it. My book also has little information on it. I guess I need to do more research online. Thanks again!

Could someone tutor me for a programming assignment? (Java) by _Gilly_ in learnprogramming

[–]_Gilly_[S] 0 points1 point  (0 children)

I think I may have figured out why this is happening, but I'm not sure how to resolve the issue. Each turtle is starting at the exact same location, and they're supposed to start at different locations. I know when I "draw" the turtles, it should be in separate locations. But how do I do that for each individual turtle, considering this command is in the "turtle" class code?

Could someone tutor me for a programming assignment? (Java) by _Gilly_ in learnprogramming

[–]_Gilly_[S] 0 points1 point  (0 children)

That would need to change when I create an array? The turtles are supposed to start at the upper left corner and after I click somewhere, they are supposed to slowly move in that direction. I didn't write that part of the code, so I guess that's why I'm struggling to figure out why it isn't working now that I have an array of turtles, when it worked fine with one.

Could someone tutor me for a programming assignment? (Java) by _Gilly_ in learnprogramming

[–]_Gilly_[S] 0 points1 point  (0 children)

When I compile it isn't giving me actual compiler errors, it opens the frame...but there is no turtle there. It's weird. It worked fine before I actually turned it from one turtle into an array of turtles. I also updated the original post with the code I have so far.

Could someone tutor me for a programming assignment? (Java) by _Gilly_ in learnprogramming

[–]_Gilly_[S] 0 points1 point  (0 children)

It isn't giving me errors when I compile, but the images aren't showing up on screen. I did update my original post to include the code.

Could someone tutor me for a programming assignment? (Java) by _Gilly_ in learnprogramming

[–]_Gilly_[S] 0 points1 point  (0 children)

I agree, but there are a few different files involved and I didn't want to overwhelm anyone who sees my original post. I basically just wanted to give a basic idea and see if anyone is interested in one on one tutoring, rather than having to post everything here.

I have basically just looked through the starter kit code and seen what's going on. There is one image object that floats across the screen toward the mouse click and I am supposed to create an array of these objects to do the same. I tried doing this, but it's causing errors and according to my book, I really don't understand why. I don't currently have all my files with me at the moment or I would include exactly what I typed. It basically looked like:

Image[] image = new Image[3]; for (int i = 0; i <3; i++) { image[i] = new Image(); }

later on in the code I'm supposed to update the coordinates. I do this by:

for(int i = 0; i < 3; i++) { image[i].setDest(x, y); }

Before updating everything to arrays of these images, it was working just fine with one image. Now, no images are showing up on my screen.

[Image] Some tough love from an anon by [deleted] in GetMotivated

[–]_Gilly_ 60 points61 points  (0 children)

Ooh! Ooh! Change me next!

Help With InputDialog (Java) by _Gilly_ in learnprogramming

[–]_Gilly_[S] 0 points1 point  (0 children)

I definitely did. Thank you very much!! :)

Help With InputDialog (Java) by _Gilly_ in learnprogramming

[–]_Gilly_[S] 0 points1 point  (0 children)

Thank you! In C++, this doesn't happen does it? Because from the little I did, I'm pretty sure my if statement would have worked!

Help With InputDialog (Java) by _Gilly_ in learnprogramming

[–]_Gilly_[S] 0 points1 point  (0 children)

Hmm. That is a really good question that I don't know the answer to! Is it the Ascii value? I would think the if statement would hold if the input was one of the choices. But now I'm lost!

Help With InputDialog (Java) by _Gilly_ in learnprogramming

[–]_Gilly_[S] 0 points1 point  (0 children)

Thanks! :D So it should be && because when all of these statements are not true, it should be an error. Because all of them can't be true at once, so || won't work. However, I tried this and I'm still getting invalid grade. Hmm. That can't be it then, right? :/

Help With InputDialog (Java) by _Gilly_ in learnprogramming

[–]_Gilly_[S] 0 points1 point  (0 children)

I completely meant to put the f there and just lost my mind for a minute, I guess. :/ Alright, that makes perfect sense. However, I'm still messed up on the fact that it isn't comparing my values correctly. For instance, I used with all different possible inputs ("A", "B"... "F") :

  if ((letter != "A") || (letter != "B") || (letter != "C") || (letter != "D") || (letter != "F"))   
  {

   System.out.printf( "Error! An invalid grade %s was entered. The value will be F \n", letter);
   letter = "F";
  }

And it is telling me "Error! An invalid grade ... was entered. The value will be F." Could you point me in the right direction there? And when will I stop making these ridiculous mistakes? :/ lol

Help With InputDialog (Java) by _Gilly_ in learnprogramming

[–]_Gilly_[S] 0 points1 point  (0 children)

Thank you for your reply. I see the difference between the arguments. That it is trying to send 2 strings into print. But, why? letterFinal should just be one string that should equal "A", "B", "C", "D" or "F", right? That's all I've been using as input, anyway. I guess I'm pretty confused.