ACME University, have requested the development of an application to collect exam result information for each...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. <<Java Class>>> 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 <<Java Class>> UnderGraduate UnderGraduate() UnderGraduate(String,long) calculateResult():void <<Java Class>>> 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. 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. <<Java Class>>> 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 <<Java Class>> UnderGraduate UnderGraduate() UnderGraduate(String,long) calculateResult():void <<Java Class>>> 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.
Expert Answer:
Answer rating: 100% (QA)
Heres the Java code for the classes outlined in the UML diagram import javautilArrayList class Student private String name private long id private Str... View the full answer
Related Book For
Systems Analysis And Design
ISBN: 978-1119496489
7th Edition
Authors: Alan Dennis, Barbara Wixom, Roberta M. Roth
Posted Date:
Students also viewed these computer network questions
-
Management is not possible without Resource and Planning. Agree or not? Explain.
-
You work in the Admissions Office for a small regional university in Massachusetts Your assistant entered a list of college applicants for the Fall 2021 semester. You determine if a student qualifies...
-
Write a program that finds the course grades for several classes and write it in Java. Program Description Your assignment is to write a class averaging program that outputs a summary of classes and...
-
20 -101 10 in- laminate substrate Fig.2 Q2: The tool shown in Fig.2 is used in a gluing operation to press a thin laminate to a thicker substrate. If the wheels at points A and B both have 2 in...
-
The crate begins to slide when the tilt angle is 17.5. When the crate reaches the bottom of the flatbed, after sliding a distance of 2.75 m, its speed is 3.11 m/s. (a) The coefficient of static...
-
On December 31, 2016, Andes Company SA had 1,500,000 10 par ordinary shares issued and outstanding. The equity accounts at December 31, 2016, had the following balances. Share...
-
Vision Systems Inc. was organized on May 31, 2002. Rrojected selling and administrative expenses for each of the first three months of operations are as follows: Depreciation, insurance, and property...
-
Impact of Transactions Involving Capital Leases on Statement of Cash Flows Assume that Garnett Corporation signs a lease agreement with Duncan Company to lease a piece of equipment and determines...
-
A company competes for the Malcolm Baldrige National Quality Award. If it is evaluated based on how senior executives create and sustain vision, values, and mission, it is likely that the company is...
-
A home network is shown in the following figure and its configurations are shown in the table below. rest of Internet E Router interface D E home network WAN side IP address 130.155.169.8 IP address...
-
The extraction of zinc by carbothermic reduction of zinc oxide sinter at 1100C can be represented by the reaction Zno(s) + C(s) = Zn(g) + CO(g) Calculate the heat of this reaction at 1100C, given:...
-
A 55 gallon drum is 60% full of water, how much does the drumweight in pounds (empty drum weighs 50 pounds)? (Note that it canbe said that the drum is 60% wetted). : How much would the same drum...
-
What (and Why) Is Positive Psychology how the writer feel about the positive psychology and why how the writer not feel about the psychology and why 3- Positive psychology has analyzed people of...
-
At December 31, 2020, the trading securities for Larkspur Company are as follows: Security Cost Fair Value A $20,160 $25,200 B 42,840 40,320 $63,000 $65,520 Prepare the adjusting entry at December...
-
It is currently winter in California, but the southern hemisphere is experiencing summer. Draw a sketch to explain why the seasons are different in the northern and southern hemispheres and state two...
-
Which affiliate marketing strategy do you think is the most effective? Why? Compare and contrast permission marketing, affiliate marketing, and viral marketing. Incorporate relevant examples to...
-
6. Assume that there are two risk-averse investors, i and k, whose absolute risk aversions satisfy R(z) R(z), V z. There is a risky asset and a risk-free asset. Assume that at the risk premium, rp =...
-
Refer to Example 9.15. Add the following functionality to this program: Allow the user to enter the cost of a gallon of gas on each trip and use a function, Cost() to calculate the cost of purchasing...
-
Describe the principal steps in the implementation phase. What are the major deliverables?
-
What are use scenarios, and why are they important?
-
Describe the differences in the meanings between the two structure charts shown. How have the symbols changed themeanings? Books by Author Books by Author Author Author, " orgtock r Book Book Find...
-
Identify all statements that are consistent with the concept of present value. (More than one answer may be correct.) a. The present value of a future amount always is less than that future amount....
-
Silverado maintains a fully funded pension plan. During \(2009, \$ 1\) million was paid to retired workers, and workers currently employed by the company earned a portion of the right to receive...
-
Deferred income taxes result from: a. The fact that bond interest is deductible in the computation of taxable income. b. Depositing income taxes due in future years in a special fund managed by an...
Study smarter with the SolutionInn App