flowchart and initial program with pseuodocode