Answer:
An array is a data structure that contains a group of elements. Typically these elements are all of the same data type, such as an integer or string. Arrays are commonly used in computer programs to organize data so that a related set of values can be easily sorted or searched.
Pseudocode
<span>
Start
<span>
input myNumber
<span>
set myAnswer = myNumber / 2
output myAnswer
<span>
stop
<span>Pseudocode is a computer programming language that resembles plain English
and compiled or process into the computer. It explains the solution of the problem.
Sometimes used as a detailed step by step process in developing a program</span></span></span></span></span>
Answer:
Information
Explanation:
Project managers used to be common only in the field of information technology.
Answer:
weights = []
total = 0
max = 0
for i in range(5):
weight = float(input("Enter weight " + str(i+1) + ": "))
weights.append(weight)
total += weights[i]
if weights[i] > max:
max = weights[i]
average = total / 5
print("Your entered: " + str(weights))
print("Total weight: " + str(total))
print("Average weight: " + str(average))
print("Max weight: " + str(max))
Explanation:
Initialize the variables
Create a for loop that iterates 5 times
Get the values from the user
Put them inside the array
Calculate the total by adding each value to the total
Calculate the max value by comparing each value
When the loop is done, find the average - divide the total by 5
Print the results