techPowerUp! Forums

Go Back   techPowerUp! Forums > Software > Programming & Webmastering

Reply
 
Thread Tools
Old Dec 6, 2012, 08:27 PM   #1
Darkleoco
1000 Posts
 
Darkleoco's Avatar
 
Join Date: Sep 2011
Location: Cullowhee, North Carolina
Posts: 1,333 (2.19/day)
Thanks: 660
Thanked 238 Times in 213 Posts

System Specs

Java project help

Write a Rectangle class that uses the ClosedInterval class provided (that code is unviewable). An instance of the Rectangle class models a rectangle in the x/y plane. A key feature is that your Rectangle class must represent a rectangle using ClosedInterval objects. We are considering only rectangles whose edges are parallel with the x- and the y-axes. Consider such a rectangle { its horizontal sides project down to the x-axis to a single interval. Similarly its vertical sides both project over to the y-axis as a single interval. Thus, the rectangle can be viewed as the intersection of the region in the x/y plane specified by that y-axis interval intersected with the region in the x/y plane specified by that x-axis interval.
The Rectangle class must have the following public members. Your class should also have any private fields and private methods that you feel are needed.

1. A constructor that takes two ClosedInterval parameters and initializes the fields of the object as appropriate. The first parameter is the ClosedInterval object that represents the closed interval that is the projection of the Rectangle onto the x-axis. The second parameter is the ClosedInterval object that represents the closed interval that is the projection of the Rectangle onto the y-axis.

I am trying to do this project before midnight EST and am a bit confused by the terminology I have bolded, any simpler explanation of what is being asked would be very helpful as I am striving for an A in my first Java class.
__________________
Darkleoco is offline  
Reply With Quote
The Following User Says Thank You to Darkleoco For This Useful Post:
Old Dec 6, 2012, 08:30 PM   #2
Easy Rhino
Linux Advocate
 
Easy Rhino's Avatar
 
Join Date: Nov 2006
Posts: 10,218 (4.30/day)
Thanks: 1,206
Thanked 2,774 Times in 1,792 Posts

System Specs

i think what they mean is that they want your classic rectangle, not something like a parallelogram.
Easy Rhino is offline  
Reply With Quote
Old Dec 6, 2012, 08:32 PM   #3
Aleksander
2000 Posts
 
Aleksander's Avatar
 
Join Date: Dec 2009
Posts: 3,028 (2.40/day)
Thanks: 648
Thanked 280 Times in 228 Posts

System Specs

too late bro
you better learn these things yourself, since it is your best friend
search youtube videos for java, as they will help rapidly

Last edited by Aleksander; Dec 6, 2012 at 09:16 PM.
Aleksander is offline  
Reply With Quote
Old Dec 6, 2012, 08:33 PM   #4
Darkleoco
1000 Posts
 
Darkleoco's Avatar
 
Join Date: Sep 2011
Location: Cullowhee, North Carolina
Posts: 1,333 (2.19/day)
Thanks: 660
Thanked 238 Times in 213 Posts

System Specs

Quote:
Originally Posted by Easy Rhino View Post
i think what they mean is that they want your classic rectangle, not something like a parallelogram.
I feel as if I am just being dense however when it states:

Consider such a rectangle { its horizontal sides project down to the x-axis to a single interval. Similarly its vertical sides both project over to the y-axis as a single interval.

It seems as if it is talking about both sides (horizontal and vertical) projecting to a single point/interval.

Do I just have a single closed interval representing x and another for y. I am not sure if I am overthinking the terminology or not as my professor teaches most of the java courses here and tends to expect quite alot out of us on occasion.
__________________
Darkleoco is offline  
Reply With Quote
Old Dec 6, 2012, 08:35 PM   #5
Easy Rhino
Linux Advocate
 
Easy Rhino's Avatar
 
Join Date: Nov 2006
Posts: 10,218 (4.30/day)
Thanks: 1,206
Thanked 2,774 Times in 1,792 Posts

System Specs

Quote:
Originally Posted by Darkleoco View Post
I feel as if I am just being dense however when it states:

Consider such a rectangle { its horizontal sides project down to the x-axis to a single interval. Similarly its vertical sides both project over to the y-axis as a single interval.

It seems as if it is talking about both sides (horizontal and vertical) projecting to a single point/interval.

Do I just have a single closed interval representing x and another for y. I am not sure if I am overthinking the terminology or not as my professor teaches most of the java courses here and tends to expect quite alot out of us on occasion.
call your professor or a classmate.
Easy Rhino is offline  
Reply With Quote
Old Dec 6, 2012, 09:05 PM   #6
Darkleoco
1000 Posts
 
Darkleoco's Avatar
 
Join Date: Sep 2011
Location: Cullowhee, North Carolina
Posts: 1,333 (2.19/day)
Thanks: 660
Thanked 238 Times in 213 Posts

System Specs

So I found out that a large portion of my problem is that my professor provided the supplementary material for this project incorrectly which prevents us from accessing the code we require, I am kind of conflicted about what to do as I am unsure of just how professional my professor will be when this is brought to his attention, should I not worry about this project since the reason my class can't complete it is on him and assume he won't grade it? Or should I request in our final class tomorrow that he either doesn't take it as a grade or that he fixes his mistake and allows us to submit it the following week?
__________________
Darkleoco is offline  
Reply With Quote
Reply


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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I need help in JAVA Aleksander Programming & Webmastering 3 May 14, 2011 01:06 PM
Java Programing help Rapidfire48 Programming & Webmastering 5 Feb 9, 2011 04:15 PM
Java Help Wozzer Programming & Webmastering 22 Feb 1, 2011 08:47 AM
Java Programming Tutorial Part2 - Netbeans, Classes and Sample Project Oliver_FF Programming & Webmastering 4 Jun 20, 2010 02:53 AM
Java+VB developers project CAPITAL LETTERS Programming & Webmastering 14 May 12, 2009 08:42 AM


All times are GMT. The time now is 07:13 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
no new posts