diff --git a/tareas/.build/prueba.aux b/tareas/.build/prueba.aux new file mode 100644 index 0000000..b640121 --- /dev/null +++ b/tareas/.build/prueba.aux @@ -0,0 +1,2 @@ +\relax +\gdef \@abspage@last{1} diff --git a/tareas/.build/prueba.fdb_latexmk b/tareas/.build/prueba.fdb_latexmk new file mode 100644 index 0000000..bbe01ca --- /dev/null +++ b/tareas/.build/prueba.fdb_latexmk @@ -0,0 +1,16 @@ +# Fdb version 4 +["pdflatex"] 1771670660.19562 "d:/ProramacionTAREAS/F12-Programacion/tareas/prueba.tex" ".build/prueba.pdf" "prueba" 1771670660.68849 0 + ".build/prueba.aux" 1771670660 32 3985256e7290058c681f74d7a3565a19 "pdflatex" + "C:/Users/brand/AppData/Local/MiKTeX/fonts/map/pdftex/pdftex.map" 1771660992 80909 eab91d9745dd2edfd62a31d53cd5fe15 "" + "C:/Users/brand/AppData/Local/MiKTeX/miktex/data/le/pdftex/pdflatex.fmt" 1771661012 13333903 245a90a68f8ad05fc903bf9796128d8a "" + "C:/Users/brand/AppData/Local/Programs/MiKTeX/fonts/type1/public/amsfonts/cm/cmr10.pfb" 1247596667 35752 024fb6c41858982481f6968b5fc26508 "" + "C:/Users/brand/AppData/Local/Programs/MiKTeX/tex/latex/base/article.cls" 1761900684 20144 b966087dda3b194755eb460d32e2ef75 "" + "C:/Users/brand/AppData/Local/Programs/MiKTeX/tex/latex/base/size10.clo" 1761900684 8448 686612a86f0e04f41ea577f5ec7e83d8 "" + "C:/Users/brand/AppData/Local/Programs/MiKTeX/tex/latex/l3backend/l3backend-pdftex.def" 1761202581 30662 bfd6e864f4ffc5018b0e2b6260c3181c "" + "d:/ProramacionTAREAS/F12-Programacion/tareas/prueba.tex" 1771670659 81 5741b06045befdd813b475ddb660b2e5 "" + "prueba.tex" 1771670659 81 5741b06045befdd813b475ddb660b2e5 "" + (generated) + ".build/prueba.aux" + ".build/prueba.log" + ".build/prueba.pdf" + (rewritten before read) diff --git a/tareas/.build/prueba.fls b/tareas/.build/prueba.fls new file mode 100644 index 0000000..f6f7734 --- /dev/null +++ b/tareas/.build/prueba.fls @@ -0,0 +1,20 @@ +PWD d:\ProramacionTAREAS\F12-Programacion\tareas +INPUT C:\Users\brand\AppData\Local\MiKTeX\miktex\data\le\pdftex\pdflatex.fmt +INPUT d:\ProramacionTAREAS\F12-Programacion\tareas\prueba.tex +OUTPUT d:\ProramacionTAREAS\F12-Programacion\tareas\.build\prueba.log +INPUT C:\Users\brand\AppData\Local\Programs\MiKTeX\tex\latex\base\article.cls +INPUT C:\Users\brand\AppData\Local\Programs\MiKTeX\tex\latex\base\article.cls +INPUT C:\Users\brand\AppData\Local\Programs\MiKTeX\tex\latex\base\size10.clo +INPUT C:\Users\brand\AppData\Local\Programs\MiKTeX\tex\latex\base\size10.clo +INPUT C:\Users\brand\AppData\Local\Programs\MiKTeX\tex\latex\base\size10.clo +INPUT C:\Users\brand\AppData\Local\Programs\MiKTeX\tex\latex\l3backend\l3backend-pdftex.def +INPUT C:\Users\brand\AppData\Local\Programs\MiKTeX\tex\latex\l3backend\l3backend-pdftex.def +INPUT d:\ProramacionTAREAS\F12-Programacion\tareas\.build\prueba.aux +INPUT d:\ProramacionTAREAS\F12-Programacion\tareas\.build\prueba.aux +INPUT d:\ProramacionTAREAS\F12-Programacion\tareas\.build\prueba.aux +OUTPUT d:\ProramacionTAREAS\F12-Programacion\tareas\.build\prueba.aux +OUTPUT d:\ProramacionTAREAS\F12-Programacion\tareas\.build\prueba.pdf +INPUT C:\Users\brand\AppData\Local\MiKTeX\fonts\map\pdftex\pdftex.map +INPUT d:\ProramacionTAREAS\F12-Programacion\tareas\.build\prueba.aux +INPUT C:\Users\brand\AppData\Local\Programs\MiKTeX\fonts\type1\public\amsfonts\cm\cmr10.pfb +INPUT C:\Users\brand\AppData\Local\Programs\MiKTeX\fonts\type1\public\amsfonts\cm\cmr10.pfb diff --git a/tareas/.build/prueba.log b/tareas/.build/prueba.log new file mode 100644 index 0000000..5f7a331 --- /dev/null +++ b/tareas/.build/prueba.log @@ -0,0 +1,73 @@ +This is pdfTeX, Version 3.141592653-2.6-1.40.29 (MiKTeX 26.1) (preloaded format=pdflatex 2026.2.21) 21 FEB 2026 04:44 +entering extended mode + restricted \write18 enabled. + file:line:error style messages enabled. + %&-line parsing enabled. +**d:/ProramacionTAREAS/F12-Programacion/tareas/prueba.tex +(d:/ProramacionTAREAS/F12-Programacion/tareas/prueba.tex +LaTeX2e <2025-11-01> +L3 programming layer <2026-01-19> +(C:\Users\brand\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls +Document Class: article 2025/01/22 v1.4n Standard LaTeX document class +(C:\Users\brand\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo +File: size10.clo 2025/01/22 v1.4n Standard LaTeX file (size option) +) +\c@part=\count275 +\c@section=\count276 +\c@subsection=\count277 +\c@subsubsection=\count278 +\c@paragraph=\count279 +\c@subparagraph=\count280 +\c@figure=\count281 +\c@table=\count282 +\abovecaptionskip=\skip49 +\belowcaptionskip=\skip50 +\bibindent=\dimen148 +) (C:\Users\brand\AppData\Local\Programs\MiKTeX\tex/latex/l3backend\l3backend-pdftex.def +File: l3backend-pdftex.def 2025-10-09 L3 backend support: PDF output (pdfTeX) +\l__color_backend_stack_int=\count283 +) + +LaTeX Warning: Unused global option(s): + [options]. + +(d:\ProramacionTAREAS\F12-Programacion\tareas\.build\prueba.aux) +\openout1 = `prueba.aux'. + +LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3. +LaTeX Font Info: ... okay on input line 3. +LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3. +LaTeX Font Info: ... okay on input line 3. +LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3. +LaTeX Font Info: ... okay on input line 3. +LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3. +LaTeX Font Info: ... okay on input line 3. +LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 3. +LaTeX Font Info: ... okay on input line 3. +LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3. +LaTeX Font Info: ... okay on input line 3. +LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3. +LaTeX Font Info: ... okay on input line 3. + [1 + +{C:/Users/brand/AppData/Local/MiKTeX/fonts/map/pdftex/pdftex.map}] (d:\ProramacionTAREAS\F12-Programacion\tareas\.build\prueba.aux) + *********** +LaTeX2e <2025-11-01> +L3 programming layer <2026-01-19> + *********** + ) +Here is how much of TeX's memory you used: + 430 strings out of 467865 + 8506 string characters out of 5418304 + 433759 words of memory out of 5000000 + 29395 multiletter control sequences out of 15000+600000 + 627721 words of font info for 40 fonts, out of 8000000 for 9000 + 1141 hyphenation exceptions out of 8191 + 35i,5n,38p,192b,126s stack positions out of 10000i,1000n,20000p,200000b,200000s + +Output written on d:\ProramacionTAREAS\F12-Programacion\tareas\.build\prueba.pdf (1 page, 13629 bytes). +PDF statistics: + 11 PDF objects out of 1000 (max. 8388607) + 0 named destinations out of 1000 (max. 500000) + 1 words of extra memory for PDF output out of 10000 (max. 10000000) + diff --git a/tareas/.build/prueba.pdf b/tareas/.build/prueba.pdf new file mode 100644 index 0000000..650f19e Binary files /dev/null and b/tareas/.build/prueba.pdf differ diff --git a/tareas/.build/prueba.synctex.gz b/tareas/.build/prueba.synctex.gz new file mode 100644 index 0000000..7d652ed Binary files /dev/null and b/tareas/.build/prueba.synctex.gz differ diff --git a/tareas/prueba.tex b/tareas/prueba.tex new file mode 100644 index 0000000..0d52d62 --- /dev/null +++ b/tareas/prueba.tex @@ -0,0 +1,5 @@ +\documentclass[options]{article} + +\begin{document} +hola mundo! +\end{document} \ No newline at end of file diff --git a/tareas/tarea_3/busqueda_dos_en_dos.cpp b/tareas/tarea_3/busqueda_dos_en_dos.cpp new file mode 100644 index 0000000..64590b6 --- /dev/null +++ b/tareas/tarea_3/busqueda_dos_en_dos.cpp @@ -0,0 +1,42 @@ +#include +#include +using namespace std; +int busquedaDosEnDos(const vector& lista, int objetivo) { + int n = lista.size(); + for (int i = 0; i < n; i += 2) { + if (lista[i] == objetivo) { + return i; + } + if (i + 1 < n && lista[i + 1] == objetivo) { + return i + 1; + } + } + return -1; +} +int main() { + vector lista; + int n, x; + cout << "ingrese la cantidad de elementos: "; + cin >> n; + cout << "ingrese los elementos:\n"; + for (int i = 0; i < n; i++) { + cin >> x; + lista.push_back(x); + } + char continuar = 's'; + while (continuar == 's' || continuar == 'S') { + int objetivo; + cout << "\ningrese el numero a buscar: "; + cin >> objetivo; + int resultado = busquedaDosEnDos(lista, objetivo); + if (resultado != -1) { + cout << "objetivo encontrado en : " << resultado << endl; + } else { + cout << "objetivo no existe" << endl; + } + + cout << "\n desea buscar otro numero? (s/n): "; + cin >> continuar; + } + return 0; +} \ No newline at end of file diff --git a/tareas/tarea_3/busqueda_dos_en_dos.exe b/tareas/tarea_3/busqueda_dos_en_dos.exe new file mode 100644 index 0000000..8c408ff Binary files /dev/null and b/tareas/tarea_3/busqueda_dos_en_dos.exe differ diff --git a/tareas/tarea_3/contar_vocales.cpp b/tareas/tarea_3/contar_vocales.cpp new file mode 100644 index 0000000..99a010d --- /dev/null +++ b/tareas/tarea_3/contar_vocales.cpp @@ -0,0 +1,27 @@ +#include +using namespace std; +int contarVocales(string texto) { + int contar = 0; + for (char x : texto) { + x = tolower(x); + if (x == 'a' || x == 'e' || x == 'i' || x == 'o' || x == 'u') { + contar++; + } + } + return contar; +} +int main() { + string oracion; + char continuar; + do { + cout << "ingrese una oracion: "; + getline(cin, oracion); + int total = contarVocales(oracion); + cout << "total de vocales: " << total << endl; + cout << "desea ingresar otra oracion? (s/n): "; + cin >> continuar; + cin.ignore(); + } while (continuar == 's' || continuar == 'S'); + cout << "programa terminado." << endl; + return 0; +} \ No newline at end of file diff --git a/tareas/tarea_3/contar_vocales.exe b/tareas/tarea_3/contar_vocales.exe new file mode 100644 index 0000000..28481c4 Binary files /dev/null and b/tareas/tarea_3/contar_vocales.exe differ diff --git a/tareas/tarea_3/numero_primo.cpp b/tareas/tarea_3/numero_primo.cpp new file mode 100644 index 0000000..524ee00 --- /dev/null +++ b/tareas/tarea_3/numero_primo.cpp @@ -0,0 +1,29 @@ +#include +using namespace std; +bool esprimo(int x) { + if (x <= 1) return false; + if (x == 2) return true; + for (int i = 2; i * i <= x; i++) { + if (x % i == 0) { + return false; + } + } + return true; +} +int main() { + int numero; + char continuar; + do { + cout << "ingrese un numero: "; + cin >> numero; + if (esprimo(numero)) { + cout << "primo" << endl; + } else { + cout << "no primo" << endl; + } + cout << "desea ingresar otro numero? (s/n): "; + cin >> continuar; + } while (continuar == 's' || continuar == 'S'); + cout << "programa terminado." << endl; + return 0; +} \ No newline at end of file diff --git a/tareas/tarea_3/numero_primo.exe b/tareas/tarea_3/numero_primo.exe new file mode 100644 index 0000000..18b580b Binary files /dev/null and b/tareas/tarea_3/numero_primo.exe differ diff --git a/tareas/tarea_3/suma_digitos.cpp b/tareas/tarea_3/suma_digitos.cpp new file mode 100644 index 0000000..dcd22a8 --- /dev/null +++ b/tareas/tarea_3/suma_digitos.cpp @@ -0,0 +1,21 @@ +#include +#include +using namespace std; +int main() { + char continuar; + do { + int x, suma = 0; + cout << " ingresa un numero entero: "; + cin >> x; + x = abs(x); + while (x > 0) { + suma += x % 10; + x /= 10; + } + cout << "La suma de los digitos es: " << suma << endl; + cout << "deseas volverlo a intentar? (s/n): "; + cin >> continuar; + } while (continuar == 's' || continuar == 'S'); + cout << "programa terminado." << endl; + return 0; +} \ No newline at end of file diff --git a/tareas/tarea_3/suma_digitos.exe b/tareas/tarea_3/suma_digitos.exe new file mode 100644 index 0000000..85c9728 Binary files /dev/null and b/tareas/tarea_3/suma_digitos.exe differ