SlideShare ist ein Scribd-Unternehmen logo
1 von 3
Downloaden Sie, um offline zu lesen
UNIVERSIDAD FERMÍN TORO
SEDE CABUDARE, EDO. LARA
INTRODUCCIÓN A LA COMPUTACIÓN – SAIA C
ESTUDIANTE: SÁNCHEZ, JULIO
C.I.: 25.148.764
NOVIEMBRE, 2015
Ejercicios propuestos
Para cada uno de los enunciados que se presentan a continuación elabore el algoritmo
respectivo:
1. Diseñe un algoritmo que reciba como entrada el número de cedula, el nombre y apellido
de una persona y su profesión y los imprima por pantalla (Valor 1%)
ALGORITMO DATOS:
VARIABLES;
N-A, PROFESIÓN=ALFANUMÉRICO;
N-CEDULA=ENTERO;
INICIO
IMPRIMIR (¨ESCRIBA NOMBRE Y APELLIDO:¨);
LEER (¨N-A¨);
IMPRIMIR (¨ESCRIBA PROFESIÓN:¨);
LEER (¨PROFESIÓN¨);
IMPRIMIR (¨NÚMERO DE CEDULA¨);
LEER (¨N-CEDULA¨);
IMPRIMIR (¨N-A¨);
IMPRIMIR (¨PROFESIÓN¨);
IMPRIMIR (¨N-CEDULA¨);
FIN
2. Diseñe un algoritmo que pida por teclado dos números enteros y muestre su suma, resta,
multiplicación y división por pantalla además de los números leídos. (Valor 1%)
ALGORITMO (OPERACIONES-MATEMÁTICAS)
VARIABLES;
A1, A2, RESULTADO, SUM, REST, MULT, DIVI=ENTEROS
INICIO
IMPRIMIR (¨INTRODUZCA EL PRIMER NÚMERO ENTERO:¨);
LEER (¨A1¨);
IMPRIMIR (¨INTRODUZCA SEGUNDO NÚMERO ENTERO¨);
LEER (¨A2¨);
MULT=A1*A2
SUM=A1+A2
DIVI=A1/A2
REST=A1-A2
IMPRIMIR (¨RESULTADO DE LA SUMA:,SUM¨);
IMPRIMIR (¨RESULTADO DE LA RESTA:,REST¨);
IMPRIMIR (¨RESULTADO DE LA MULTIPLICAION:,MULT¨);
IMPRIMIR (¨RESULTADO DE LA DIVISION:,DIVI¨);
FIN
3. A un trabajador le pagan según sus horas trabajadas más una tarifa de pagos por horas. Si
la cantidad de horas trabajadas es superior a 40, la tarifa se incrementa en un 50% para
las horas extras (considerando que cada hora extra se contabiliza después de las 40 horas
de la jornada normal). Diseñe un algoritmo para calcular el salario del trabajador; dadas
las horas trabajadas y la tarifa (Valor 1%)
ALGORITMO SALARIO_DEL_TRABAJADOR
VARIABLES;
HORAS_T, TARIFA, SUELDO_T, HORAS_EX, TARIFA_EX=REALES
INICIO
IMPRIMIR (¨INTRODUZCA HORAS TRABAJADAS: HORAS_T¨);
LEER (¨HORAS_T:¨);
IMPRIMIR (¨INTRODUZCA TARIFA: TARIFA¨);
LEER (¨TARIFA¨);
SI HORAS_T > 40 ENTONCES
HORAS_EX = HORAS_T-40
TARIFA_EX = TARIFA + 0.50*TARIFA
SUELDO_T = HORAS_EX * TARIFA_EX +40*TARIFA
SINO
SUELDO_T = HORAS_T*TARIFA
FIN SI
IMPRIMIR (¨INTRODUZCA SALARIO: SUELDO_T¨);
FIN

Weitere ähnliche Inhalte

Kürzlich hochgeladen

NUEVAS DIAPOSITIVAS POSGRADO Gestion Publica.pdf
NUEVAS DIAPOSITIVAS POSGRADO Gestion Publica.pdfNUEVAS DIAPOSITIVAS POSGRADO Gestion Publica.pdf
NUEVAS DIAPOSITIVAS POSGRADO Gestion Publica.pdf
UPTAIDELTACHIRA
 
Concepto y definición de tipos de Datos Abstractos en c++.pptx
Concepto y definición de tipos de Datos Abstractos en c++.pptxConcepto y definición de tipos de Datos Abstractos en c++.pptx
Concepto y definición de tipos de Datos Abstractos en c++.pptx
Fernando Solis
 
6°_GRADO_-_MAYO_06 para sexto grado de primaria
6°_GRADO_-_MAYO_06 para sexto grado de primaria6°_GRADO_-_MAYO_06 para sexto grado de primaria
6°_GRADO_-_MAYO_06 para sexto grado de primaria
Wilian24
 
TEMA 14.DERIVACIONES ECONÓMICAS, SOCIALES Y POLÍTICAS DEL PROCESO DE INTEGRAC...
TEMA 14.DERIVACIONES ECONÓMICAS, SOCIALES Y POLÍTICAS DEL PROCESO DE INTEGRAC...TEMA 14.DERIVACIONES ECONÓMICAS, SOCIALES Y POLÍTICAS DEL PROCESO DE INTEGRAC...
TEMA 14.DERIVACIONES ECONÓMICAS, SOCIALES Y POLÍTICAS DEL PROCESO DE INTEGRAC...
jlorentemartos
 

Kürzlich hochgeladen (20)

NUEVAS DIAPOSITIVAS POSGRADO Gestion Publica.pdf
NUEVAS DIAPOSITIVAS POSGRADO Gestion Publica.pdfNUEVAS DIAPOSITIVAS POSGRADO Gestion Publica.pdf
NUEVAS DIAPOSITIVAS POSGRADO Gestion Publica.pdf
 
Interpretación de cortes geológicos 2024
Interpretación de cortes geológicos 2024Interpretación de cortes geológicos 2024
Interpretación de cortes geológicos 2024
 
ACRÓNIMO DE PARÍS PARA SU OLIMPIADA 2024. Por JAVIER SOLIS NOYOLA
ACRÓNIMO DE PARÍS PARA SU OLIMPIADA 2024. Por JAVIER SOLIS NOYOLAACRÓNIMO DE PARÍS PARA SU OLIMPIADA 2024. Por JAVIER SOLIS NOYOLA
ACRÓNIMO DE PARÍS PARA SU OLIMPIADA 2024. Por JAVIER SOLIS NOYOLA
 
EL HABITO DEL AHORRO en tu idea emprendedora22-04-24.pptx
EL HABITO DEL AHORRO en tu idea emprendedora22-04-24.pptxEL HABITO DEL AHORRO en tu idea emprendedora22-04-24.pptx
EL HABITO DEL AHORRO en tu idea emprendedora22-04-24.pptx
 
OCTAVO SEGUNDO PERIODO. EMPRENDIEMIENTO VS
OCTAVO SEGUNDO PERIODO. EMPRENDIEMIENTO VSOCTAVO SEGUNDO PERIODO. EMPRENDIEMIENTO VS
OCTAVO SEGUNDO PERIODO. EMPRENDIEMIENTO VS
 
Lecciones 05 Esc. Sabática. Fe contra todo pronóstico.
Lecciones 05 Esc. Sabática. Fe contra todo pronóstico.Lecciones 05 Esc. Sabática. Fe contra todo pronóstico.
Lecciones 05 Esc. Sabática. Fe contra todo pronóstico.
 
Supuestos_prácticos_funciones.docx
Supuestos_prácticos_funciones.docxSupuestos_prácticos_funciones.docx
Supuestos_prácticos_funciones.docx
 
semana 4 9NO Estudios sociales.pptxnnnn
semana 4  9NO Estudios sociales.pptxnnnnsemana 4  9NO Estudios sociales.pptxnnnn
semana 4 9NO Estudios sociales.pptxnnnn
 
Feliz Día de la Madre - 5 de Mayo, 2024.pdf
Feliz Día de la Madre - 5 de Mayo, 2024.pdfFeliz Día de la Madre - 5 de Mayo, 2024.pdf
Feliz Día de la Madre - 5 de Mayo, 2024.pdf
 
Biografía de Charles Coulomb física .pdf
Biografía de Charles Coulomb física .pdfBiografía de Charles Coulomb física .pdf
Biografía de Charles Coulomb física .pdf
 
Concepto y definición de tipos de Datos Abstractos en c++.pptx
Concepto y definición de tipos de Datos Abstractos en c++.pptxConcepto y definición de tipos de Datos Abstractos en c++.pptx
Concepto y definición de tipos de Datos Abstractos en c++.pptx
 
Infografía EE con pie del 2023 (3)-1.pdf
Infografía EE con pie del 2023 (3)-1.pdfInfografía EE con pie del 2023 (3)-1.pdf
Infografía EE con pie del 2023 (3)-1.pdf
 
La Sostenibilidad Corporativa. Administración Ambiental
La Sostenibilidad Corporativa. Administración AmbientalLa Sostenibilidad Corporativa. Administración Ambiental
La Sostenibilidad Corporativa. Administración Ambiental
 
6°_GRADO_-_MAYO_06 para sexto grado de primaria
6°_GRADO_-_MAYO_06 para sexto grado de primaria6°_GRADO_-_MAYO_06 para sexto grado de primaria
6°_GRADO_-_MAYO_06 para sexto grado de primaria
 
TEMA 14.DERIVACIONES ECONÓMICAS, SOCIALES Y POLÍTICAS DEL PROCESO DE INTEGRAC...
TEMA 14.DERIVACIONES ECONÓMICAS, SOCIALES Y POLÍTICAS DEL PROCESO DE INTEGRAC...TEMA 14.DERIVACIONES ECONÓMICAS, SOCIALES Y POLÍTICAS DEL PROCESO DE INTEGRAC...
TEMA 14.DERIVACIONES ECONÓMICAS, SOCIALES Y POLÍTICAS DEL PROCESO DE INTEGRAC...
 
Tema 10. Dinámica y funciones de la Atmosfera 2024
Tema 10. Dinámica y funciones de la Atmosfera 2024Tema 10. Dinámica y funciones de la Atmosfera 2024
Tema 10. Dinámica y funciones de la Atmosfera 2024
 
SESION DE PERSONAL SOCIAL. La convivencia en familia 22-04-24 -.doc
SESION DE PERSONAL SOCIAL.  La convivencia en familia 22-04-24  -.docSESION DE PERSONAL SOCIAL.  La convivencia en familia 22-04-24  -.doc
SESION DE PERSONAL SOCIAL. La convivencia en familia 22-04-24 -.doc
 
ACERTIJO DE POSICIÓN DE CORREDORES EN LA OLIMPIADA. Por JAVIER SOLIS NOYOLA
ACERTIJO DE POSICIÓN DE CORREDORES EN LA OLIMPIADA. Por JAVIER SOLIS NOYOLAACERTIJO DE POSICIÓN DE CORREDORES EN LA OLIMPIADA. Por JAVIER SOLIS NOYOLA
ACERTIJO DE POSICIÓN DE CORREDORES EN LA OLIMPIADA. Por JAVIER SOLIS NOYOLA
 
SEXTO SEGUNDO PERIODO EMPRENDIMIENTO.pptx
SEXTO SEGUNDO PERIODO EMPRENDIMIENTO.pptxSEXTO SEGUNDO PERIODO EMPRENDIMIENTO.pptx
SEXTO SEGUNDO PERIODO EMPRENDIMIENTO.pptx
 
