From 332d1011029b057fe699708b9fd2ce32d9195f3c Mon Sep 17 00:00:00 2001 From: roshka Date: Thu, 11 Oct 2018 17:55:19 -0300 Subject: [PATCH] se agregaron archivos --- READme.md.txt | 1 + build.xml | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ build/classes/.netbeans_automatic_build | 0 build/classes/.netbeans_update_resources | 0 build/classes/ejercicio01/Ejercicio01.class | Bin 0 -> 1641 bytes build/classes/ejercicio01/Ejercicio02.class | Bin 0 -> 1079 bytes build/classes/ejercicio01/Ejercicio03.class | Bin 0 -> 972 bytes build/classes/ejercicio01/Ejercicio04.class | Bin 0 -> 940 bytes build/classes/ejercicio01/Ejercicio05.class | Bin 0 -> 885 bytes build/classes/ejercicio01/Ejercicio06.class | Bin 0 -> 1056 bytes build/classes/ejercicio01/Ejercicio07.class | Bin 0 -> 901 bytes build/classes/ejercicio01/Ejercicio08.class | Bin 0 -> 1045 bytes build/classes/ejercicio01/Ejercicio09.class | Bin 0 -> 1148 bytes build/classes/ejercicio01/Ejercicio10.class | Bin 0 -> 1046 bytes manifest.mf | 3 +++ nbproject/build-impl.xml | 1420 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ nbproject/genfiles.properties | 8 ++++++++ nbproject/private/private.properties | 2 ++ nbproject/project.properties | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ nbproject/project.xml | 15 +++++++++++++++ src/ejercicio01/Ejercicio01.java | 38 ++++++++++++++++++++++++++++++++++++++ src/ejercicio01/Ejercicio02.java | 41 +++++++++++++++++++++++++++++++++++++++++ src/ejercicio01/Ejercicio03.java | 20 ++++++++++++++++++++ src/ejercicio01/Ejercicio04.java | 18 ++++++++++++++++++ src/ejercicio01/Ejercicio05.java | 24 ++++++++++++++++++++++++ src/ejercicio01/Ejercicio06.java | 18 ++++++++++++++++++ src/ejercicio01/Ejercicio07.java | 22 ++++++++++++++++++++++ src/ejercicio01/Ejercicio08.java | 21 +++++++++++++++++++++ src/ejercicio01/Ejercicio09.java | 37 +++++++++++++++++++++++++++++++++++++ src/ejercicio01/Ejercicio10.java | 30 ++++++++++++++++++++++++++++++ trabajo2.txt | 27 +++++++++++++++++++++++++++ 31 files changed, 1892 insertions(+) create mode 100644 READme.md.txt create mode 100644 build.xml create mode 100644 build/classes/.netbeans_automatic_build create mode 100644 build/classes/.netbeans_update_resources create mode 100644 build/classes/ejercicio01/Ejercicio01.class create mode 100644 build/classes/ejercicio01/Ejercicio02.class create mode 100644 build/classes/ejercicio01/Ejercicio03.class create mode 100644 build/classes/ejercicio01/Ejercicio04.class create mode 100644 build/classes/ejercicio01/Ejercicio05.class create mode 100644 build/classes/ejercicio01/Ejercicio06.class create mode 100644 build/classes/ejercicio01/Ejercicio07.class create mode 100644 build/classes/ejercicio01/Ejercicio08.class create mode 100644 build/classes/ejercicio01/Ejercicio09.class create mode 100644 build/classes/ejercicio01/Ejercicio10.class create mode 100644 manifest.mf create mode 100644 nbproject/build-impl.xml create mode 100644 nbproject/genfiles.properties create mode 100644 nbproject/private/private.properties create mode 100644 nbproject/project.properties create mode 100644 nbproject/project.xml create mode 100644 src/ejercicio01/Ejercicio01.java create mode 100644 src/ejercicio01/Ejercicio02.java create mode 100644 src/ejercicio01/Ejercicio03.java create mode 100644 src/ejercicio01/Ejercicio04.java create mode 100644 src/ejercicio01/Ejercicio05.java create mode 100644 src/ejercicio01/Ejercicio06.java create mode 100644 src/ejercicio01/Ejercicio07.java create mode 100644 src/ejercicio01/Ejercicio08.java create mode 100644 src/ejercicio01/Ejercicio09.java create mode 100644 src/ejercicio01/Ejercicio10.java create mode 100644 trabajo2.txt diff --git a/READme.md.txt b/READme.md.txt new file mode 100644 index 0000000..e5f3060 --- /dev/null +++ b/READme.md.txt @@ -0,0 +1 @@ +Seleccionar cada archivo y darle Run File para que ejecute ese archivo. \ No newline at end of file diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..8599ef5 --- /dev/null +++ b/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Ejercicio01. + + + diff --git a/build/classes/.netbeans_automatic_build b/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/build/classes/.netbeans_automatic_build diff --git a/build/classes/.netbeans_update_resources b/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/build/classes/.netbeans_update_resources diff --git a/build/classes/ejercicio01/Ejercicio01.class b/build/classes/ejercicio01/Ejercicio01.class new file mode 100644 index 0000000..99e8d9d Binary files /dev/null and b/build/classes/ejercicio01/Ejercicio01.class differ diff --git a/build/classes/ejercicio01/Ejercicio02.class b/build/classes/ejercicio01/Ejercicio02.class new file mode 100644 index 0000000..3306a7e Binary files /dev/null and b/build/classes/ejercicio01/Ejercicio02.class differ diff --git a/build/classes/ejercicio01/Ejercicio03.class b/build/classes/ejercicio01/Ejercicio03.class new file mode 100644 index 0000000..2395bb6 Binary files /dev/null and b/build/classes/ejercicio01/Ejercicio03.class differ diff --git a/build/classes/ejercicio01/Ejercicio04.class b/build/classes/ejercicio01/Ejercicio04.class new file mode 100644 index 0000000..4efa48e Binary files /dev/null and b/build/classes/ejercicio01/Ejercicio04.class differ diff --git a/build/classes/ejercicio01/Ejercicio05.class b/build/classes/ejercicio01/Ejercicio05.class new file mode 100644 index 0000000..83237af Binary files /dev/null and b/build/classes/ejercicio01/Ejercicio05.class differ diff --git a/build/classes/ejercicio01/Ejercicio06.class b/build/classes/ejercicio01/Ejercicio06.class new file mode 100644 index 0000000..f892bd2 Binary files /dev/null and b/build/classes/ejercicio01/Ejercicio06.class differ diff --git a/build/classes/ejercicio01/Ejercicio07.class b/build/classes/ejercicio01/Ejercicio07.class new file mode 100644 index 0000000..b86d9ca Binary files /dev/null and b/build/classes/ejercicio01/Ejercicio07.class differ diff --git a/build/classes/ejercicio01/Ejercicio08.class b/build/classes/ejercicio01/Ejercicio08.class new file mode 100644 index 0000000..9ac08a4 Binary files /dev/null and b/build/classes/ejercicio01/Ejercicio08.class differ diff --git a/build/classes/ejercicio01/Ejercicio09.class b/build/classes/ejercicio01/Ejercicio09.class new file mode 100644 index 0000000..0b07fbd Binary files /dev/null and b/build/classes/ejercicio01/Ejercicio09.class differ diff --git a/build/classes/ejercicio01/Ejercicio10.class b/build/classes/ejercicio01/Ejercicio10.class new file mode 100644 index 0000000..bb0fab2 Binary files /dev/null and b/build/classes/ejercicio01/Ejercicio10.class differ diff --git a/manifest.mf b/manifest.mf new file mode 100644 index 0000000..1574df4 --- /dev/null +++ b/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/nbproject/build-impl.xml b/nbproject/build-impl.xml new file mode 100644 index 0000000..42b55a3 --- /dev/null +++ b/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/nbproject/genfiles.properties b/nbproject/genfiles.properties new file mode 100644 index 0000000..999214d --- /dev/null +++ b/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=b4dbee64 +build.xml.script.CRC32=04e8461a +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=b4dbee64 +nbproject/build-impl.xml.script.CRC32=bf139476 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/nbproject/private/private.properties b/nbproject/private/private.properties new file mode 100644 index 0000000..7bdb987 --- /dev/null +++ b/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Lucas Maidana\\AppData\\Roaming\\NetBeans\\8.2\\build.properties diff --git a/nbproject/project.properties b/nbproject/project.properties new file mode 100644 index 0000000..0370854 --- /dev/null +++ b/nbproject/project.properties @@ -0,0 +1,74 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/Ejercicio01.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=ejercicio01.Ejercicio01 +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/nbproject/project.xml b/nbproject/project.xml new file mode 100644 index 0000000..0b60f3f --- /dev/null +++ b/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Ejercicio01 + + + + + + + + + diff --git a/src/ejercicio01/Ejercicio01.java b/src/ejercicio01/Ejercicio01.java new file mode 100644 index 0000000..a9169f9 --- /dev/null +++ b/src/ejercicio01/Ejercicio01.java @@ -0,0 +1,38 @@ + +package ejercicio01; + +import java.util.Scanner; + + +public class Ejercicio01 { + + + public static void main(String[] args) { + Scanner scan = new Scanner (System.in); + Scanner scan2 = new Scanner (System.in); + + System.out.println ("Inserte el primer valor"); + double valor1= scan.nextDouble(); + + System.out.println ("\nInserte el segundo valor"); + double valor2=scan.nextDouble(); + + double resultado1= valor1+valor2; + double resultado2=valor1-valor2; + double resultado3=valor1*valor2; + double resultado4=valor1/valor2; + double resultado5=(valor1%valor2); + + System.out.println ("La suma de " + valor1 + " y " + valor2 + " es: " + resultado1); + System.out.print ("\nLa resta es de " + valor1 + " y " + valor2 + " es: " + resultado2); + System.out.print ("\nLa multiplicacion es de " + valor1 + " y " + valor2 + " es: " + resultado3); + System.out.print ("\nLa divison es de " + valor1 + " y " + valor2 + " es: " + resultado4); + System.out.print ("\nEl resto es de " + valor1 + " y " + valor2 + " es: " + resultado5); + + + + + } + + +} diff --git a/src/ejercicio01/Ejercicio02.java b/src/ejercicio01/Ejercicio02.java new file mode 100644 index 0000000..42c52b8 --- /dev/null +++ b/src/ejercicio01/Ejercicio02.java @@ -0,0 +1,41 @@ + +package ejercicio01; + +import java.util.Scanner; + +/** + * + * @author Lucas Maidana + */ +public class Ejercicio02 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + + Scanner scan = new Scanner (System.in); + Scanner scan2 = new Scanner (System.in); + + System.out.println ("Inserte el primer valor"); + int valor1= scan.nextInt(); + + System.out.println ("\nInserte el segundo valor"); + int valor2=scan.nextInt(); + + if (valor1>valor2) + { + System.out.println ("El primer valor es mayor" ); + } + if (valor1==valor2) + { + System.out.println ("Son iguales"); + } + if (valor1