Question: Please keep the code as simple as possible for this! Arrays Lab : Parallel Arrays: As part of Teach for America, you have been recruited

Please keep the code as simple as possible for this!

Arrays Lab: Parallel Arrays:

As part of Teach for America, you have been recruited to teach in a remote Appalachian community. To help analyze students performances on an assessment exam, you must write a program that displays each students name and then prompts you for that students test score. The program will calculate the class average (mean). Additionally, for each student, your program will display the students name, his test score, and the deviation of that test score from the mean (the students score minus the average).

Currently there are seven students in your class named: Bashful, Doc, Dopey, Grumpy, Happy, Sleepy, and Sneezy.

Program Specifications: This program will require you to create 3 parallel arrays , one for the students names (data already supplied), one for their test scores (to be read-in from the keyboard), and one for their score's deviation from the mean (which you will calculate).

Please create methods to:

read-in the data from the keyboard

compute the class average

compute the deviation from the mean

display the output in 3 well-aligned columns

SAMPLE RUN:

Enter Docs score: 90

Enter Grumpys score: 50

Enter Happys score: 70

Enter Sleepys score: 40

Enter Dopeys score: 30

Enter Sneezys score: 60

Enter Bashfuls score: 80

The average of the scores is 60.0

Name

Grade

Mean Deviation

Doc

90

(30)

Grumpy

50

(-10)

Happy

70

(10)

Sleepy

40

(-20)

Dopey

30

(-30)

Sneezy

60

(0)

Bashful

80

(20)

Recommendations for the Simplest Approach:

The most straightforward way to approach this program is to create 3 parallel arrays in your main method. (One array can be allocated for the student names, one for their scores, and one for the deviations from the mean).

Next you can create a method to handle the input, a method to compute the average, a method to handle the deviation calculation, and lastly a method to display the output. Please pass any needed arrays into the methods (from main) via the parameter list. (NOTE: You are not required to set up the output in table format, but just be sure to align columns so that the output is neat, well- organized and easily readable.)

Submission Guidelines: Please submit in the iCollege Assignments drop box:

The Java source code for your program (do not forget documentation(comments) where appropriate)

Screen shots of the program running

Please keep the code as simple as possible for this!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!