Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4.2 TrustPilot
logo-home
Notes de cours

If-Else, While loop & Lots of Patterns (Part-1)

Note
-
Vendu
-
Pages
3
Publié le
24-02-2023
Écrit en
2022/2023

In this lecture, we will understand if statement, nested if, if-else block, if-elseif-else block, while loops, will also create a lot of programs and at the end we will try some pattern questions. Interesting thing is when we talk about Patterns, we have made next lecturededicated to pattern questions.

Montrer plus Lire moins
Établissement
Cours








Oups ! Impossible de charger votre document. Réessayez ou contactez le support.

École, étude et sujet

Établissement
Cours

Infos sur le Document

Publié le
24 février 2023
Nombre de pages
3
Écrit en
2022/2023
Type
Notes de cours
Professeur(s)
J
Contient
3

Sujets

Aperçu du contenu

Lecture 1: 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.



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 =
1
$10.49
Accéder à l'intégralité du document:

Garantie de satisfaction à 100%
Disponible immédiatement après paiement
En ligne et en PDF
Tu n'es attaché à rien

Faites connaissance avec le vendeur
Seller avatar
sameerchauhan

Faites connaissance avec le vendeur

Seller avatar
sameerchauhan galgotia
S'abonner Vous devez être connecté afin de suivre les étudiants ou les cours
Vendu
0
Membre depuis
2 année
Nombre de followers
0
Documents
4
Dernière vente
-

0.0

0 revues

5
0
4
0
3
0
2
0
1
0

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions