start Declarations num SIZE num MAX = 6 string name 10 num scores [SIZE] num x num y num temp num total num mean num median num COMPS = SIZE -1 fillArray ( ) sortArray() fillArray() swap() output "Enter the student's name" temp scores [x+1] input name x < SIZE? Yes scores [x+1] = scores [x] scores [x] temp return (displayMeanMedian, No return output "Enter a quiz score" calcMean () input scores [x] sortArray() displayMeanMedian () Stop calcMean () total = 0 Yes x < MAX? No mean = total/MAX Y < COMPS? Yes No return Yes x < COMPS? calcMedian () output name, mean, median return No No total total scores [x] y = y +1 scores [x]> scores [x+1]? Yes x = x + 1 return calcMean () median (scores (MAX/2) scores (MAX/2) -1])/2 return swap()

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter9: Using Classes And Objects
Section: Chapter Questions
Problem 20RQ
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.

Modify the your pseudocode using the following flowchart, to display the student's mean and median scores on the six best quizzes.

start
Declarations
num SIZE
num MAX = 6
string name
10
num scores [SIZE]
num x
num y
num temp
num total
num mean
num median
num COMPS = SIZE -1
fillArray ( )
sortArray()
fillArray()
swap()
output "Enter
the student's
name"
temp scores [x+1]
input name
x < SIZE?
Yes
scores [x+1] = scores [x]
scores [x] temp
return
(displayMeanMedian,
No
return
output "Enter
a quiz score"
calcMean ()
input scores [x]
sortArray()
displayMeanMedian ()
Stop
calcMean ()
total = 0
Yes
x < MAX?
No
mean =
total/MAX
Y < COMPS?
Yes
No
return
Yes
x < COMPS?
calcMedian ()
output name,
mean, median
return
No
No
total total
scores [x]
y = y +1
scores [x]>
scores [x+1]?
Yes
x = x + 1
return
calcMean ()
median (scores (MAX/2)
scores (MAX/2) -1])/2
return
swap()
Transcribed Image Text:start Declarations num SIZE num MAX = 6 string name 10 num scores [SIZE] num x num y num temp num total num mean num median num COMPS = SIZE -1 fillArray ( ) sortArray() fillArray() swap() output "Enter the student's name" temp scores [x+1] input name x < SIZE? Yes scores [x+1] = scores [x] scores [x] temp return (displayMeanMedian, No return output "Enter a quiz score" calcMean () input scores [x] sortArray() displayMeanMedian () Stop calcMean () total = 0 Yes x < MAX? No mean = total/MAX Y < COMPS? Yes No return Yes x < COMPS? calcMedian () output name, mean, median return No No total total scores [x] y = y +1 scores [x]> scores [x+1]? Yes x = x + 1 return calcMean () median (scores (MAX/2) scores (MAX/2) -1])/2 return swap()
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

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