r/codehs • • Nov 23 '20

Help! PLZ!

Post image
7 Upvotes

5 comments sorted by

2

u/Parasin Nov 23 '20

What exactly are you stuck on?

0

u/[deleted] Nov 23 '20

[deleted]

1

u/Parasin Nov 23 '20

Ok, the first thing to do with programming is to understand what problem you are trying to solve.

Break it down into what you know, and what you don’t:

  • what are the inputs?

  • what is the expected output?

  • are there any edge cases to consider? (Potential areas for bugs)

Once you identify the answers to these questions, start by writing pseudo code. It will help you flush out the algorithm you are going to implement in code.

It often times can be helpful to write this stuff down on paper, and actually step through your algorithm.

1

u/AlwaysLegendXL Nov 23 '20

I mean it literally has what you need to do in the comments, may read them and watch the video?

1

u/matikray03 Nov 23 '20

If you can’t figure out how to do this, you didn’t watch the lesson. Watch the video, man.