Answer: Null Object pattern be useful when the absence of an object can be encapsulated by other alternatives which does not have any have any effect.
Explanation:
public interface Rectangle {
double area();
double surfaceare();
boolean isNull();
}
In the code above we have a function for null object. So in the absence of an object we have encapsulated with a method of null which does not do anything. It simplifies the use of dependencies that can be undefined.
In case of collaborator the NULL object pattern makes use of the existing collaboration instead of defining a new one.
It also enable to abstract the handling of null objects from the client so that internal details of the program are not know to outsiders.
Answer:
total = 0
for i in range(5):
score = int(input("Enter a score: "))
total += score
average = total / 5
print("The average is " + str(average))
Explanation:
*The code is in Python.
Initialize the total as 0
Create a for loop that iterates five times. Inside the loop, ask the user to enter a score. Add the score to the total (cumulative sum)
After the loop, calculate the average, divide the total by 5
Print the average
Answer: hit control key and enter key at the same time.
Explanation:
on the keyboard hold down the control key and enter key.
Answer:
Please find the complete solution in the attached file.
Explanation:
In this question for a complete solution the table file is added please find it.
For this go to cell number O6
In which we modify the formula that is 
After that, press enter at this value is calculated.
Then copy the formula to