Lost Password?

Go Back   CodeCall Programming Forum > Software Development > Java Help

Unregistered, Check out the Coder Battles in the Announcement and Game forums.

Java Help Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-17-2006, 08:39 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 19
Posts: 3,211
Last Blog:
Passwords
Credits: 842
Rep Power: 20
John has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud of
Send a message via AIM to John
Default Homework Help

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.buffalo.edu/faculty/a...b6/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
Code:
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

Code:
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 10-21-2006, 08:45 AM
Jimbo Jimbo is offline
Programmer
 
Join Date: Jul 2006
Posts: 121
Credits: 0
Rep Power: 9
Jimbo is on a distinguished road
Default

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?
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-21-2006, 09:05 AM
Ronin Ronin is offline
Programming Professional
 
Join Date: Apr 2006
Posts: 299
Credits: 3
Rep Power: 10
Ronin is on a distinguished road
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-21-2006, 12:53 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 19
Posts: 3,211
Last Blog:
Passwords
Credits: 842
Rep Power: 20
John has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud of
Send a message via AIM to John
Default

Quote:
Originally Posted by Jimbo View Post
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-23-2006, 02:39 PM
Jimbo Jimbo is offline
Programmer
 
Join Date: Jul 2006
Posts: 121
Credits: 0
Rep Power: 9
Jimbo is on a distinguished road
Default

Quote:
Originally Posted by Sidewinder View Post
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.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 10-29-2006, 06:00 AM
TcM's Avatar   
TcM TcM is offline
Moderator
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,263
Credits: 0
Rep Power: 74
TcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud of
Default

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!
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 10-29-2006, 03:18 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 19
Posts: 3,211
Last Blog:
Passwords
Credits: 842
Rep Power: 20
John has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud of
Send a message via AIM to John
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 10-30-2006, 07:54 AM
Lop's Avatar   
Lop Lop is offline
Speaks fluent binary
 
Join Date: May 2006
Posts: 1,149
Credits: 112
Rep Power: 16
Lop will become famous soon enough
Default

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.
__________________
Lop
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 10-30-2006, 01:00 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 19
Posts: 3,211
Last Blog:
Passwords
Credits: 842
Rep Power: 20
John has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud of
Send a message via AIM to John
Default

Quote:
Originally Posted by Lop View Post
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 10-30-2006, 04:10 PM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 7,165
Last Blog:
Tramp Variables
Credits: 1
Rep Power: 20
Jordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud of
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

Thank you for staying Sidewinder. This was a perfectly fine question.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Don't hesitate to ask any questions that you have! Check out our
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
HomeWork Question - VAL() Lop Visual Basic Programming 2 07-11-2007 08:32 AM


All times are GMT -5. The time now is 04:52 AM.

Contest Stats

Xav ........ 1097.16
MeTh0Dz|Reb0rn ........ 986.37
morefood2001 ........ 850.04
John ........ 841.93
WingedPanther ........ 684.54
marwex89 ........ 638.26
Brandon W ........ 493.36
chili5 ........ 292.12
Steve.L ........ 188.37
orjan ........ 187.41

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 79%

Ads