DAY-1   C++ Basic to Advance

DAY-1 C++ Basic to Advance

ยท

2 min read

What I did on Day 1

Today, I will be starting with the language, I already have an idea about this as I know the basics of Python and C. Still I will be starting from the basics as I want to have a strong grip on my basics.

So on day 1, I learned what is a flowchart, what is pseudocode and what is the need to code & what is Compiler.

Flowcharts

It is a visual representation of programs using diagrams and shapes having a fixed meaning.

Every symbol has a different function.

For eg:-

Oval-used to represent the start or end of the flowchart

Parallelogram-used for input and output of the operation

This table will give the function of each symbol.

PseudoCode

It is a set of general instructions without any syntax which is readable and understandable by all even a layman and anyone could get the basic idea of what to do in a code

Difference between Flowchart and PseudoCode with the help of an example

Let's take an example of the sum of two numbers

Flowchart:-

Algorithm:-

Step 1: Start

Step 2: Declare variables a, b, and sum.

Step 3: Read values for a, b.

Step 4: Add a and b and assign the result to a variable sum.

Step 5: Display the sum

Step 6: Stop

I will prefer you to practice some more questions for flowcharts and pseudocode from the internet as it will help you to have a strong grip on the topic and logic process.

Need to Code and What is Compiler

Since we all know that computers can perform calculations and other arithmetic and logical operations better than human beings but we can't give instructions to the computer directly as the computer only understands 0 and 1.

So we write the code in computer-understandable format and then a program converts it into the computer-understandable form i.e. 0 and 1 and this program which converts the code into computer-understandable form is known as Compiler.

This code which is converted into computer-understandable form should be written in a particular format known as syntax and this syntax is different in different programming languages.

Did you find this article valuable?

Support Jaival Bhatia's Blog by becoming a sponsor. Any amount is appreciated!

ย