Question: please follow instructions and fill up the code in picture number 4 and pass all the tests given below 3.1. Method getMyID0 This method that







3.1. Method getMyID0 This method that is called getMyID0, accepts no parameter and returns your student number. The return type must be a string. Please make sure that you return a correct student number, otherwise we are not able to calculate your grade. The method signature should look like below: public static string getMyID () 3.2. Method getLetterGrade 0 This method accepts a double number, which represents a grade and return the letter grade equivalent of the input. The letter grade is computed using the following table: This method accepts a double number, which represents a grade and returns the letter grade equivalent of the input. The letter grade is computed using the following table: The name of the method is getLettergrade () and the return type is string. The method signature is: public static string getlettergrade (double grade) Important Note: It is extremely important that the identifiers that you choose for the class and methods are the same as what is given in this description. Otherwise, our tester cannot read your code and you will lose the mark for this lab. 4. Testing your code You should be able to use JUnit to test your code. Although we do not want you to submit your tester, we expect you to write your own tester, as this is part of the objective of this lab. Since we assume that you have tested your code, using Junit, your code should not contain the main method. When you write a tester, make sure that you choose a test case that is representative of each group (e.g. one test case when 90
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
