Results 1 to 7 of 7

Thread: Help!!!!

  1. #1
    enescaV is offline Member
    Join Date
    Jun 2016
    Posts
    2
    Rep Power
    0

    Exclamation Help!!!!

    I am new to programming and CS all together. I am taking Intro to Java this summer. I am barely two days in and I am starting to get the feeling this wasn't a good idea. I have always wanted to learn and I am more than willing to put in the work. I already have a BS in Bio, I am just trying to boost my GPA while fulfilling my own curiosity. Is anyone willing to tutor me and or mentor me a little? I have an assignment due soon and I literally have no idea how to start it. Any help would be much appreciated.

    Thanks!

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: Help!!!!

    We can answer specific questions about Java or help you with problems you encounter when working on your assignments. What have you
    covered in the two days you don't understand?

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    enescaV is offline Member
    Join Date
    Jun 2016
    Posts
    2
    Rep Power
    0

    Default Re: Help!!!!

    Hi Jim!

    ok so here's the assignment

    "In this assignment, we are going to write a program that prints out current time. We know that current time in Pacific Time Zone is 11:59.
    1. Create integer type variable hour and minute to save the current hour and minute values
    2. Print out the following string in one line, using "+" operator to join string and variables
    The current Pacific time is 11:59
    3. Calculate current time in Eastern time Zone, and print it out in another line"

    I am using Eclipse as a compiler.
    I truly don't even know where to start.
    How would I begin? Like how do I know how to commence any program and how you know what to do?

    Thanks,

    Enrique


    Quote Originally Posted by jim829 View Post
    We can answer specific questions about Java or help you with problems you encounter when working on your assignments. What have you
    covered in the two days you don't understand?

    Regards,
    Jim

  4. #4
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: Help!!!!

    Interesting that only two days into the class and you are working with dates and time zones? Is that your
    first program you will be running on Eclipse? I (and others on this forum) will need to know what you have
    covered in class in order to assist you. Have you done a simple "hello world" program?

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  5. #5
    benji2505 is offline Senior Member
    Join Date
    Sep 2014
    Location
    MA, USA
    Posts
    399
    Rep Power
    6

    Default Re: Help!!!!

    I don't think he has to get the system time. I would guess that they have to concatenate 3 strings and sysout them.

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    27

    Default Re: Help!!!!

    Take it a step at a time.

    Have you completed part 1(a) - "Create integer type variable hour and minute"?
    Remember, these are requirements, so get the names of the variables correct (not 'h' and 'm'). That will help you not get confused by what each of the variables is.

    How about part 1(b) - "to save the current hour and minute values"?
    That part is a little open to interpretation, but I would say it's a case of simply assigning 11 to the 'hour' variable and 59 to the 'minute' variable.

    etc etc.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  7. #7
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: Help!!!!

    It appears that I read too much into this assignment. However, do you know how to set up a basic skeletal class (i.e.
    just the class name, and main static entry point? Your variables and print statements would then go inside of main.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •