SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 304 Weeks Ago, 3 Days Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 17 Dec 2017 My Price 10.00

prompts the user to input a student first name followed

You will write a program that utilizes 2 arrays, each array will be one-dimensional. One array will contain student names, the other student test grades. These will be parallel arrays. Rest of the information is in attached fine.

Practice for Final Programming– Spring 2017

 

You will write a program that utilizes 2 arrays, each array will be one-dimensional.  One array will contain student names, the other student test grades.  These will be parallel arrays.  With this in mind, complete the following:

 

Write a program that prompts the user to input a student first name followed by a space and an integer test grade, then the user will press enter and you will prompt them again for a name and a test grade; for a total of 10 students and 10 grades. (Ex: Dawn 100 ) ;  You must check that the user enters a grade that is >= 0 and <= 100. If not, you must prompt the user with an error message and the user must input the grade again. Once you have all the student names and grades, you are to find the classAverage() test grade and the highestGrade() and lowestGrade(). You must use an array to store the student names and another array to store the student grades.  Recall that average is the sum of the values divided by the number of values.  Use a sort() method to sort both arrays (remember that each array holds a name related to a grade. If you move a grade in one array, you should move the name to the corresponding index in the name array)

 

You will write a method classAverage() which should return the average test grade based on all the values in the array of test grades. You are also expected to create a method highestGrade(), which will find the highest grade in the test grades array and print the highest grade and ALL the students’ names that have the highest grade on the test.  Test your program using the test data given below and callthe classAverage()and highestGrade() methodsdefined above passing in the arrays. You must use the test data that I give you below.

 

These are the values to prompt the user with:

Bill 70

Dawn 100

John 90

Samir 100

David 98

Ayesha 100

Tony 99

Lisa 88

Ravi 97

Bob 60

 

 

Once your code is compiled and running, enter the test values to test your program and take a screenshot.

 

Example of what your output should look like: 

 

The Student Grades are:

Bill 70

Dawn 100

John 90

Samir 100

David 98

Ayesha 100

Tony 99

Lisa 88

Ravi 97

Bob 60

 

The Average Test Grade is: 90.2

The highest test grade is 100

The lowest test grade is 60

Students scoring the highest grade are Dawn, Samir, Ayesha

 

The sorted values are :

Bob 60

Bill 70

Lisa 88

John 90

Ravi 97

David 98

Tony 99

Ayesha 100

Samir 100

Dawn 100

 

 

 

 

Submit the following .java file, .class file and screenshot

Grading rubric:

Item

Points Possible

Points Achieved

1.     Proper User Input

1

 

2.     Proper Conditional and Error Message if input is not within range

1

 

3.     Proper Loops

1

 

4.     classAverage() method

1

 

5.     highestGrade() method

1

 

 

 

6.     sort() method

1

 

7.     Outputarraysproperly and using test data

1

 

8.     Java Files

1

 

9.     Class Files

1

 

10.   Screenshot

1

 

 

 

 

 

 

 

 

 

 

 

Attachments:

Answers

(5)
Status NEW Posted 17 Dec 2017 02:12 PM My Price 10.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)