
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.
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()](https://content.bartleby.com/qna-images/question/37f36609-f6cb-4471-a981-f3cd0262a21d/2b059cae-bada-47c5-8c07-11a90e65a767/e5gj77_thumbnail.png)
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

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 with 1 images

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_forwardWrite a statement that declares a procedure-level one-dimensional array named intorders. The array should contain 15 elements.arrow_forward
Recommended textbooks for you
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning

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

EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT

Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage

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