Answered step by step
Verified Expert Solution
Question
1 Approved Answer
ACME University, have requested the development of an application to collect exam result information for each student sitting exams. The application should allow the
ACME University, have requested the development of an application to collect exam result information for each student sitting exams. The application should allow the user to enter the name, ID number and exam results (which lie in the range of 0-100) for each student. The student population is made up of both undergraduate and postgraduate students and students are each required to sit five exams. The calculation of a pass mark differs for both undergraduate and postgraduate students. Undergraduate Students pass if the average mark of their 5 exam results is greater than or equal to 40. Postgraduate students pass if the average mark over the 5 exams is 50 or above. < >> Student name: String a id: long agrade: String a test int NUM TESTS: int Student) Student(String,long) setName(String):void setiD(long):void setGrade(String) void setTestScore(int,int):void getTestScore(int)int getNum Tests() int getName() String getID():long getGrade(): String toString() String calculateResult():void < > UnderGraduate UnderGraduate() UnderGraduate(String,long) calculateResult():void < >> PostGraduate Post Graduate() Post Graduate(String,long) calculateResult():void a) Implement the classes outlined in the UML diagram. [25] b) Write a Write a StudentTest application class which implements an ArrayList of five students containing a mix of both postgraduate and undergraduate students and display their names, ID numbers and whether they have passed of failed.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Heres the Java code for the classes outlined in the UML diagram import javautilArrayList class Student private String name private long id private Str...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started