ruju11235 / csp

Small programs using the JavaScript syntax. I'm just starting to learn :)
0 stars 1 forks source link

Think of a programming problem on your own and write a program to solve it #12

Open kedarmhaswade opened 1 week ago

kedarmhaswade commented 1 week ago

We have been learning the computer science fundamentals for about a couple of months. I am generally happy with what you have done so far! Keep it up.

We once discussed that programming is a way of thinking. We need to develop this way of thinking by doing. A program but one outcome of programming. We need to understand something well enough to make a computer follow it and it yields us a working program.

Abstraction is a key concept, not just in computer science, but all science. It is at the core of computer science. For instance, in algebra, a polynomial is

image

whereas, in programming, a polynomial can be simply realized as an array of real numbers as you have seen in #11!

We learned about data: its types, value, and name. We looked at essential data types like number, boolean, and string. We also looked at various encodings. We understood arrays (lists). We learned about constructs like if-else, repeat-n-times, repeat-until-some-condition-is-false etc. We explored the concept of functions: iterative and recursive. We learned the basic syntax of JavaScript.

You have covered a lot of conceptual ground! You solved several programming problems created as GitHub Issues just like this one. That is how we combine the theory and good practice.

This GitHub Issue wants you to review what you have done so far and then think of a programming problem of your own. Then write a program to solve that problem: