In a class of ‘n’ number of students, the number of girls is ‘m’. Write a Java program to create a class named Percentage to perform the following tasks: (i) Input the values of n and m (Use Scanner Class) (ii) Calculate and display the following: Total no. of boys, percentage of boys and girls in the class.
Answers
Answered by
3
Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible.
Similar questions