Computer Science, asked by subbulakshmis327, 3 months ago

flowchart to find sum of squares of N Natural number​

Answers

Answered by tushard82
4

Explanation:

Modernize IT without any compromise - Dell PowerEdge servers.

Fully integrated server platform to deliver peerless security, manageability, and scalability.

Read More

4 Answers

Calvin Campbell, B.Sc. Computer Science & Mathematics, University of the West Indies (1984)

Updated November 3, 2019

I do not have the drawing tool to do this in flowchart, but here is the logic:

Start

SumNSq=0

N = 1

Adder: SumNSq = SumNSq + N*N

N < 50?

Yes:

N = N+1

Go to back to Adder:

No:

Print SumNSq

End

How it works:

Start: (Begin the process.)

Initialize the sum of the squares of integers, SumNSq to 0

Set the first integer,N to 1

Add the square of the current value of N (= N*N) to the current sum, SumNSq

Check if N less than 50:

If yes,

add 1 to the current value of N, and go back to step labeled Adder:

If no,

Print the value of SumNSq which should now be 1^2 + 2^2 +…. + 50^2 = 42925

End: (Complete the process)

Good luck!

EDIT:

Here is a flowchart:

Answered by vishakasaxenasl
0

Answer:

The attached flowchart illustrates finding the sum of squares of N natural number.

Explanation:

A flowchart is a graphical representation of steps to solve a problem. Flowcharts are used in many fields including programming, analysis, data visualization, etc. It uses various symbols to show the whole process.

The main advantage of using the flowchart is the reduction of complexity of the problem and they are easy to understand too.

The given problem can be solved as per the following flowchart steps:

#SPJ2

Attachments:
Similar questions