I need to get the following Pseudocode to run in C++ // Pseudocode PLD Chapter 6 #2a & 2b, pg. 267 // Start // Declarations // num SIZE = 12 // num numbers[SIZE] // num value = 0 // num counter = 0 //...

I need to get the following Pseudocode to run in C++ // Pseudocode PLD Chapter 6 #2a & 2b, pg. 267 // Start // Declarations // num SIZE = 12 // 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 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
Nov 17, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here