HW 5 – Arrays and sorting ArraysSample data:
6 digit string
Student ID
234654
345346
546546
123456
0 – 35 Real
Homework
30
24
25
12
0-35 Real
Test
34
25
14
12
0-10 Real
Project
6
8
9
5
0-20 Real
Exam
15
18
12
3
Design a program that:
•
•
•
•
•
•
•
•
Asks the user how many students they want to process and store that in an integer variable
named count.
Create 6 parallel array of that many elements: studentID, homework, test, project, exam,
finalScore
Ask the user for the student ID and the grades in each assignment type.
Validate the input based on the criteria in the first row
Sort all of the arrays based on the student ID
Sum up all of the scores and store them in the final score array
Display the student ID, final score and final letter grade
Determine and display the Average homework, test, project and exam grade
Rubric
Correct array declarations
Correct array arguments sent to modules/functions parameters
Correct parameters used for creating arrays and scope
sort used correctly
Correct swap modules used
Appropriate of modules and functions
Correct input validation functions – use as few functions as possible
Correct sum function used
Correct average displayed using a function
Code properly indented
Total
Points
.5
.75
.75
.5
.5
.5
.75
.5
.75
.5
6
Score