BIOMETANO SÍ, PERO NO ASÍ. LA NUEVA BURBUJA ENERGÉTICA
BIOMETANO SÍ, PERO NO ASÍ. LA NUEVA BURBUJA ENERGÉTICABIOMETANO SÍ, PERO NO ASÍ. LA NUEVA BURBUJA ENERGÉTICA
BIOMETANO SÍ, PERO NO ASÍ. LA NUEVA BURBUJA ENERGÉTICA
 

Empfohlen

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Empfohlen (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

Algoritmos Secuenciales

  • 1. UNIVERSIDAD FERMÍN TORO SEDE CABUDARE, EDO. LARA INTRODUCCIÓN A LA COMPUTACIÓN – SAIA C ESTUDIANTE: SÁNCHEZ, JULIO C.I.: 25.148.764 NOVIEMBRE, 2015
  • 2. Ejercicios propuestos Para cada uno de los enunciados que se presentan a continuación elabore el algoritmo respectivo: 1. Diseñe un algoritmo que reciba como entrada el número de cedula, el nombre y apellido de una persona y su profesión y los imprima por pantalla (Valor 1%) ALGORITMO DATOS: VARIABLES; N-A, PROFESIÓN=ALFANUMÉRICO; N-CEDULA=ENTERO; INICIO IMPRIMIR (¨ESCRIBA NOMBRE Y APELLIDO:¨); LEER (¨N-A¨); IMPRIMIR (¨ESCRIBA PROFESIÓN:¨); LEER (¨PROFESIÓN¨); IMPRIMIR (¨NÚMERO DE CEDULA¨); LEER (¨N-CEDULA¨); IMPRIMIR (¨N-A¨); IMPRIMIR (¨PROFESIÓN¨); IMPRIMIR (¨N-CEDULA¨); FIN 2. Diseñe un algoritmo que pida por teclado dos números enteros y muestre su suma, resta, multiplicación y división por pantalla además de los números leídos. (Valor 1%) ALGORITMO (OPERACIONES-MATEMÁTICAS) VARIABLES; A1, A2, RESULTADO, SUM, REST, MULT, DIVI=ENTEROS INICIO IMPRIMIR (¨INTRODUZCA EL PRIMER NÚMERO ENTERO:¨); LEER (¨A1¨); IMPRIMIR (¨INTRODUZCA SEGUNDO NÚMERO ENTERO¨); LEER (¨A2¨); MULT=A1*A2 SUM=A1+A2 DIVI=A1/A2 REST=A1-A2 IMPRIMIR (¨RESULTADO DE LA SUMA:,SUM¨); IMPRIMIR (¨RESULTADO DE LA RESTA:,REST¨); IMPRIMIR (¨RESULTADO DE LA MULTIPLICAION:,MULT¨); IMPRIMIR (¨RESULTADO DE LA DIVISION:,DIVI¨); FIN
  • 3. 3. A un trabajador le pagan según sus horas trabajadas más una tarifa de pagos por horas. Si la cantidad de horas trabajadas es superior a 40, la tarifa se incrementa en un 50% para las horas extras (considerando que cada hora extra se contabiliza después de las 40 horas de la jornada normal). Diseñe un algoritmo para calcular el salario del trabajador; dadas las horas trabajadas y la tarifa (Valor 1%) ALGORITMO SALARIO_DEL_TRABAJADOR VARIABLES; HORAS_T, TARIFA, SUELDO_T, HORAS_EX, TARIFA_EX=REALES INICIO IMPRIMIR (¨INTRODUZCA HORAS TRABAJADAS: HORAS_T¨); LEER (¨HORAS_T:¨); IMPRIMIR (¨INTRODUZCA TARIFA: TARIFA¨); LEER (¨TARIFA¨); SI HORAS_T > 40 ENTONCES HORAS_EX = HORAS_T-40 TARIFA_EX = TARIFA + 0.50*TARIFA SUELDO_T = HORAS_EX * TARIFA_EX +40*TARIFA SINO SUELDO_T = HORAS_T*TARIFA FIN SI IMPRIMIR (¨INTRODUZCA SALARIO: SUELDO_T¨); FIN