reset password
Author Message
clai8
Posts: 8
Posted 17:33 Jan 15, 2014 |

Can anyone help me and giving some clue how to do lab P2.6? thank You. Stress out, Man!

i Created the UnitTest, i won't know what to write, Give some clue.

rabbott
Posts: 1649
Posted 17:44 Jan 15, 2014 |

Would you help me understand your question. As it now stands, Lab 2 consists of two problems. The first is E2.6 (Holle Printer). The second is Rectangle union. In that problem, one test method is given in this Forum post. That test method takes the union of these two Rectangles

                Rectangle r1 = new Rectangle(0, 0, 100, 100);
       Rectangle r2 = new Rectangle(50, 50, 100, 100);

The problem asks you to write another test that uses two other Rectangles that look something like this.

 

                                                    ______________
                                          ____|  _____________|____
                                         |____|  ____________  |____|      
                                                   | _____________ |
                                                
          

Your job is to write a second test in which the Rectangles are like the ones pictured above instead of the one in the first test.       

Use the draw( ) and fill( ) methods to draw a picture of your Rectangles to see if they look right.         

The way to do this problem is to copy the given test method, change its name, and change the way the two rectangles are defined.                                 

Last edited by rabbott at 17:52 Jan 15, 2014.
clai8
Posts: 8
Posted 17:54 Jan 15, 2014 |

no. it's week 2 - lab 02. P2.6 the days one. thank you.

mrente12
Posts: 18
Posted 19:01 Jan 15, 2014 |

I am having trouble on that one as well.

Anonymous
Posts: 166
Posted 19:40 Jan 15, 2014 |

There is already a thread about this for the two questions that is due tonight.

mrente12
Posts: 18
Posted 19:46 Jan 15, 2014 |

What do you mean?

Anonymous
Posts: 166
Posted 19:54 Jan 15, 2014 |
mrente12 wrote:

What do you mean?

Are you trying to do the homework assignment that is due tonight?

If you are, there is a thread regarding about the two questions for homework that is due tonight at midnight.

rabbott
Posts: 1649
Posted 21:05 Jan 15, 2014 |

Please see the posts in this thread.