Write an algorithm and draw the flowchart for the following ...

Write an algorithm and draw the flowchart for the following ...