Question: Can you code this using Java with Ant please? 3. Write the following static methods. When requesting input, be sure to include prompts so the
Can you code this using Java with Ant please?

3. Write the following static methods. When requesting input, be sure to include prompts so the user knows what to enter. a) Write the obtainStudentInformation method. This method simply prompts the user to enter the student's name, gets the string input, and then returns it to the calling method. b) Write the averageProgAsgGrades method. This method prompts the user to enter 3 assignments grades separated by a space, gets the input, and then returns the average of those grades to the calling method. c) Write the averageQuizzes method. This method prompts the user to enter 2 quiz grades separated by a space, gets the input, and then returns the average of those grades to the calling method. d) Write the averageExams method. This method prompts the user to enter 2 exam grades separated by a space, gets the input, and then returns the average of those grades to the calling method. e) Write the obtainZYBooksAvg method. This method prompts the user to enter the zyBooks grade, gets the input from the user, and returns it to the calling method. f) Write the calculateOverallGrade method. For this method, the assignment average, the quiz average, the exam average and the zyBooks average will all be passed to it as its arguments. Then, using the weights outlined in the course syllabus, this method calculates the student's grade for the course and returns it to the calling method. Declare variables for the weights within this method and make them constant. g) Write the displayResults method. This method accepts the student's name and the overall grade as its arguments and then displays the student's name along with the final grade for the course for that student. h) Write the writeToFile method. This method accepts the student's name and the overall grade as its arguments and then writes the student's name and the overall grade to the external file called "grades.txt". Within this method, you will need to instantiate the necessary objects as you did for Prog. Asg.1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
