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.
Currency is the correct answer
Answer:
see explaination
Explanation:
//selective dev elements by id name
var gradeA = document.querySelector("#GradeA");
var passing = document.querySelector("#Passing");
var learning = document.querySelector("#Learning");
//function showGrades
function showGrades() {
var arr = [];
//converting string to int and inserting into array
arr[0] = parseInt(gradeA.textContent);
arr[1] = parseInt(passing.textContent);
arr[2] = parseInt(learning.textContent);
//creating json blob
var blob = new Blob(new Array(arr), {type:"text/json"});
return blob;
}