Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Resumen

Summary introduction to programing

Puntuación
-
Vendido
-
Páginas
2
Subido en
27-02-2023
Escrito en
2022/2023

it seems that you have been learning about flowcharts, pseudocode, and programming languages. You have also been taught how to create a flowchart, which consists of various components such as a terminator, process blocks, decision blocks, and input/output blocks. Pseudocode is a way to represent logic in a generic way using English-like statements. Programming languages are used to write computer programs, and you have learned about their purpose and importance. You have been given various examples of problems to solve using flowcharts and pseudocode, such as calculating simple interest, checking if a number is even or odd, printing and incrementing numbers, and summing a series of numbers. You have also been assigned homework to write pseudocode for additional problems.

Mostrar más Leer menos
Institución
Grado

Vista previa del contenido

We will learn about flow charts, pseudo code 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 = 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.

We have to print something and then increment too You have to Print
and then increase the printed number too You can see here , we
printed and then increased the numbe by 1 But we do n't know how to
do it How we will increase again and again Let 's rub it You know that
we have to start from 1 and print till 5 So if I give you a number which
starts from 1 to 5, will it work ? Your are like , yes , this is what we
needed So I took a number =1 This is not a input , it is a process , so I
wrote it inside rectangular block. You have to print all the odd numbers
from 1 to N as a part of your homework. The catch is , 1 and N are
inclusive here in the answer should be 15. The solution is easy , you
just have to use less than equal to instead of less than. We know that

Escuela, estudio y materia

Grado

Información del documento

Subido en
27 de febrero de 2023
Número de páginas
2
Escrito en
2022/2023
Tipo
RESUMEN

Temas

$8.49
Accede al documento completo:

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Conoce al vendedor
Seller avatar
sanchit

Conoce al vendedor

Seller avatar
sanchit capilano university
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
-
Miembro desde
3 año
Número de seguidores
0
Documentos
1
Última venta
-

0.0

0 reseñas

5
0
4
0
3
0
2
0
1
0

Documentos populares

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes