Find the best solutions to your questions at Westonci.ca, the premier Q&A platform with a community of knowledgeable experts. Our platform provides a seamless experience for finding precise answers from a network of experienced professionals. Connect with a community of professionals ready to help you find accurate solutions to your questions quickly and efficiently.
Sagot :
Answer:
DECLARE number
SET total to 0
SET average to 0
FOR i=1 to 10
SET number to a random number between 1 to 12
COMPUTE total += number
END FOR
COMPUTE average = total / 10
PRINT average
Explanation:
Declare number
Initialize the total and average
Create a for loop that iterates 10 times. Inside the loop, generate a random number between 1 to 12 and set it to the number variable
Add the number to the total (cumulative sum)
When the loop is done, calculate the average - divide the total by 10
Print the average
Thanks for stopping by. We strive to provide the best answers for all your questions. See you again soon. We appreciate your visit. Our platform is always here to offer accurate and reliable answers. Return anytime. Thank you for trusting Westonci.ca. Don't forget to revisit us for more accurate and insightful answers.