Question: andvanded math please help its all one question just multiple parts i split it intoDesign an algorithm to compute and output the sum of the

andvanded math please help its all one question just multiple parts i split it intoDesign an algorithm to compute and output the sum of the numbers in the
sequence A(1),A(2),dots,A(n) of n real numbers where n is a positive integer.
Write the algorithm in pseudocode.
Write an algorithm in pseudocode to compute and output the sum of the
squares of the first n positive integers.
For the following algorithms given in pseudocode, describe what each
algorithm does.
a. Begin
S:=0
For k=1tondo
q,S:=S+1k
Output S
End
b. Let n be a positive integer and let A(1),A(2),dots,A(n) be n real
numbers.
Begin
P:=1
k:=0
While k:=k+1 and P:=P*A(k)PJ:=2A:=3A=3J:=7A:=7J:=2A:=5k=1A:=A+1kdo
k:=k+1 and P:=P*A(k)
End
Output P
End
Determine the value of each given variable after the given control
statement is executed.
a.J:=2 and A:=3
If(not(J=5) and A=3) then
J:=7
else
A:=7
b.J:=2 and A:=5
For k=1to7do
A:=A+1
 andvanded math please help its all one question just multiple parts

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!