Answer:
The algorithm:
Input days
sum = 0
for i = 1 to
input text
sum = sum + text
end for
average = sum/days
print average
The program in pascal:
var days, sum, text, i:integer;
var average : real;
Begin
write ('Days: '); readln(days);
sum:=0;
for i := 1 to do
write ('Text: '); readln(text);
sum:=sum+text;
end;
average := (sum/days);
writeln ('The average text is' , average);
End.
Explanation:
This declares all variables
var days, sum, text, i:integer;
var average : real;
This begins the program
Begin
This gets the number of days from the user
write ('Days: '); readln(days);
Initialize sum to 0
sum:=0;
This iterates through the days
for i := 1 to do begin
This gets the text for each day
write ('Text: '); readln(text);
This sums up the texts
sum:=sum+text;
End loop
end;
Calculate average
average := (sum/days);
Print average
writeln ('The average text is' , average);
End program
End.
Answer:
a. connect ----------- a network.
Explanation:
Middleware sits in between the front end and the back end. The back end can be like a database residing on the server, which can be on the cloud or at any computer systems across the network, however, it is always on the server, and the front end or the client request is on the user's computer. Hence, it connects the processes running on different computer systems across the network. Hence, Option A is correct.
So it does not connect a computer system to a network, and nor does it provide the best business practices to ERP Systems, and it does not integrate the computer's operating system and its applications as well. The last one is application software like a word processor.