Execute the program with the following input and record the


USING A BUBBLE SORT In this lab, you complete a C++ program that uses an array to store data for a computer programming teacher. The program is similar to the program described in Chapter 9, Exercise 3 in Programming Logic and Design, Fifth Edition. The program should allow the user to enter a student's name and 10 quiz scores. The program should output the student's name and his or her eight highest quiz scores. The file provided for this lab contains the necessary variable declarations and input statements. You need to write the code that sorts the scores in ascending order using a bubble sort, and then print the student's name and eight highest quiz scores. Comments in the code tell you where to write your statements.

1. Open the source code file named QuizScores.cpp using Notepad or the text editor of your choice.

2. Write the bubble sort and the swap function.

3. Output the student's name and eight highest quiz scores.

4. Save this source code file in a directory of your choice and then make that directory your working directory.

5. Compile the source code file QuizScores.cpp.

6. Execute the program with the following input and record the output: Student Name: William Moriarty Ten Quiz Scores: 85, 42, 76, 95, 90, 85, 82, 92, 96, 88

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Execute the program with the following input and record the
Reference No:- TGS02194086

Expected delivery within 24 Hours