Reference no: EM131397444
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
Find the amount of the raise and the new salary
: Ed's annual salary is $67,500. He has been promised a 4.8% merit raise in the year ahead. Find the amount of the raise and the new salary.
|
Determine the value estimated by msbg
: If n = 10 observations are sampled from each group, determine the value estimated by MSBG and comment on how this differs from the value estimated by MSWG.
|
Elementary and intermediate algebra
: Solve the compound inequalities as demonstrated in Elementary and Intermediate Algebra and the Instructor Guidance in the left navigation toolbar, in your online course. Be careful of how a negative x-term is handled in the solving process. Show a..
|
Evaluate published nursing research for credibility
: The purpose of this assignment is for the student to learn to examine, analyze, critique, and summarize an original research article. Student is to select an article from a list located in Course Resources. There is a choice of articles from which..
|
Write the bubble sort and the swap function
: 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
|
Did the authors discuss potential clinical significance
: Did the authors state that the results had statistical significance (for example, confidence interval, p values, risk ratio, odds ratio)? Did the authors discuss potential clinical significance? If so, what did they say?
|
What might explain the discrepancy between the two methods
: For the following data, verify that you do not reject with the ANOVA F testing with α = .05, but you do reject with Welch's test.- What might explain the discrepancy between the two methods?
|
What is the monthly income of the family
: 1. A salesperson's weekly paycheck is 15% less than a second salesperson's paycheccks, and the total of the paychecks is $1125. What do each of the paychecks equal? 2. A family has a monthly mortgage payment of $760, or 16% of their monthly income...
|
Effectiveness of both roasts and after- dinner speeches
: What element is essential to the effectiveness of both roasts and after- dinner speeches? This type of visual aid illustrates how one variable changes as a function of another by using a horizontal and vertical axis to show the changes in the two var..
|