Hi all i need some major help i am studying for an OU degree and im outta my depth on the programming side unfortunately this unit is compulsory.
could someone please help me here is the code for the class below.
Here is the link to the assignment document if you want to take a look.
http://www.dcpsystems.co.uk/M255_TMA02_07J.pdf
Anyone please im desperate
please somebody out there HELP
import ou.*;
/**
* Class Triangle - instances model triangles as rows of asterisks
*
* M255 Course Team
* Version 1.0
*/
public class Triangle
{
/* instance variables */
int size; // the size of the triangle; an integer between 2 and 10 inclusive
String orientation; // either "up" or "down"
/**
* Constructor for objects of class Triangle.
*/
public Triangle()
{
super();
//to be completed by student
orientation.string = OUDialog.request("Please select UP or Down");
size = OUDialog.request("Please enter the size from 2-10");
size = integer.parseInt;
if ((size < 2) && (size > 10));
{
size = OUDialog.request("Please enter the size from 2-10");
}
}
}
/* instance methods */
/**
* Return the orientation of the triangle.
*/
public String getOrientation();
{
return this.orientation;
}
/**
* Return the size of the triangle.
*/
public int getSize()
{
return this.size;
}
}
/**
* Generate Row for Triangle
*/
public generateRow()
{
}[url][/url]


