In: Computer Science
1. Please create a New Class with the Class Name: Class17Ex
Please add the ten methods:
1. numberOfStudents
2. getName
3. getStudentID
4. getCredits
5. getLoginName
6. getTime
7. getValue
8. getDisplayValue
9. sum
10. max
Show Class17Ex.java file with full working please. Let me know if you have any questions.
The above mentioned program is the java program which includes 10 methods. As we all know methods are a block of code which is executed only when it is called.
In the above question, 10 methods are provided.
So, the program will be :
import java.util.scanner; //primary header file
public class Class17Ex //class as specified in question
{
public static void numberOfstudents( int n) //first method
{
system.out.println("enter the number of Students:");
int n=new int(System.in);
}
public ststic void getName( str name) //second method
{
system.out.println("enter the name of the student:");
String name=new str(System.in);
}
public ststic void getStudentID( int ID) //third method
{
system.out.println("enter the Identity number of the student:");
int ID=new int(System.in);
}
public ststic void getCredits( str Credits) //fourth method
{
system.out.println("enter the credits of the student:");
String credits=new str(System.in);
}
public static getLoginName( str[arg])
{
system.out.println("enter the login name of the student");
string arg=new str(System.in);
if(getName()==arg)
{
system.out.println("Login Success");
}
}
public static getTime( int time)
{
system.out.println("The time of login is :");
int time =new int(System.in);
}
public ststic getValue( str val)
{
system.out.println("enter the value of the student:");
String val=new str(System.in);
}
public ststic void getDisplayValue( str disval)
{
system.out.println("The value entered is:"+getValue());
}
public static sum()
{
vals.add();
}
}
public ststic void main(str[args]) //the main function
{
numberOfstudents(); //calling the methods
getName();
getStudentID();
getCredits();
getLoginTime();
getTime();
getValue();
getDisplayValue();
sum();
Note: if further modification required, comment.Plzz dont dislike.