diff --git a/IndexPoint.java b/IndexPoint.java index 8b13789..d646938 100644 --- a/IndexPoint.java +++ b/IndexPoint.java @@ -1 +1,57 @@ +/* Nindia Cahyaning Putri +IF 39-07 +1301154567 */ +package indexpoint; +import java.util.Scanner; +public class IndexPoint { + public static void main(String[] args) { + String name; + int score1, score2, score3; + double midterm, endterm, quiz, finalscore; + + Scanner masukan = new Scanner(System.in); + + System.out.print("Input name = "); + name = masukan.nextLine(); + + System.out.print("Input Midterm Score = "); + score1 = masukan.nextInt(); + + System.out.print("Input Endterm Score = "); + score2 = masukan.nextInt(); + + System.out.print("Input Quiz Score = "); + score3 = masukan.nextInt(); + + midterm = 0.35 * score1; + endterm = 0.4 * score2; + quiz = 0.25 * score3; + finalscore = midterm + endterm + quiz; + System.out.println("Final Score = " +finalscore); + + if ((finalscore >= 85) && (finalscore <= 100)){ + System.out.println("Excellent"); + } + else if ((finalscore >= 75) && (finalscore <= 84)) { + System.out.println("Very Good"); + } + else if ((finalscore >= 65) && (finalscore <= 74)) { + System.out.println("Good"); + } + else if ((finalscore >= 50) && (finalscore <= 64)) { + System.out.println("Accepted"); + } + else if ((finalscore >=0) && (finalscore <= 49)) { + System.out.println("Failed"); + } + + } +} + + + + + + + diff --git a/PrimeNumber.java b/PrimeNumber.java index 8b13789..f710e6d 100644 --- a/PrimeNumber.java +++ b/PrimeNumber.java @@ -1 +1,27 @@ +//Nindia Cahyaning Putri +//IF39-07 +//1301154567 + +package primenumber; +import java.util.Scanner; + +public class PrimeNumber { + public static void main(String[] args) { + Scanner input = new Scanner (System.in); + System.out.print("Masukan sebuah bilangan : "); + int bil = input.nextInt (); + boolean prima = true; + /*Rumus*/ + for (int i=2 ; i + + + + + + + + + + Builds, tests, and runs the project IndexPoint. + + + diff --git a/TASK_1/IndexPoint/build/classes/.netbeans_automatic_build b/TASK_1/IndexPoint/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/TASK_1/IndexPoint/build/classes/.netbeans_update_resources b/TASK_1/IndexPoint/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/TASK_1/IndexPoint/build/classes/indexpoint/IndexPoint.class b/TASK_1/IndexPoint/build/classes/indexpoint/IndexPoint.class new file mode 100644 index 0000000..cc482a2 Binary files /dev/null and b/TASK_1/IndexPoint/build/classes/indexpoint/IndexPoint.class differ diff --git a/TASK_1/IndexPoint/build/classes/indexpoint/string.class b/TASK_1/IndexPoint/build/classes/indexpoint/string.class new file mode 100644 index 0000000..ee75747 Binary files /dev/null and b/TASK_1/IndexPoint/build/classes/indexpoint/string.class differ diff --git a/TASK_1/IndexPoint/manifest.mf b/TASK_1/IndexPoint/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/TASK_1/IndexPoint/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/TASK_1/IndexPoint/nbproject/build-impl.xml b/TASK_1/IndexPoint/nbproject/build-impl.xml new file mode 100644 index 0000000..34974ec --- /dev/null +++ b/TASK_1/IndexPoint/nbproject/build-impl.xml @@ -0,0 +1,1413 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/TASK_1/IndexPoint/nbproject/genfiles.properties b/TASK_1/IndexPoint/nbproject/genfiles.properties new file mode 100644 index 0000000..9fd1b59 --- /dev/null +++ b/TASK_1/IndexPoint/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4c012c00 +build.xml.script.CRC32=707ac33b +build.xml.stylesheet.CRC32=8064a381@1.75.2.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=4c012c00 +nbproject/build-impl.xml.script.CRC32=212a0d7b +nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48 diff --git a/TASK_1/IndexPoint/nbproject/private/private.properties b/TASK_1/IndexPoint/nbproject/private/private.properties new file mode 100644 index 0000000..d985bba --- /dev/null +++ b/TASK_1/IndexPoint/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\WIN 8.I\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties diff --git a/TASK_1/IndexPoint/nbproject/private/private.xml b/TASK_1/IndexPoint/nbproject/private/private.xml new file mode 100644 index 0000000..0fad811 --- /dev/null +++ b/TASK_1/IndexPoint/nbproject/private/private.xml @@ -0,0 +1,10 @@ + + + + + + file:/E:/java/IndexPoint/src/indexpoint/IndexPoint.java + file:/E:/java/IndexPoint/src/indexpoint/string.java + + + diff --git a/TASK_1/IndexPoint/nbproject/project.properties b/TASK_1/IndexPoint/nbproject/project.properties new file mode 100644 index 0000000..93beade --- /dev/null +++ b/TASK_1/IndexPoint/nbproject/project.properties @@ -0,0 +1,73 @@ +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}/IndexPoint.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.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=indexpoint.IndexPoint +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/TASK_1/IndexPoint/nbproject/project.xml b/TASK_1/IndexPoint/nbproject/project.xml new file mode 100644 index 0000000..8b35568 --- /dev/null +++ b/TASK_1/IndexPoint/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + IndexPoint + + + + + + + + + diff --git a/TASK_1/IndexPoint/src/indexpoint/IndexPoint.java b/TASK_1/IndexPoint/src/indexpoint/IndexPoint.java new file mode 100644 index 0000000..89d0705 --- /dev/null +++ b/TASK_1/IndexPoint/src/indexpoint/IndexPoint.java @@ -0,0 +1,56 @@ +/* Nindia Cahyaning Putri +IF 39-07 +1301154567 */ +package indexpoint; +import java.util.Scanner; +public class IndexPoint { + public static void main(String[] args) { + String name; + int score1, score2, score3; + double midterm, endterm, quiz, finalscore; + + Scanner masukan = new Scanner(System.in); + + System.out.print("Input name = "); + name = masukan.nextLine(); + + System.out.print("Input Midterm Score = "); + score1 = masukan.nextInt(); + + System.out.print("Input Endterm Score = "); + score2 = masukan.nextInt(); + + System.out.print("Input Quiz Score = "); + score3 = masukan.nextInt(); + + midterm = 0.35 * score1; + endterm = 0.4 * score2; + quiz = 0.25 * score3; + finalscore = midterm + endterm + quiz; + System.out.println("Final Score = " +finalscore); + + if ((finalscore >= 85) && (finalscore <= 100)){ + System.out.println("Excellent"); + } + else if ((finalscore >= 75) && (finalscore <= 84)) { + System.out.println("Very Good"); + } + else if ((finalscore >= 65) && (finalscore <= 74)) { + System.out.println("Good"); + } + else if ((finalscore >= 50) && (finalscore <= 64)) { + System.out.println("Accepted"); + } + else if ((finalscore >=0) && (finalscore <= 49)) { + System.out.println("Failed"); + } + + } +} + + + + + + + diff --git a/TASK_1/IndexPoint/src/indexpoint/string.java b/TASK_1/IndexPoint/src/indexpoint/string.java new file mode 100644 index 0000000..163b0cd --- /dev/null +++ b/TASK_1/IndexPoint/src/indexpoint/string.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package indexpoint; + +/** + * + * @author WIN 8.I + */ +class string { + +} diff --git a/TASK_1/PrimeNumber/build.xml b/TASK_1/PrimeNumber/build.xml new file mode 100644 index 0000000..553c165 --- /dev/null +++ b/TASK_1/PrimeNumber/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project PrimeNumber. + + + diff --git a/TASK_1/PrimeNumber/build/classes/.netbeans_automatic_build b/TASK_1/PrimeNumber/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/TASK_1/PrimeNumber/build/classes/.netbeans_update_resources b/TASK_1/PrimeNumber/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/TASK_1/PrimeNumber/build/classes/primenumber/PrimeNumber.class b/TASK_1/PrimeNumber/build/classes/primenumber/PrimeNumber.class new file mode 100644 index 0000000..728a7e0 Binary files /dev/null and b/TASK_1/PrimeNumber/build/classes/primenumber/PrimeNumber.class differ diff --git a/TASK_1/PrimeNumber/manifest.mf b/TASK_1/PrimeNumber/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/TASK_1/PrimeNumber/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/TASK_1/PrimeNumber/nbproject/build-impl.xml b/TASK_1/PrimeNumber/nbproject/build-impl.xml new file mode 100644 index 0000000..6953021 --- /dev/null +++ b/TASK_1/PrimeNumber/nbproject/build-impl.xml @@ -0,0 +1,1413 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/TASK_1/PrimeNumber/nbproject/genfiles.properties b/TASK_1/PrimeNumber/nbproject/genfiles.properties new file mode 100644 index 0000000..15d882a --- /dev/null +++ b/TASK_1/PrimeNumber/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=8b64b83c +build.xml.script.CRC32=26c2446c +build.xml.stylesheet.CRC32=8064a381@1.75.2.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=8b64b83c +nbproject/build-impl.xml.script.CRC32=b0b46e48 +nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48 diff --git a/TASK_1/PrimeNumber/nbproject/private/private.properties b/TASK_1/PrimeNumber/nbproject/private/private.properties new file mode 100644 index 0000000..d985bba --- /dev/null +++ b/TASK_1/PrimeNumber/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\WIN 8.I\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties diff --git a/TASK_1/PrimeNumber/nbproject/private/private.xml b/TASK_1/PrimeNumber/nbproject/private/private.xml new file mode 100644 index 0000000..b5bcb63 --- /dev/null +++ b/TASK_1/PrimeNumber/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/E:/java/PrimeNumber/src/primenumber/PrimeNumber.java + + + diff --git a/TASK_1/PrimeNumber/nbproject/project.properties b/TASK_1/PrimeNumber/nbproject/project.properties new file mode 100644 index 0000000..91f8ff3 --- /dev/null +++ b/TASK_1/PrimeNumber/nbproject/project.properties @@ -0,0 +1,73 @@ +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}/PrimeNumber.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.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=primenumber.PrimeNumber +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/TASK_1/PrimeNumber/nbproject/project.xml b/TASK_1/PrimeNumber/nbproject/project.xml new file mode 100644 index 0000000..7e69506 --- /dev/null +++ b/TASK_1/PrimeNumber/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + PrimeNumber + + + + + + + + + diff --git a/TASK_1/PrimeNumber/src/primenumber/PrimeNumber.java b/TASK_1/PrimeNumber/src/primenumber/PrimeNumber.java new file mode 100644 index 0000000..c55b446 --- /dev/null +++ b/TASK_1/PrimeNumber/src/primenumber/PrimeNumber.java @@ -0,0 +1,25 @@ +//Nindia Cahyaning Putri +//IF39-07 +//1301154567 + +package primenumber; +import java.util.Scanner; + +public class PrimeNumber { + public static void main(String[] args) { + Scanner input = new Scanner (System.in); + System.out.print("Masukan sebuah bilangan : "); + int bil = input.nextInt (); + boolean prima = true; + for (int i=2 ; i + + + + + + + + + + Builds, tests, and runs the project TemperatureConvert. + + + diff --git a/TASK_1/TemperatureConvert/build/classes/.netbeans_automatic_build b/TASK_1/TemperatureConvert/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/TASK_1/TemperatureConvert/build/classes/.netbeans_update_resources b/TASK_1/TemperatureConvert/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/TASK_1/TemperatureConvert/build/classes/temperatureconvert/TemperatureConvert.class b/TASK_1/TemperatureConvert/build/classes/temperatureconvert/TemperatureConvert.class new file mode 100644 index 0000000..51a0b13 Binary files /dev/null and b/TASK_1/TemperatureConvert/build/classes/temperatureconvert/TemperatureConvert.class differ diff --git a/TASK_1/TemperatureConvert/manifest.mf b/TASK_1/TemperatureConvert/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/TASK_1/TemperatureConvert/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/TASK_1/TemperatureConvert/nbproject/build-impl.xml b/TASK_1/TemperatureConvert/nbproject/build-impl.xml new file mode 100644 index 0000000..225bdb4 --- /dev/null +++ b/TASK_1/TemperatureConvert/nbproject/build-impl.xml @@ -0,0 +1,1413 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/TASK_1/TemperatureConvert/nbproject/genfiles.properties b/TASK_1/TemperatureConvert/nbproject/genfiles.properties new file mode 100644 index 0000000..9ca67b4 --- /dev/null +++ b/TASK_1/TemperatureConvert/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5dfecf1d +build.xml.script.CRC32=9ef7bafd +build.xml.stylesheet.CRC32=8064a381@1.75.2.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=5dfecf1d +nbproject/build-impl.xml.script.CRC32=7db5a5da +nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48 diff --git a/TASK_1/TemperatureConvert/nbproject/private/private.properties b/TASK_1/TemperatureConvert/nbproject/private/private.properties new file mode 100644 index 0000000..d985bba --- /dev/null +++ b/TASK_1/TemperatureConvert/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\WIN 8.I\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties diff --git a/TASK_1/TemperatureConvert/nbproject/private/private.xml b/TASK_1/TemperatureConvert/nbproject/private/private.xml new file mode 100644 index 0000000..2a02d89 --- /dev/null +++ b/TASK_1/TemperatureConvert/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/E:/java/TemperatureConvert/src/temperatureconvert/TemperatureConvert.java + + + diff --git a/TASK_1/TemperatureConvert/nbproject/project.properties b/TASK_1/TemperatureConvert/nbproject/project.properties new file mode 100644 index 0000000..8b3a99b --- /dev/null +++ b/TASK_1/TemperatureConvert/nbproject/project.properties @@ -0,0 +1,73 @@ +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}/TemperatureConvert.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.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=temperatureconvert.TemperatureConvert +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/TASK_1/TemperatureConvert/nbproject/project.xml b/TASK_1/TemperatureConvert/nbproject/project.xml new file mode 100644 index 0000000..e1b8bb0 --- /dev/null +++ b/TASK_1/TemperatureConvert/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + TemperatureConvert + + + + + + + + + diff --git a/TASK_1/TemperatureConvert/src/temperatureconvert/TemperatureConvert.java b/TASK_1/TemperatureConvert/src/temperatureconvert/TemperatureConvert.java new file mode 100644 index 0000000..dd95272 --- /dev/null +++ b/TASK_1/TemperatureConvert/src/temperatureconvert/TemperatureConvert.java @@ -0,0 +1,76 @@ +/* Nindia Cahyaning Putri IF 3907 1301154567 */ +package temperatureconvert; +import java.util.Scanner; +public class TemperatureConvert { + + + public static void main(String[] args) { + Scanner masukan = new Scanner (System.in); + double c, r = 0, f, k, celcius, reamur, fahrenheit, kelvin; + + System.out.println("Temperature Convert"); + System.out.println("1. Reamur"); + System.out.println("2. Celcius"); + System.out.println("3. Fahrenheit"); + System.out.print("Pilih = "); + int x = masukan.nextInt(); + + switch (x) { + case 1: + System.out.print("Masukkan Suhu dalam Reamur = "); + r = masukan.nextDouble(); + celcius = (1.25*r); + fahrenheit = (2.25*r+32); + kelvin = (celcius + 273); + System.out.println("Reamur = " +celcius); + System.out.println("Fahrenheit = " +fahrenheit); + System.out.println("Kelvin = "+kelvin); + break; + + case 2: + System.out.print("Masukkan Suhu dalam Celcius = "); + c = masukan.nextDouble(); + reamur = (0.8*c); + fahrenheit = (1.8*c+32); + kelvin = ((1.25*r)+273); + System.out.println("Reamur = " +reamur); + System.out.println("Fahrenheit = " +fahrenheit); + System.out.println("Klevin = " +kelvin); + break; + + case 3: + System.out.print("Masukkan Suhu dalam Fahrenheit = "); + f = masukan.nextDouble(); + celcius = (0.555*(f-32)); + reamur = (0.444*(f-32)); + kelvin = (0.556*(f-32)+273); + System.out.println("Reamur = " +reamur); + System.out.println("Celcius = " +celcius); + System.out.println("Kelvin = " +kelvin); + break; + + case 4: + System.out.println("Masukkan Suhu dalam Kelvin "); + k = masukan.nextDouble(); + celcius = (k-273); + reamur = (0.8*(k-273)); + fahrenheit = 2.25*(k-273)+32; + System.out.println("Celcius = " +celcius); + System.out.println("Reamur = "+reamur); + System.out.println("Fahrenheit = "+fahrenheit); + break; + + + } + } +} + + + + + + + + + + diff --git a/TemperatureConvert.java b/TemperatureConvert.java index e69de29..dd95272 100644 --- a/TemperatureConvert.java +++ b/TemperatureConvert.java @@ -0,0 +1,76 @@ +/* Nindia Cahyaning Putri IF 3907 1301154567 */ +package temperatureconvert; +import java.util.Scanner; +public class TemperatureConvert { + + + public static void main(String[] args) { + Scanner masukan = new Scanner (System.in); + double c, r = 0, f, k, celcius, reamur, fahrenheit, kelvin; + + System.out.println("Temperature Convert"); + System.out.println("1. Reamur"); + System.out.println("2. Celcius"); + System.out.println("3. Fahrenheit"); + System.out.print("Pilih = "); + int x = masukan.nextInt(); + + switch (x) { + case 1: + System.out.print("Masukkan Suhu dalam Reamur = "); + r = masukan.nextDouble(); + celcius = (1.25*r); + fahrenheit = (2.25*r+32); + kelvin = (celcius + 273); + System.out.println("Reamur = " +celcius); + System.out.println("Fahrenheit = " +fahrenheit); + System.out.println("Kelvin = "+kelvin); + break; + + case 2: + System.out.print("Masukkan Suhu dalam Celcius = "); + c = masukan.nextDouble(); + reamur = (0.8*c); + fahrenheit = (1.8*c+32); + kelvin = ((1.25*r)+273); + System.out.println("Reamur = " +reamur); + System.out.println("Fahrenheit = " +fahrenheit); + System.out.println("Klevin = " +kelvin); + break; + + case 3: + System.out.print("Masukkan Suhu dalam Fahrenheit = "); + f = masukan.nextDouble(); + celcius = (0.555*(f-32)); + reamur = (0.444*(f-32)); + kelvin = (0.556*(f-32)+273); + System.out.println("Reamur = " +reamur); + System.out.println("Celcius = " +celcius); + System.out.println("Kelvin = " +kelvin); + break; + + case 4: + System.out.println("Masukkan Suhu dalam Kelvin "); + k = masukan.nextDouble(); + celcius = (k-273); + reamur = (0.8*(k-273)); + fahrenheit = 2.25*(k-273)+32; + System.out.println("Celcius = " +celcius); + System.out.println("Reamur = "+reamur); + System.out.println("Fahrenheit = "+fahrenheit); + break; + + + } + } +} + + + + + + + + + +