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()

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter8: Arrays
Section: Chapter Questions
Problem 10RQ
icon
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 programming logic for your pseudocode. The pseudo code should outline the basic logic needed to code the application in any programming language.

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()
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
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,