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
BLY 0 Newbie Poster
Dhaneshnm 9 Junior Poster in Training
BestJewSinceJC 700 Posting Maven
BLY 0 Newbie Poster
BestJewSinceJC 700 Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.