write a program to input total marks and percentage of a student and display appropriate message. if the child's percentage is more than 65 then display "promoted to higher class".
Answers
Answered by
2
In Java:
Okay, I'ma write a function for this ( do tell me if ya want a simpler version)
Snippet:
public void display(double percentage, String name){
// can work only with object
if(percentage>65)
System.out.println( name +" has been promoted to higher class.");
else
System.out.println(name + " has been flunked.");
}
Okay, I'ma write a function for this ( do tell me if ya want a simpler version)
Snippet:
public void display(double percentage, String name){
// can work only with object
if(percentage>65)
System.out.println( name +" has been promoted to higher class.");
else
System.out.println(name + " has been flunked.");
}
tonyrogers143:
give your mobile number please
Similar questions