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()
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()
Chapter7: Using Methods
Section: Chapter Questions
Problem 20RQ
Related questions
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()](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F37f36609-f6cb-4471-a981-f3cd0262a21d%2F18713470-ca5a-4b52-a971-fab30b0dda81%2Fmwmugee_processed.png&w=3840&q=75)
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 step
Solved in 2 steps

Recommended textbooks for you

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

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