Question: /NOTE: not all of the pseudocode is here // main module Function sain() 77 Local variables Declare numbers [] // declare array & initialize Declare

 /NOTE: not all of the pseudocode is here // main module
Function sain() 77 Local variables Declare numbers [] // declare array &
initialize Declare high =0 Declare loro Declare average=0 Declare total=0 // Get

/NOTE: not all of the pseudocode is here // main module Function sain() 77 Local variables Declare numbers [] // declare array & initialize Declare high =0 Declare loro Declare average=0 Declare total=0 // Get numbers For index = 0 to 5 // 5 for testing purposes Display "Enter number: Input numbers [index] End For // Get statistics For index = 0 to 5 IE index = 0 Then Set high = numbers [index] Set low numbers Cndex] End IE IE high numbers [index] Then Set high = numbers (index) End If IE low > numbers [index] Then Set low = numbers [index] End If Bet total = total + numbers [index] End For Set average = total index + 1) // multiple ways of executing lne above // Show statistics Call abanstatathigh, low, total, average) End Function main) // The abaratata module shows high, low, average number Function sharestatalInteger high, low, total, average) Display "High number is high Display "Low number is, low Display "Total of numbers is: total Display "Average of numbers is. average End Function hawatata showStats (high, low total average) Display High number is high Display "low number is low main 110 Duplay "Total of numbers is total Constant SIZE = 20 Declare numbers SIZEL high, low, average, total=0 Display Average of numbers is average Set Index 0 End True index ce SIZE - 1 Display "Enter number index +1, Input numbersinde Add 1 to index False Set Index=0 Add 1 to in True False index ce SIZE-1 True Set ofta. numbers indes! Index high numbers index low umbersin False True F Set high- numbensinde Set high numberinde Sellow numbers in Sel average HOLAT/SIZE Set low- hutbesinde low totalrerage End . . . Number Analysis Program Design a program that asks the user to enter a series of 10 numbers. The program should store the numbers in a one-dimensional array and then display the following data: The lowest number in the array The highest number in the array The total of the numbers in the array (accumulator) The average of the numbers in the array Additional Requirements: Do not use the following built-in functions in your Python program: o max(), min(). However, you can use the sum() built-in function. 15 points per built-in function will be deducted from the usage of max() and/or min(). For example, if max() is used, it will result in a 15-point reduction from your score. If both max() and min() are used, it will result in 30 points reduction from your score A minimum of two programmer-defined functions are required. Main and showstats; Note you can rename the function names Passing arguments Do not use global variables or global constants Looping and array processing are required

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 Databases Questions!