d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Need A Java Tutor
12Next
Add Reply New Topic New Poll
Member
Posts: 27,825
Joined: Apr 1 2006
Gold: 445.00
Mar 31 2013 09:22pm
I know this isn't the homework help hotline board but I figured this would be easier to get some one.

I am willing to pay fg (Will get some when we work it out) for a java tutor.

I am taking a Programming logic class online and the teacher is a moron (pretty sure he copies and pastes out of a book) and the book itself is garbage as well...

I have a tutor on ground but again he is little help he had taught a C+ course like 8 years ago.

basically I need some one to walk me through the basics with the end goal having me be able to do this without any help

2) Create a Java application that satisfies the following requirements below:

• Create a class named Point2D.
• Include variables x and y, and make them private.
• Include public methods to access (get) and modify (set) the values of

x and y.
• Include a displayPoint() method that prints out the current value of the Point
• Create a constructor for the Point2D class that accepts 2 parameters as input and then sets them to x and y respectively.
• In a Main class, create 2 instances of the Point2D class, and print them to the screen. Create a screenshot of the output you generated.

For part 2 of the assignment, only submit the source code files (*.java), and the screenshot you used for the assignment.


I failed this course once and had hoped I would get a new teacher (sadly I did not)


What I want is some one who can over Skype run through the basics and get me past this class.
If this is not aloud please close the thread.

This post was edited by Siamese9 on Mar 31 2013 09:23pm
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Mar 31 2013 10:59pm
I think the people on these boards could do a lot to help you. Even though I feel I could probably teach you most of this, I won't because certain members of the D2JSP programming illuminati follow me around and don't let me post stuff.

anyways, I am sure someone will post soon....maybe
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Apr 1 2013 02:01am
Quote (Eep @ Apr 1 2013 12:59am)
I think the people on these boards could do a lot to help you. Even though I feel I could probably teach you most of this, I won't because certain members of the D2JSP programming illuminati follow me around and don't let me post stuff.

anyways, I am sure someone will post soon....maybe


because the shit you post is almost always wrong and you hide behind the excuse "i was just stating my thoughts"

@op i would just google this. this is litterally 5 minutes worth of googling.

this is an C# example but it should closely follow the java syntax

Code
class TimePeriod
   {
       private double _seconds;
       public double Seconds
       {
           get { return _seconds; }
           set { _seconds = value; }
       }
   }


This post was edited by AbDuCt on Apr 1 2013 02:03am
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Apr 1 2013 02:18am
Quote (AbDuCt @ Apr 1 2013 03:01am)
because the shit you post is almost always wrong and you hide behind the excuse "i was just stating my thoughts"

@op i would just google this. this is litterally 5 minutes worth of googling.

this is an C# example but it should closely follow the java syntax

Code
class TimePeriod
   {
       private double _seconds;
       public double Seconds
       {
           get { return _seconds; }
           set { _seconds = value; }
       }
   }


see that is your problem, you think this is the solution he was looking for but it is not

l2 details or gtfo imo

Quote
basically I need some one to walk me through the basics with the end goal having me be able to do this without any help



Quote
oh here is some shitty code snippet in c# glhf brah


typical abduct post.

This post was edited by Eep on Apr 1 2013 02:25am
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Apr 1 2013 02:36am
Quote (Eep @ Apr 1 2013 04:18am)
see that is your problem, you think this is the solution he was looking for but it is not

l2 details or gtfo imo

typical abduct post.


he asked how to create a class with a private variable with a public get set method. i also told him to google it and he could do it himself without anyone's help.

dont be mad that you're useless and everything you post is likely to be wrong.

edit:: holy shit i found a java version...

Code
public class Person
{
   // Member.
   private String _name;

   // Get member value.
   public String getName()
   {
      return _name;
   }

   // Set member value to given value.
   public void setName(String name)
   {
      _name = name;
   }
}


does it not look remarkably similar to my c# version i posted? now that's amazing that i also know that the twos syntax are virtually identical.

This post was edited by AbDuCt on Apr 1 2013 02:39am
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Apr 1 2013 02:43am
Quote (AbDuCt @ Apr 1 2013 03:36am)
he asked how to create a class with a private variable with a public get set method. i also told him to google it and he could do it himself without anyone's help.

dont be mad that you're useless and everything you post is likely to be wrong.

