Develop an Object-Oriented program that can be used to calculate a student’s grade based on weighted averages.
$10-30 USD
Pagado a la entrega
Create a class called Student that contains (at a minimum) the following 9 private data properties –
student’s first name, last name, WID and student’s total score on labs, projects, exams, codelab, and
final exam (all doubles) and the student’s overall % score (double).
• User will enter in the current points possible for each category in the StudentApp class, but store the
weight % as private constants (15%, 15%, 30%, 10%, 30%, respectively) in the Student class
• Include, at a minimum, the following constructors/methods within the Student class (your class can
contain more methods but must contain at least these methods)
1. A default no-argument constructor to initialize a Student object to the following default values: first/last
name = "no name entered", WID = “no WID” / all numeric values explicitly to zero.
2. An 8-argument constructor to initialize a Student object to values passed-in for first & last name, WID
and student’s total, adjusted or adj % scores on labs, projects, exams, codelab, and final exam. (Overall
% is calculated)
(Note: Both constructors might not be used for this project, but are still required to be defined in this class)
3. A private method that ONLY calculates the weighted overall % for the student and stores in the proper
data property for a student object. Do not read in input or write output within this method.
4. A toString method that returns a String that can be used to display a String representation of a Student
– specifically, lastname, firstname of the student, their weighted overall % (one number after the
decimal), and their final grade (based on the grading scale below). Method must NOT contain any print
statements and must be declared using the following method signature: public String toString()
(Do not read in input or write output within this method)
Create a separate class called StudentApp used to test your Student class that should contain ONLY a main
method. Optional methods are acceptable, if they are not a required part of the Student class, but keep to a
minimum. Within main, allow the user to enter information for as many students as they desire (up to a
maximum of 20 – do not allow more). Store the information of each student in a Student object and store in an
array of Student objects. YOU can decide how to end the input. Once information has been read in for all
desired students, display the info as shown above for each student, pausing the output for each student until
‘enter’ is pressed
ROUGH pseudocode might look like the following (you do NOT have to structure yours like this!)
-Instantiate an object that can be used to hold an array of student objects.
-Read in the values for the current possible points for each category.
-Calculate adjusted points for each category.
do
{ -Read in student’s name, WID and total score on labs, projects, exams, codelab, and final exam
-Create and store object in the array
-Enter Another?
} while (your condition);
-Loop through and use the toString method to display the output for each student
FYI: You will need to use the private method to calculate the weighted overall % for each student
somewhere in your program
Nº del proyecto: #7459003
Sobre el proyecto
Adjudicado a:
Hello, I am a Java developer have worked with Java for over 2 years, I understand well OOP concepts and can do this job, please don't hesitate to contact me
3 freelancers están ofertando un promedio de $23 por este trabajo
I am capable of doing this project since it is easy and I have plenty of time. I also have a lot of experience with OOP and Java.