Develop an Object-Oriented program that can be used to calculate a student’s grade based on weighted averages.

完了済み 投稿 Nov 7, 2013 着払い
完了済み 着払い

Implementation Requirements:

Your project will contain two classes: Student and Proj7 (the application class). Student

 Create a class called Student that contains (at a minimum) the following 7 private data properties – full student name and student’s total score on labs, projects, exams, codelab, and on final exam (all doubles) and the student’s overall % score (double).

1

 User will enter in the current points possible for each category, but store the weight % as private constants (15%, 15%, 30%, 10%, 30%, respectively)

 Include 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: name = "no name entered" / all numeric values explicitly to zero.

2. A six-argument constructor to initialize a Student object to values passed-in for name, and student’s total score on labs, projects, exams, codelab, and final exam.

(Note: Both constructors might not be used for project, but are still required in the Student class)

3. A 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 can be used to display the name of the student, their weighted overall % (one number after the decimal), and their final grade (based on the following grading scale). Method must be declared using the following method signature: public String toString()

(Do not read in input or write output within this method)

90 or above A 80 or above B 70 or above C Above 60 D 60andbelow F

Sample Output of the toString method... Student Name: Bob Jones

Overall %: 79.2% Final Grade: C

Proj7 (Application Class)

 Create a separate class called Proj7 that contains ONLY a main method (used to test your Student class). Within main, allow the user to enter information for as many students as they desire (up to 20). YOU decide how to end the input. Once information has been read in for all desired students, display the name, overall %, and final grade for each student, pausing the output for each student until ‘enter’ is pressed (see next page).

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. You might want to use an object to hold these values but aren’t required to. Calculate adjusted points for each category.

do

{ -Read in student’s name and total score on labs, projects, exams, codelab, and final exam

-Create and store object in the array

-Calculate the weighted overall % for the student -Enter Another?

} while (your condition);

2

-Loop through and use the toString method to display the output for each student

Sample Output ...

Student Name: Bob Jones

Overall %: 79.2%

Final Grade: C

Press enter to display next student...

Student Name: Bill Smith Overall %: 81.3%

Final Grade: B

Press enter to display next student...

...etc.

All students displayed...

Java

プロジェクトID: #5104986

プロジェクトについて

10個の提案 リモートプロジェクト アクティブ Nov 7, 2013

アワード:

Calleus

Hi, I have strong background in JAVA and Object Oriented Programming concepts. Let me help you. I am ready to start ASAP.

$30 USD 2日以内
(55レビュー)
5.6

10人のフリーランサーが、平均$31 で、この仕事に入札しています。

dobreiiita

Hello, I am Java expert and can surely help you with this project, I will provided completed codes within 24 hours and will be available on skype while working on the project. Thank You

$30 USD 1日以内
(237件のレビュー)
6.8
urmate

*********** Will deliver within 6 hours of hire time. ********* Contact me for an efficient, perfect, well documented development of your project according to 100% accuracy and requirements, with dedicated suppo もっと

$25 USD 0日以内
(80件のレビュー)
5.7
iit2009013

Hi! I can code this up for you. I went through the description and it's hardly a 2 hour job. Thank You!

$40 USD 1日以内
(14件のレビュー)
4.8
jeal4real

Hello, I am a very good java developer, I always help my clients till they are satisfied. Most of them get distinctions in their Assignments, Tests, exams and projects. You can check all my past works to confi もっと

$30 USD 3日以内
(19件のレビュー)
4.7
romanuwa

Hi, I am an expert Java programmer and I understand the project. My OOP/OOD experience and knowledge will be very helpful successfully completing this project. Let me do this. Thank you.

$30 USD 3日以内
(18件のレビュー)
4.4
abhinay18

Hey man, let me do this for you. I can easily complete this and submit it to you in one day, you can review and incase of any problem, I ll refix it. :)

$30 USD 2日以内
(16件のレビュー)
4.3
javoblevw

Hello, I'm a Senior Java developer and I have a strong professional skills in Java on different projects. Let me help you with what you need. Regards

$30 USD 1日以内
(17件のレビュー)
3.7
ishan1604

Expert in doing Java Assignments. Let me give you a hand. I am perfect example of a what a freelancer is, being a passionate Java, IPhone, Android Developer and Designer. You'll get exactly what you are looking for. Y もっと

$30 USD 1日以内
(2件のレビュー)
3.1
jindal89

Hi, I have 5 years of experience in java. i am working as a software engineer. I can provide you the solution within 2 days.

$35 USD 3日以内
(レビュー1件)
0.9