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.
15.
Here is a easy way to do it.
The first number's value is 1
The next number's value is 2
And so on you multiple the number before this one by 2
So the next value is 4, after that it's 8, next is 16. And all of this ends at 128 in computers storage and this is a 8 number string which we also call a byte. Now here is the actual trick. You would assign 0-128, 0-64, 1-32, 1-16, 1-8, 1-4, 1-2, 1-1. Now you just add the 1 values not the 0s and so if you add 1+2+4+8 you get 15.
Answer:
The interpretation of the discussion is characterized throughout the explanation portion below.
Explanation:
- A post-mortem investigation, as well widely recognized as the autopsy, has become a post-mortem assessment of that same body. This same goal of some kind of post-mortem should be to investigate what happened.
- Post-mortems have been performed by pathologists (Physicians specializing in considering the mechanisms as well as tends to cause including its illness).
Answer:
Answered below
Explanation:
//Program in Java
class MyInfo{
public static void main (String args []){
myFullName("John", "Doe");
myAgeMajorGPA(20, "Biology", 4.3);
}
public void myFullName(String initialName, String middleName){
System.out.println(initialName);
System.out.print(middleName);
}
public void myAgeMajorGPA(int age, String major, double GPA){
System.out.println(age);
System.out.println(GPA);
System.out.print(major);
}
}
Answer:
Superposition
Explanation:
Quantum units of information also known as qubits or quantum bits are very important in analyzing complex data. They deploy the properties of entanglement and superposition to offer exponentially greater computing power. The concepts of entanglement and superposition are both aspects of quantum phenomena.
Entanglement involves the uniting of two quantum particles, thus ensuring that they are perfectly bonded and would not be torn apart by any amount of distance. Superposition entails that quantum particles such as the digits used in binary calculations can take on different conditions concurrently. So, these two properties help to improve computational power.