• Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaced Greenhorn  RSS feed

 
Rodge Paroissiaux
Greenhorn
Posts: 29
Firefox Browser Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good morning. Last August I began the process of learning Java on my own. Unfortunately, since the gov't shutdown and the latest reduction in force, I have been removed from my military family by my leaders (their infinite wisdom is not appreciated). So now I am a full-time student, stay at home dad, and when possible, PC/WiiU gamer. With the classes, comes Intro to Computer Programming. I have learned a lot in the six weeks I have been in the course, but alas, I am in need of help on the Java side as my next lesson is in the Java IDE. The problem is, it is far too complicated as I have not been taught the IDE. At all. Heck, I haven't even been taught Java. This is a, "Go home, work it out" assignment and I need help. The problem relies on Arrays (which he introduced by death by powerpoint, but not once "showed" us how to utilize in coding for any language). So where do I start?

I am more than willing to do the coding solo, but I need some advice. Please point me in the right direction as to where to start, and where to go from there. I in no way want anyone to do the work, but I do need a nudge in how to do this. Here is the assignment, and please, do not do the work for me, I really want to learn this on my own, I just need help in 'How':

- Set a loop for user to input 100 grades
- Set an array to hold those grades
- Set a method to 'stop' the input for less than 100 (using Neg 1 (-1))
- Average the grades after user input (no more than 100)
- Output the number of grades above the average
- Output the number of grades below the average
- FIN.

Are you kidding me? Not only did you not teach me about an array properly, but you want me to program in an IDE you haven't even taught me in a language I have only tinkered with over six months ago? Wow!

I am currently in my "murach's java programming 4th edition" learning more about arrays and how to use the Java essentials I learned months ago to start this. Truth is, I am lost. Truly lost. Where do I start? How do I plan this out? I tried writing some pseudocode, but even that is limited as I don't know where to go for using an array. Heck, I can't even begin main at this point. I will be sitting down over the next few hours before my other class, then wiill check in the morning. I need help. We have been using Raptor (a flowchart programming language) and I have done fine, but then this epic leap in learning has displaced me. UGH! How do I start this? How do I go from assigning in Raptor to assigning methods and such in Java using Netbeans?

Edit/p.s. The new look is AWESOME!!!
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Likes 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So counter question: how come you have to do the work in Netbeans? Will the teacher know if you did it in a plain old text editor and compiled by hand?

The reason I ask is because you are spot on: you have to learn the Java language, which isn't easy. Trying to learn the IDE up front is just extra work - more things to learn before you learn what you want to learn. IDEs are awesome and powerful tools, and every developer should use one... once they know the basics. It would be my suggestion that you forgo the IDE and just do the assignment in a text editor and compile by hand.

Once you get past working with packages and using the classpath then it is probably okay to start with the IDE.

So the question is, would the teacher know you programmed it in the IDE or not? Would he/she care? If not, then you should ditch the program, and work streight from the book.
 
Tony Docherty
Bartender
Posts: 3271
82
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I totally agree with Steve regarding using or should I say not using and IDE.
As to your coding problem don't be too worried about arrays, they are very simple once you get to grips with them. I suggest you read http://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html
 
Rodge Paroissiaux
Greenhorn
Posts: 29
Firefox Browser Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You know, I don't think so. The main thing he wants is the coding and the pseudocode. What would you recommend for me to start with?

Edit: I have Notepad++ I use. I will see what I can get completed tonight; I am trying to remember how to build main, method and add an array into those to pull from. I apologize, I am not too keen on Java, but after this intro class I can take the Java class. RAWR!!!
 
Campbell Ritchie
Marshal
Posts: 56527
172
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Notepad++ is a very good program for writing code. Set up some options: automatic indentation, automatic conversion tab→4 spaces, bracket highlighting, syntax colouring, etc., and it will become even more useful.
 
Rodge Paroissiaux
Greenhorn
Posts: 29
Firefox Browser Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Notepad++ is a very good program for writing code. Set up some options: automatic indentation, automatic conversion tab→4 spaces, bracket highlighting, syntax colouring, etc., and it will become even more useful.


I setup the options to Tab=4, but could not find auto conversion or syntax or bracket coloring (I get colors for those by default I believe)... If I need to make further changes please let me know. As for my assignment, I am on the road today for unforseen circumstances and will not get to my project until tomorrow. I hate waiting, I want this over with. A dang shame tomorrow is so far away. UGH!

Thanks for all of your help and advice. I will get some coding in the next 48 hours once I get some studying time with my books. God bless!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!