SlideShare una empresa de Scribd logo
1 de 5
PROBLEMA
Por ejemplo:
NOTA 1 :
NOTA 2 :
NOTA 3 :
Aprobado
Desaprobado
El promedio es:
El mayores :
Se desea crear un programa que al ingresar 3 notas te indique si el promedio es
APROBADO cuando es mayor o igual a 10.5 y si es DESAPROBADO cuando es
menor a 10.5, y que también nos indique cual es el número mayor.
.
PSEUDOCODIGO
Inicio
S=0 ; MAY = 0
Para I= 1,9 For (i=1≤9; i+1)
Leer nota {=
S= S + Nota}
Si Nota > MAY
May= Nota
FIN SI
FIN PARA
PROM = S/9
SI PROM ≥10.5
Imprimir”Aprobado”
Sino
Imprimir ”Desaprobado”
Fin si
Imprimir “Mayor”, May
Fin
DIAGRAMA DE FLUJO
NO
S = 0 ,May -0
Para I = 1…9
S = S + Nota I
Prom≥1
0.5
May = Nota I
Promedio = S/9
Nota
I>May
Impr. “Aprob.” Impr. “Desap.”
“Nota Mayor”
MAY
FIN
INICIO
Ejercicio 2
Ejercicio 2

Más contenido relacionado

Destacado

Kingsleyyyy presentation 212
Kingsleyyyy presentation 212Kingsleyyyy presentation 212
Kingsleyyyy presentation 212slitzkid507
 
How To Get Big Biceps - The Basics
How To Get Big Biceps - The BasicsHow To Get Big Biceps - The Basics
How To Get Big Biceps - The Basicsgetyoursixpackabs
 
Stana Tonterias
Stana TonteriasStana Tonterias
Stana Tonteriasalexiita
 
social media for lawyers - a how to guide
social media for lawyers - a how to guidesocial media for lawyers - a how to guide
social media for lawyers - a how to guideJustinRFrench
 
Universal music group
Universal music groupUniversal music group
Universal music groupMartin Watts
 
Computer Architecture: A quantitative approach - Cap4 - Section 6
Computer Architecture: A quantitative approach - Cap4 - Section 6Computer Architecture: A quantitative approach - Cap4 - Section 6
Computer Architecture: A quantitative approach - Cap4 - Section 6Marcelo Arbore
 
Luan van tot nghiep quan tri kinh doanh quoc te (36).doc
Luan van tot nghiep quan tri kinh doanh quoc te (36).docLuan van tot nghiep quan tri kinh doanh quoc te (36).doc
Luan van tot nghiep quan tri kinh doanh quoc te (36).docNguyễn Công Huy
 
Biografía de Rosalía de Castro
Biografía de Rosalía de CastroBiografía de Rosalía de Castro
Biografía de Rosalía de Castroceipvilaxoan
 
Research: Audience
Research: AudienceResearch: Audience
Research: Audiencerebecca
 
Arquiteturas Java EE no Google App Engine
Arquiteturas Java EE no Google App EngineArquiteturas Java EE no Google App Engine
Arquiteturas Java EE no Google App EngineEder Magalhães
 
Digitalt koncept - Svenska Tecknare
Digitalt koncept - Svenska TecknareDigitalt koncept - Svenska Tecknare
Digitalt koncept - Svenska TecknareKlas Fjärstedt
 
Belegarbeit 1
Belegarbeit 1Belegarbeit 1
Belegarbeit 1bergschaf
 
Crime, punishment and prejudice
Crime, punishment and prejudiceCrime, punishment and prejudice
Crime, punishment and prejudicesevans-idaho
 
Location/Call Sheetate
Location/Call SheetateLocation/Call Sheetate
Location/Call Sheetatemadeleinemason
 

Destacado (20)

Kingsleyyyy presentation 212
Kingsleyyyy presentation 212Kingsleyyyy presentation 212
Kingsleyyyy presentation 212
 
Group Pitch
Group PitchGroup Pitch
Group Pitch
 
How To Get Big Biceps - The Basics
How To Get Big Biceps - The BasicsHow To Get Big Biceps - The Basics
How To Get Big Biceps - The Basics
 
Stana Tonterias
Stana TonteriasStana Tonterias
Stana Tonterias
 
Cd Collage
Cd CollageCd Collage
Cd Collage
 
Tessellations
TessellationsTessellations
Tessellations
 
social media for lawyers - a how to guide
social media for lawyers - a how to guidesocial media for lawyers - a how to guide
social media for lawyers - a how to guide
 
Universal music group
Universal music groupUniversal music group
Universal music group
 
Comunicación 2.0
Comunicación 2.0Comunicación 2.0
Comunicación 2.0
 
Computer Architecture: A quantitative approach - Cap4 - Section 6
Computer Architecture: A quantitative approach - Cap4 - Section 6Computer Architecture: A quantitative approach - Cap4 - Section 6
Computer Architecture: A quantitative approach - Cap4 - Section 6
 
Luan van tot nghiep quan tri kinh doanh quoc te (36).doc
Luan van tot nghiep quan tri kinh doanh quoc te (36).docLuan van tot nghiep quan tri kinh doanh quoc te (36).doc
Luan van tot nghiep quan tri kinh doanh quoc te (36).doc
 
Biografía de Rosalía de Castro
Biografía de Rosalía de CastroBiografía de Rosalía de Castro
Biografía de Rosalía de Castro
 
Question 3
Question 3Question 3
Question 3
 
Research: Audience
Research: AudienceResearch: Audience
Research: Audience
 
Arquiteturas Java EE no Google App Engine
Arquiteturas Java EE no Google App EngineArquiteturas Java EE no Google App Engine
Arquiteturas Java EE no Google App Engine
 
Digitalt koncept - Svenska Tecknare
Digitalt koncept - Svenska TecknareDigitalt koncept - Svenska Tecknare
Digitalt koncept - Svenska Tecknare
 
Belegarbeit 1
Belegarbeit 1Belegarbeit 1
Belegarbeit 1
 
Crime, punishment and prejudice
Crime, punishment and prejudiceCrime, punishment and prejudice
Crime, punishment and prejudice
 
Animal Cards
Animal  CardsAnimal  Cards
Animal Cards
 
Location/Call Sheetate
Location/Call SheetateLocation/Call Sheetate
Location/Call Sheetate
 

Más de alithu1

Ejercicio 12
Ejercicio 12Ejercicio 12
Ejercicio 12alithu1
 
11 arreglos....
11 arreglos....11 arreglos....
11 arreglos....alithu1
 
10 apuntadores...
10 apuntadores...10 apuntadores...
10 apuntadores...alithu1
 
9 funciones...
9 funciones...9 funciones...
9 funciones...alithu1
 
8 estructuras de control repetitivas...
8 estructuras de control repetitivas...8 estructuras de control repetitivas...
8 estructuras de control repetitivas...alithu1
 
7 estructuras de control selectivas
7 estructuras de control selectivas7 estructuras de control selectivas
7 estructuras de control selectivasalithu1
 
6 lenguajec++
6 lenguajec++6 lenguajec++
6 lenguajec++alithu1
 
5 teoria de algoritmos...
5 teoria de algoritmos...5 teoria de algoritmos...
5 teoria de algoritmos...alithu1
 
4 lenguajes de programacion.. (1)
4 lenguajes de programacion.. (1)4 lenguajes de programacion.. (1)
4 lenguajes de programacion.. (1)alithu1
 
3 paradigmas
3 paradigmas3 paradigmas
3 paradigmasalithu1
 
Ejercicio 12
Ejercicio 12Ejercicio 12
Ejercicio 12alithu1
 
2 manipulacion de datos..
2 manipulacion de datos..2 manipulacion de datos..
2 manipulacion de datos..alithu1
 
1 almacenamiento de datos.....
1 almacenamiento de datos.....1 almacenamiento de datos.....
1 almacenamiento de datos.....alithu1
 
Ejercicio 10
Ejercicio 10Ejercicio 10
Ejercicio 10alithu1
 
Ejercicio 9
Ejercicio 9Ejercicio 9
Ejercicio 9alithu1
 
Ejercicio 10
Ejercicio 10Ejercicio 10
Ejercicio 10alithu1
 
Ejercicio 9
Ejercicio 9Ejercicio 9
Ejercicio 9alithu1
 
Examen parcial
Examen parcialExamen parcial
Examen parcialalithu1
 
Ejercicio 7.
Ejercicio 7.Ejercicio 7.
Ejercicio 7.alithu1
 
Ejercicio 5
Ejercicio 5Ejercicio 5
Ejercicio 5alithu1
 

Más de alithu1 (20)

Ejercicio 12
Ejercicio 12Ejercicio 12
Ejercicio 12
 
11 arreglos....
11 arreglos....11 arreglos....
11 arreglos....
 
10 apuntadores...
10 apuntadores...10 apuntadores...
10 apuntadores...
 
9 funciones...
9 funciones...9 funciones...
9 funciones...
 
8 estructuras de control repetitivas...
8 estructuras de control repetitivas...8 estructuras de control repetitivas...
8 estructuras de control repetitivas...
 
7 estructuras de control selectivas
7 estructuras de control selectivas7 estructuras de control selectivas
7 estructuras de control selectivas
 
6 lenguajec++
6 lenguajec++6 lenguajec++
6 lenguajec++
 
5 teoria de algoritmos...
5 teoria de algoritmos...5 teoria de algoritmos...
5 teoria de algoritmos...
 
4 lenguajes de programacion.. (1)
4 lenguajes de programacion.. (1)4 lenguajes de programacion.. (1)
4 lenguajes de programacion.. (1)
 
3 paradigmas
3 paradigmas3 paradigmas
3 paradigmas
 
Ejercicio 12
Ejercicio 12Ejercicio 12
Ejercicio 12
 
2 manipulacion de datos..
2 manipulacion de datos..2 manipulacion de datos..
2 manipulacion de datos..
 
1 almacenamiento de datos.....
1 almacenamiento de datos.....1 almacenamiento de datos.....
1 almacenamiento de datos.....
 
Ejercicio 10
Ejercicio 10Ejercicio 10
Ejercicio 10
 
Ejercicio 9
Ejercicio 9Ejercicio 9
Ejercicio 9
 
Ejercicio 10
Ejercicio 10Ejercicio 10
Ejercicio 10
 
Ejercicio 9
Ejercicio 9Ejercicio 9
Ejercicio 9
 
Examen parcial
Examen parcialExamen parcial
Examen parcial
 
Ejercicio 7.
Ejercicio 7.Ejercicio 7.
Ejercicio 7.
 
Ejercicio 5
Ejercicio 5Ejercicio 5
Ejercicio 5
 

Ejercicio 2

  • 1. PROBLEMA Por ejemplo: NOTA 1 : NOTA 2 : NOTA 3 : Aprobado Desaprobado El promedio es: El mayores : Se desea crear un programa que al ingresar 3 notas te indique si el promedio es APROBADO cuando es mayor o igual a 10.5 y si es DESAPROBADO cuando es menor a 10.5, y que también nos indique cual es el número mayor. .
  • 2. PSEUDOCODIGO Inicio S=0 ; MAY = 0 Para I= 1,9 For (i=1≤9; i+1) Leer nota {= S= S + Nota} Si Nota > MAY May= Nota FIN SI FIN PARA PROM = S/9 SI PROM ≥10.5 Imprimir”Aprobado” Sino Imprimir ”Desaprobado” Fin si Imprimir “Mayor”, May Fin
  • 3. DIAGRAMA DE FLUJO NO S = 0 ,May -0 Para I = 1…9 S = S + Nota I Prom≥1 0.5 May = Nota I Promedio = S/9 Nota I>May Impr. “Aprob.” Impr. “Desap.” “Nota Mayor” MAY FIN INICIO