Answer:
Explanation:dhjyfxdhnjfddhjnvcdfg
Answer:
Option 2 is correct.
Explanation:
Option 2 is correct because most of the components used in laptop is far different from Desktops. They are not able to fix in desktops. They are designed specially for laptops.
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
Answer:
True
Explanation:
Run-time parameters passed to a function allow you to use different values each time the function is called. Let us consider an example:
int add(int a,int b){
return a+b;
}
Now we can execute the same function with different parameters at runtime:
add(3,4) returns 7.
add(1,2) return 3.
add (10,1) return 11.
During each invocation , the formal function parameters are substituted by actual runtime values and the function code is executed.