PLEASE NEED HELP CODING
IT HAS TO MATCH AND BE SIMILAR TO THE SAMPLE BUT I AM
LOST
THIS SAMPLE ARRAY:
Assignment - Compute Grades using Arrays Points: 10 You are asked to write a program that will enter test scores of 10 students into an array - scores. Your program will compute the grade for each student. Grades will be stored in another array - grades. Both the arrays have the size to accommodate 10 scores and 10 grades. MUST Use function prototypes so the functions are placed after the function main(). Without the use of function prototypes, assignment will not be grade. There are 10 students so you will use a constant NUM_SCORES equals to 10. Use the following arrays: scores - stores scores - stores grades - type int type char grades - Use the following functions. MUST use function prototypes so the functions are placed after the function main(). 1. The function getScore is used to enter the scores into the array. get_score (scores, NUM_SCORES); Use this prompt message to enter the score: Enter score #1: _ 2. The function computeGrade computes the grade for each student and stores the grades in the grade array. computeGrade (scores, grades, NUM_SCORES); The grades are assigned based on the following table. Score Grade 90-100 A 80-89 B 70-79 с 60-69 D 0-59 F
The function pass will determine and return the number of passing scores. A score greater than or equal to 60 is considered a passing score. pass Number = pass (scores, NUM_SCORES); 4. The function find High will find out and return the highest test score. highScore = find_High (scores, NUM_SCORES); 5. The function printSummary will print the output as shown. printSummary (scores, grades, passNumber, highScore, NUM_SCORES); Use the following test data: (10 scores) 51, 89, 97, 64, 48, 60, 80, 89, 79, 69 Add these lines above return 0: cout cout << "Programmer Name: Your name " << endl; system ("pause"); Before displaying the output; use system("cls"); //This will clear the screen The output will be displayed as follows: Score No. Score Grade- 79 10 69 D The number of students that passed the test: 8 The highest test score: 97
PLEASE NEED HELP CODING IT HAS TO MATCH AND BE SIMILAR TO THE SAMPLE BUT I AM LOST THIS SAMPLE ARRAY:
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am