edit:: holy shit i found a java version...

Code
public class Person
{
   // Member.
   private String _name;

   // Get member value.
   public String getName()
   {
      return _name;
   }

   // Set member value to given value.
   public void setName(String name)
   {
      _name = name;
   }
}


does it not look remarkably similar to my c# version i posted? now that's amazing that i also know that the twos syntax are virtually identical.


you are just mad that you are 200% wrong and dumb

your cs skills are above average I guess but your reading comp. skills are ass
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Apr 1 2013 03:09am
Quote (Eep @ Apr 1 2013 04:43am)
you are just mad that you are 200% wrong and dumb

your cs skills are above average I guess but your reading comp. skills are ass


where am i wrong lol. i posted the right code for using classes and a public get set method and told him this is easily googled as demonstrated via me finding java code which was identical to my C# code.

please enlighten me where i went wrong, i am sincerely interested. i would also like to know how you gauge my "cs" skills via what i post on this forum lol... i dont even post half the stuff i do here lol. please don't make me start posting code because i highly doubt you will understand what it even does.
Member
Posts: 2,757
Joined: Nov 26 2007
Gold: 1,214.81
Apr 1 2013 07:21am
Code
/* Create a class named Point2D. */
public class Point2D {

 /* Include variables x and y, and make them private. */
 
 private float x, y;

 /*
  * Include public methods to access (get) and modify (set) the values of the
  * Point
  */

 public float getX( ) {
   return x;
 }

 public void setX( float x ) {
   this.x = x;
 }

 public float getY( ) {
   return y;
 }

 public void setY( float y ) {
   this.y = y;
 }

 /*
  * Include a displayPoint() method that prints out the current value of the
  * Point
  */

 public void displayPoint( ) {
   System.out.println( "x: " + x + " y: " + y );
 }

 /*
  * Create a constructor for the Point2D class that accepts 2 parameters as
  * input and then sets them to x and y respectively.
  */

 public Point2D( float x, float y ) {
   super( );
   this.x = x;
   this.y = y;
 }

 public static void main( String[] args ) {

   /*
    * In a Main class, create 2 instances of the Point2D class, and print them
    * to the screen. Create a screenshot of the output you generated.
    */

   Point2D instance1 = new Point2D( 10, 10 );
   Point2D instance2 = new Point2D( 50, 30 );

   instance1.displayPoint( );
   instance2.displayPoint( );
 }

}


This post was edited by labatymo on Apr 1 2013 07:25am
Member
Posts: 4,980
Joined: Jan 16 2010
Gold: 0.00
Warn: 20%
Apr 1 2013 02:40pm
Quote (Eep @ 1 Apr 2013 06:59)
I think the people on these boards could do a lot to help you. Even though I feel I could probably teach you most of this, I won't because certain members of the D2JSP programming illuminati follow me around and don't let me post stuff.

anyways, I am sure someone will post soon....maybe


Why would you even make that post? You're just looking for a fight. That is some serious passive-aggressive bullshit right there.
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Apr 1 2013 03:20pm
Quote (Grandebedte @ Apr 1 2013 03:40pm)
Why would you even make that post? You're just looking for a fight. That is some serious passive-aggressive bullshit right there.


I could say the same for this post. It exists either to

1) pick a fight with me

or

2) nut hug abduct

which is it?

anyways, sorry about the spam OP, but most users in this forum won't take the time to do what you need. I know a few will though so hopefully they post.

Quote (AbDuCt @ Apr 1 2013 04:09am)
where am i wrong lol. i posted the right code for using classes and a public get set method and told him this is easily googled as demonstrated via me finding java code which was identical to my C# code.

please enlighten me where i went wrong, i am sincerely interested. i would also like to know how you gauge my "cs" skills via what i post on this forum lol... i dont even post half the stuff i do here lol. please don't make me start posting code because i highly doubt you will understand what it even does.


Wow. And this whole time I thought you were smart or something. Here, let me explain in terms that you might be able to understand: He wants a TUTOR, he wants to be able to do the assignment ON HIS OWN AKA he understands what a class is, he understands which variables to use in what situations etc etc so that when he SEES the assignment, he can figure out the right way to progress forward WITHOUT having someone do it for him.




This post was edited by Eep on Apr 1 2013 03:27pm
Go Back To Programming & Development Topic List
12Next
Add Reply New Topic New Poll