Question: I need this pseudocode coded into C + + I keep coming up with errors Pseudocode PLD Chapter 6 # 2 a & 2 b
I need this pseudocode coded into C I keep coming up with errors
Pseudocode PLD Chapter #a & b pg
Start
Declarations
num SIZE Preudocode PLD Chapter a b b Pg
f Start
f Deelarkeons
f blum SIZE
f num numbers SIZE
f ulum value
ff num couatex D
fmathrm num total
t ulum average
ff num dEFzondvg
ff nuM SENTINEL
lf
f outpus "Plsase anter a positive numbers
f input value
f whlle counzer E AND value SENTINEL
ff total total value
nunibers counter value
countex counter
fI counter IQE
f atappet leasee enter a pesieive numier: n
it Inpat value
endit
endwla
fl
I if counter then
f average totslfoounter
f Eor L to counter
l difefromsvg numberbi average
f butpue ; numberslifference fran Average is
diffEromilvg
i entifor
f alae
f output "procesaing incomplete. No valuea in the array."
l enisit
f tOp
num numbersSIZE
num value
num counter
num total
num average
num diffFromAvg
num SENTINEL
output "Please enter a positive number:
input value
while counter SIZE AND value SENTINEL
total total value
numberscounter value
counter counter
if counter SIZE
output "Please enter a positive number:
input value
endif
endwhile
if counter then
average totalcounter
for i to counter
diffFromAvg numbersi average
output "Numberi: numbersi Difference from Average is
diffFromAvg
endfor
else
output "Processing incomplete. No values in the array."
endif
Stop
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
