
Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
expand_more
expand_more
format_list_bulleted
Question
Professor Zak allows students to drop the four lowest scores on the ten 100-point quizzes given during the semester. Create the pseudo code for an application that accepts a student name and 10 quiz scores. Output the student’s name and total points for the student’s six highest-scoring quizzes.
Use the following flowchart to determine the
![start
fillArray()
Declarations
num SIZE = 10
num MAX = 6
string name
num scores [SIZE]
num x
output "Enter
the student's
name"
input name
num y
num temp
num total
num COMPS SIZE -1
fillArray()
sortArray()
0
Yes
x < SIZE?
No
return
output "Enter
a quiz score"
Stop
displayArray()
sortArray()
76-0-1
displayTotal ()
Yes
Y < COMPS?
No
total = 0
return
Yes
x < MAX?
No
output name,
total
return
input scores [x]/
x < COMPS?
Yes
swap ()
temp scores [x+1]
scores [x+1]
scores [x]
scores [x] temp
return
No
No
scores [x] >
scores [x+1]?
Yes
y = y + 1
total total
scores [x]
x=x+1
x=x+1
swap()](https://content.bartleby.com/qna-images/question/37f36609-f6cb-4471-a981-f3cd0262a21d/18713470-ca5a-4b52-a971-fab30b0dda81/mwmugee_thumbnail.png)
Transcribed Image Text:start
fillArray()
Declarations
num SIZE = 10
num MAX = 6
string name
num scores [SIZE]
num x
output "Enter
the student's
name"
input name
num y
num temp
num total
num COMPS SIZE -1
fillArray()
sortArray()
0
Yes
x < SIZE?
No
return
output "Enter
a quiz score"
Stop
displayArray()
sortArray()
76-0-1
displayTotal ()
Yes
Y < COMPS?
No
total = 0
return
Yes
x < MAX?
No
output name,
total
return
input scores [x]/
x < COMPS?
Yes
swap ()
temp scores [x+1]
scores [x+1]
scores [x]
scores [x] temp
return
No
No
scores [x] >
scores [x+1]?
Yes
y = y + 1
total total
scores [x]
x=x+1
x=x+1
swap()
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps

Knowledge Booster
Similar questions
- Write an Add method that adds the contents of the decPrice variable to the lstPrices control.arrow_forward(Statistics) Write a program that includes two functions named calcavg() and variance(). The calcavg() function should calculate and return the average of values stored in an array named testvals. The array should be declared in main() and include the values 89, 95, 72, 83, 99, 54, 86, 75, 92, 73, 79, 75, 82, and 73. The variance() function should calculate and return the variance of the data. The variance is obtained by subtracting the average from each value in testvals, squaring the values obtained, adding them, and dividing by the number of elements in testvals. The values returned from calcavg() and variance() should be displayed by using cout statements in main().arrow_forward
Recommended textbooks for you
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning

Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,

Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning

EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage

C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning

Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning