Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
College aantekeningen

Class notes DSA

Beoordeling
-
Verkocht
-
Pagina's
1
Geüpload op
12-03-2023
Geschreven in
2022/2023

we will understand the Basics of Programming, we will create a lot of Flowcharts, also try some PseudoCodes.

Instelling
Vak

Voorbeeld van de inhoud

Intro to Programming & Flowcharts
We will learn about flow charts, pseudocode and programming languages. We will also learn
about programming languages and why do we use them. After this, we will write our program.
This will be our flow whenever we will solve any problem.
First question, then given values, then approach and at last we will code it. Bhaiya explains what
is a flowchart is a diagramatic approach of that approach known as flow chart. The flow chart
constitute various components, connected with each other Bhaiyan says. He says that from where
a program is starting we have a component called terminator. Terminator is used to show the
start and end start of the program.
Next block is a simple rectangle, which shows a process. Bhaiya explains how to make a
flowchart for the sum of 2 numbers. He says the pseudocode as a whole is a generic way of
representing logic. The flow of a flow chart is the same as the flow of the components of the
flow chart. We use parallelogram to show the input/output of the program.
This Passage provides insights into programming languages, flow charts,, and pseudocode.. The
author discusses how these tools can be used to solve problems.. He also provides an example
problem and the solution he comes up with in pseudocode. Finally, he explains how to convert
these solutions into executable code. The flowchart in this passage shows the process of a
program, including the various components that are used to create it.. The first component is the
terminator, which shows the start and end of the program... The next block is a simple rectangle,
which shows a process.. The next block is a diamond-shaped block, which is used for decision
making.. The next block is an arrow, which connects the previous two blocks.. The last
component is a circle, which is used to connect the previous three blocks.. The code block that
starts. The program will take in two numbers, A and B, and will print out their sum as 5 and 10.
After that, the program will end..
We want to make a flowchart for calculating simple interest This is the formula for simple
interest You must have studied it in your school We started our program from this start block I
do n't know p , r , t , so I need to take them as inputs first So I asked user to give me the values
for p, r and t So now I have P , R and T So I made this rectangular block for the calculation part
Here I wrote this formula After finding this answer in the above calculation , I have to print the
output too So here I will print output with this block print SI and then we will end this program
We started the program , took a , b as input then we checked whether a is less than b or not. If a
< b print `` YES '' else print `` NO '' and its done Simple You just have to write in english what
you are thinking and it is called pseudocode. If any number has 2 as its factor , then it is even
number or ODD number. We have to check a condition that whether N is ODD or EVEN , so we
will make one block for this condition Here is the decision making block , Is N % 2 = 0 ? We
will get 2 outputs , YES or NO If output is YES, then it is an EVEN number , so I printed ODD
Else, I will print ODD Then I made this end block and ended this program something like this
This is the flowchart for EVEN , ODD Got it right ? Bhaiya, why are you putting this inverting
commas again and again , you will come to know soon.

Geschreven voor

Vak

Documentinformatie

Geüpload op
12 maart 2023
Aantal pagina's
1
Geschreven in
2022/2023
Type
College aantekeningen
Docent(en)
Trivendra raghuwanshi
Bevat
Alle colleges

Onderwerpen

$8.99
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
trivendraraghuwanshi

Maak kennis met de verkoper

Seller avatar
trivendraraghuwanshi Christ University
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
-
Lid sinds
3 jaar
Aantal volgers
0
Documenten
2
Laatst verkocht
-

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen