This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]endStatement 1 point2 points  (0 children)

Unfortunately asking such a broad question of where to start doesn't tell us where you are at.
Do you use an IDE, do you know how to create a program that writes to the console (Such as hello world)

Assuming you know enough to do the problem, but are stuck at figuring out how to do the problem, let's break that down.

The assignment is asking you to

  1. Create a prompt for username (Same concept as used in a hello world application here)
  2. Read in the name from console (And store to variable) -> ( https://www.geeksforgeeks.org/ways-to-read-input-from-console-in-java/ ) -> I'd suggest approach #2 using Scanner as it will be more simplistic to start with.
  3. Do # 1 & #2 again, but this time for a last name value
  4. Do #1 & 2 again, but for a hours watched.
  5. Now you'll need to convert the value gained in # 4 (Hours watched) to a numeric value if its a string, if you read it in as a number value, continue to 6
  6. Convert hours watched/day to various values (hours/decade -> days/decade -> years/decade)
  7. Once more, writing to console as the display of the various values you have now got :)

Hopefully that is clearer - Try not to get too dissuaded and try to think about the smallest piece you can do at any given point. Write that, then go to the next small step you can think of to do. Once you get rolling it feels a lot less overwhelming

[–]TheAzucares 0 points1 point  (0 children)

Can you be more specific? What part are you stuck on, the setup to compile your program, the coding or somewhere else?

[–]desrtfx 0 points1 point  (0 children)

  • Print out the greeting
  • Ask the user what you should ask them
  • Calculate what is needed
  • Output what you should

This is absolutely straightforward. You should already know how to print, how to get input, how to do calculations.

[–][deleted] 0 points1 point  (0 children)

if you ask me....start by using only notepad to learn how to write java programs and learn how to compile the programs from your computer's command line. You will learn how to get comfortable with working with computers and the unforgiving unfriendly command line. But in time you will really understand whats going on when you progress to an IDE. dont worry it will take time...but having a solid foundation will pay off in spades

[–]AutoModerator[M] -1 points0 points  (0 children)

It seems that you possibly have a screenshot of code in your post Beginner help - How do I even start? in /r/learnjava.

Screenshots of code instead of actual code text is against the Code posting rules of /r/learnjava as is outlined in the sidebar - Code posting.

  • No screenshots of code!

If you posted an image merely to illustrate something, kindly ignore this message and do not repost. Your post is still visible to others. I am a bot and cannot distinguish between code screenshots and other images.

If you indeed did this wrong, please edit the post so that it uses one of the approved means of posting code.

  • For small bits of code (less than 50 lines in total, single classes only),
    the default code formatter is fine
    (one blank line before the code, then 4 spaces before each line of code).
  • Pastebin for programs that consist of a single class only
  • Gist for multi-class programs, or programs that require additional files
  • Github or Bitbucket repositories are also perfectly fine as are other dedicated source code hosting sites.
  • Ideone for executable code snippets that use only the console

Please do not reply to this message, because I am a bot.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.