Jump to content

Homework Help

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
12 replies to this topic

#1
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
I hate college...it goes too fast. I decided to study for a world history rather than go to my computer science class and now im lost..my HW asignment is here (http://www.cse.buffa...ab6/index.shtml) if you want to take a look, but ill describe everything ive done so far...

The first thing is

Quote

You must also define the Applet so that it uses a Lab6System.
which is done like this
package lab6;

public class Applet extends containers.Lab5Applet {

	public Applet() {
		new Lab6System();
	}

}
The next part is based on a UML diagram (which you will have to look at). I believe what i have to do is create a new class called CompositeShape and put this code in there

package lab6;

public class CompositeShape implements lab5lib.IMovingShape {
	private lab5lib.IMovingShape _shape1;
	private lab5lib.IMovingShape _shape2;
	
	public CompositeShape(lab5lib.IMovingShape shape1, lab5lib.IMovingShape shape2){
	}

	public void setColor(cse115.graphics.colors.Color black){	
	}
	
	public void slowDown(){
	}
	
	public void speedUp(){
	}
}

as far as i know that is correct but now i have no idea how to do step two

Quote

Step 2

Now build a CompositeShape consisting of three IMovingShapes (include one lab5lib.Oval, one lab5lib.Triangle and one lab5lib.Rectangle). Note that to do this you need only instantiate classes that already exist - you must not define any new classes.

Hook this CompositeShape up appropriately to the buttons. Test your implementation of the composite by checking that the buttons affect all the shapes of the composite.

So if someone could give me a hand (asap) i would greatley appreciate it.

and ps i would much rather someone explain what it means and how to me how to do it, rather than do it for me

Thank you

#2
Jimbo

Jimbo

    Programmer

  • Members
  • PipPipPipPip
  • 121 posts
I hated homework same as anyone else so to do someone elses for them would be crazy! Surely the point of homework is so you work out how to do this yourself?

#3
Ronin

Ronin

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 309 posts
Sounds complex! Got any code for it so far? I don't know Java so well or I would help but doing step 2 from pure know-how is beyond me.

#4
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts

Jimbo said:

I hated homework same as anyone else so to do someone elses for them would be crazy! Surely the point of homework is so you work out how to do this yourself?

Perhaps you didnt read the first line, nor the last two, so let me quote myself.

Quote

I hate college...it goes too fast. I decided to study for a world history rather than go to my computer science class and now im lost..

Quote

So if someone could give me a hand (asap) i would greatley appreciate it.

and ps i would much rather someone explain what it means and how to me how to do it, rather than do it for me

Just in case you don't understand that that means: I would do my homework if I could, however as I failed to attend class, I failed to gain the knowledge needed. Moreover, I never asked someone to do my homework for me, rather help me. I find it much more beneficial if someone could help me rather than me googling some code and past it into my homework having no idea what it means.

#5
Jimbo

Jimbo

    Programmer

  • Members
  • PipPipPipPip
  • 121 posts

Sidewinder said:

Perhaps you didnt read the first line, nor the last two, so let me quote myself.

Just in case you don't understand that that means: I would do my homework if I could, however as I failed to attend class, I failed to gain the knowledge needed. Moreover, I never asked someone to do my homework for me, rather help me. I find it much more beneficial if someone could help me rather than me googling some code and past it into my homework having no idea what it means.

I understand English perfectly thanks, i've been in a similar situation and from personal experience found it much more beneficial finding things out for myself so was just throwing my 2p's worth in.

If you get help here, great, however could you not ask a tutor for help? Thats what there paid for, particularly as you needed it ASAP, coming to a bulletin board where you may not get a response straightaway, if at all, may not be the best solution.

#6
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
yeah I agree with Jimbo posting ur Hw here or in any othr forum may not get you help so google it ur self find the code and if you dont understand it perhaps then post it here in someone will explain it for ya! but at least ur Hw will be done!

#7
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
My apologizes for thinking I could get one descent response from a Java programmer who browses these forums within nine days. However I was mistaken. Was it because I said it was homework? Either way I’ve found another forum which has helped me understand my issues. This thread can now be locked as my homework was due Friday and was handed in.

Once again, I apologize for wasting your time reading my post, now I need to find a way to make up for my wasted keystrokes posting that.

I now know I can no longer depend on these forums for questions I have.

Thank you

#8
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
I agree with Sidewinder here. He wasn't asking people to do his homework for him but was asking for help. I don't think he deserved all of flaming since he is (or was) a active member of the forum.

#9
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts

Lop said:

I agree with Sidewinder here. He wasn't asking people to do his homework for him but was asking for help. I don't think he deserved all of flaming since he is (or was) a active member of the forum.

I still am, these forums are too great to leave :p

#10
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Thank you for staying Sidewinder. This was a perfectly fine question.

#11
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
No no! wait wait! Im not saying that posting a question here is something bad! well then whats a forum for? all I said was that posting something that you need ASAP posting it in a forum may lead you to no help! that's all im saying coz as a Homework has a hand-in date you may not get any help from a forum so you are not SURE! lol you can post all your homework here!( I cant tell ya DONT im not an Admin and neither a Mod so for me you can make what you want) the thing is if you will get any help or not!

BTW I was not flaming him sorry if you took that as an offence or so! I like members here coz without them this forum will lead to failure.. so I never flame members! I took/take part in many communities and I NEVER and I say NEVER flamed some member. So if you were offended in any way I would like yo to forgive me! SORRY

EDIT: and plz dont leave this forum! im sorry!

#12
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
Its all good :)