0
create 3 class,InputForm,Manager and Student.use only class


below is the inputform class
public class InputForm {


public int input;


public double getInput(){


return input;
}


public void displayMessage(char grade){


return grade;


}


}


Student class


public class Student{


private double score ;


public Student (){


}


public Student(double score){


this.score = score;


}


public char determineGrade ()


if ((score > 80)&&(score <100)){


grade = 'A';


else if ((score >70)&&(score <79))


grade = 'B';


else if ((score >60)&&(score <69))


grade = 'C';


else if ((score >50)&&(score <59))


grade = 'D';


else


grade = 'E';
}
return grade;
}


Manager;a little confused
what is Ob:InputForms:Student
+main(args:String[]):void

Edited by happygeek: fixed formatting

3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by BestJewSinceJC
0

i've created 3 class and just the last class
the UML diagram was

UML
Manager class
-Ob:InputForm
-s.student
+main(argstring[]):void

One method is to use extends,but i need to use the class method to link the two class and i dont know how to declare the manager form.Never seen this kind UML declaration.I've runned the Student class and InputForm class and its ok.Just the manager form needs to be declared.

0

Your explanation doesn't make sense to me. And not everyone here knows UML. Although I have seen UML before, I don't know what you're trying to do.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.