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 6 #2a & 2b, pg.267
// Start
// Declarations
// num SIZE =12// Preudocode PLD Chapter 642a b 2b, Pg,267
f/ Start
f/) Deelarke5ons
f/ blum SIZE =12
f/ num numbers [SIZE)
//f ulum value =0
f/f num couatex = D
/f}\mathrm{ num total =0
/t ulum average =0
f/f num d\EFzondvg =0
f/f nuM SENTINEL =-1
lf
/f outpus "Plsase anter a positive numbers "
f/ input value
/f whlle ((counzer 912E) AND (value > SENTINEL)\
ff total = total + value
// nunibers [counter]= value
// countex = counter +1
f/\I (counter >3IQE)
//f atappet *leasee enter a pesieive numier: n
it Inpat value
// endit
// endwla114
fl
I/ if (counter >0) then
f/ average = totslfoounter
f/ Eor L =0 to counter -1
l/ difefromsvg = numberb[i]- average
f/ butpue ]; *, numbers[5l,"ifference fran Average is
diffEromilvg
i/) entifor
f/ alae
f/ output "procesaing incomplete. No valuea in the array."
/l) enisit
/f 3tOp
// num numbers[SIZE]
// num value =0
// num counter =0
// num total =0
// num average =0
// num diffFromAvg =0
// num SENTINEL =-1
//
// output "Please enter a positive number: "
// input value
// while ((counter SIZE) AND (value > SENTINEL))
// total = total + value
// numbers[counter]= value
// counter = counter +1
// if (counter > SIZE)
// output "Please enter a positive number: "
// input value
// endif
// endwhile
//
// if (counter >0) then
// average = total/counter
// for i =0 to counter -1
// diffFromAvg = numbers[i]- average
// output "Number[",i,"]: ",numbers[i]," Difference from Average is
",diffFromAvg
// endfor
// else
// output "Processing incomplete. No values in the array."
// endif
// Stop
I need this pseudocode coded into C + + I keep

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!