c check my work and create pseudocode or flowchart

Hi,

Please,

1- check my work if it is correct.

2. create pseudocode OR flowchart (My Code).