It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Problems with a UNI ASSIGNMENT Help required

Problems with a UNI ASSIGNMENT Help required

Postby tiggz1980 on Fri Feb 01, 2008 7:15 pm

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]
tiggz1980
 
Posts: 5
Joined: Fri Mar 02, 2007 12:50 pm
Location: Sheffield, UK

Who is online

Users browsing this forum: No registered users and 7 guests