For this assignment, you will write a program that requests the quiz scores for 7 students by name. The program computes
Posted: Thu Jul 14, 2022 2:18 pm
Please create a raptor flowchart. Please include all proceduresand show what you set the parameters to. Thanks!
For this assignment, you will write a program that requests the quiz scores for 7 students by name. The program computes the average score and determines the student with the highest score. The students in this class are Henry, Edward, Jane, Mary, Elizabeth, James, and Charles. name and fills the scores array. This procedure must use a loop. getAverage takes scores as an in parameter and returns the average in an out parameter. It must use a loop to compute the sum of the scores. getHighlndex also takes scores as an in parameter and returns the index (1-7) of the student with the highest score. This procedure will require an if statement inside a loop. Hints 1. This program requires the use of parallel arrays as described in chapter 7. 2. Lessons #7 and #8 have examples of inputting values into an array and looping through those values. You will perform similar actions for this assignment.
3. If two students are tied for the highest score, your program only needs to display one of them. 4. The debug_lab C++ program in lesson 7 includes a function which returns the index of the highest sales. The getHighlndex procedure is similar. Sample Output (input in BOLD) Please enter the score for Henry 73 Please enter the score for Edward 81 Please enter the score for Jane 68 Please enter the score for Mary 95 Please enter the score for Elizabeth 77 Please enter the score for James 46 Please enter the score for Charles 83 The average score is 74.7143 The high score was Mary with a 95 Extra Credit (10 Points) For extra credit, modify your program so that it also displays the name and score for the student with the second highest score. The average score is 74.7143 The high score was Mary with a 95 The next highest score was Charles with a 83 You may either include the extra credit in your initial submission, or in an additional submission.
For this assignment, you will write a program that requests the quiz scores for 7 students by name. The program computes the average score and determines the student with the highest score. The students in this class are Henry, Edward, Jane, Mary, Elizabeth, James, and Charles. name and fills the scores array. This procedure must use a loop. getAverage takes scores as an in parameter and returns the average in an out parameter. It must use a loop to compute the sum of the scores. getHighlndex also takes scores as an in parameter and returns the index (1-7) of the student with the highest score. This procedure will require an if statement inside a loop. Hints 1. This program requires the use of parallel arrays as described in chapter 7. 2. Lessons #7 and #8 have examples of inputting values into an array and looping through those values. You will perform similar actions for this assignment.
3. If two students are tied for the highest score, your program only needs to display one of them. 4. The debug_lab C++ program in lesson 7 includes a function which returns the index of the highest sales. The getHighlndex procedure is similar. Sample Output (input in BOLD) Please enter the score for Henry 73 Please enter the score for Edward 81 Please enter the score for Jane 68 Please enter the score for Mary 95 Please enter the score for Elizabeth 77 Please enter the score for James 46 Please enter the score for Charles 83 The average score is 74.7143 The high score was Mary with a 95 Extra Credit (10 Points) For extra credit, modify your program so that it also displays the name and score for the student with the second highest score. The average score is 74.7143 The high score was Mary with a 95 The next highest score was Charles with a 83 You may either include the extra credit in your initial submission, or in an additional submission.