From a3474ef26bbb60a007a8edc9289a83dd018259f1 Mon Sep 17 00:00:00 2001 From: Nindia Cahyaning Putri Date: Fri, 3 Feb 2017 08:11:33 +0700 Subject: [PATCH 1/2] Nindia Cahyaning Putri_1301154567_IF3907 Task_1 PrimeNumber IndexPoint TemperatureConvert --- TASK_1/IndexPoint/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/indexpoint/IndexPoint.class | Bin 0 -> 1840 bytes .../build/classes/indexpoint/string.class | Bin 0 -> 265 bytes TASK_1/IndexPoint/manifest.mf | 3 + TASK_1/IndexPoint/nbproject/build-impl.xml | 1413 +++++++++++++++++ .../IndexPoint/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../IndexPoint/nbproject/private/private.xml | 10 + .../IndexPoint/nbproject/project.properties | 73 + TASK_1/IndexPoint/nbproject/project.xml | 15 + .../IndexPoint/src/indexpoint/IndexPoint.java | 56 + TASK_1/IndexPoint/src/indexpoint/string.java | 14 + TASK_1/PrimeNumber/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/primenumber/PrimeNumber.class | Bin 0 -> 1221 bytes TASK_1/PrimeNumber/manifest.mf | 3 + TASK_1/PrimeNumber/nbproject/build-impl.xml | 1413 +++++++++++++++++ .../PrimeNumber/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../PrimeNumber/nbproject/private/private.xml | 9 + .../PrimeNumber/nbproject/project.properties | 73 + TASK_1/PrimeNumber/nbproject/project.xml | 15 + .../src/primenumber/PrimeNumber.java | 25 + TASK_1/TemperatureConvert/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../TemperatureConvert.class | Bin 0 -> 2367 bytes TASK_1/TemperatureConvert/manifest.mf | 3 + .../nbproject/build-impl.xml | 1413 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 9 + .../nbproject/project.properties | 73 + .../TemperatureConvert/nbproject/project.xml | 15 + .../TemperatureConvert.java | 76 + 38 files changed, 4960 insertions(+) create mode 100644 TASK_1/IndexPoint/build.xml create mode 100644 TASK_1/IndexPoint/build/classes/.netbeans_automatic_build create mode 100644 TASK_1/IndexPoint/build/classes/.netbeans_update_resources create mode 100644 TASK_1/IndexPoint/build/classes/indexpoint/IndexPoint.class create mode 100644 TASK_1/IndexPoint/build/classes/indexpoint/string.class create mode 100644 TASK_1/IndexPoint/manifest.mf create mode 100644 TASK_1/IndexPoint/nbproject/build-impl.xml create mode 100644 TASK_1/IndexPoint/nbproject/genfiles.properties create mode 100644 TASK_1/IndexPoint/nbproject/private/private.properties create mode 100644 TASK_1/IndexPoint/nbproject/private/private.xml create mode 100644 TASK_1/IndexPoint/nbproject/project.properties create mode 100644 TASK_1/IndexPoint/nbproject/project.xml create mode 100644 TASK_1/IndexPoint/src/indexpoint/IndexPoint.java create mode 100644 TASK_1/IndexPoint/src/indexpoint/string.java create mode 100644 TASK_1/PrimeNumber/build.xml create mode 100644 TASK_1/PrimeNumber/build/classes/.netbeans_automatic_build create mode 100644 TASK_1/PrimeNumber/build/classes/.netbeans_update_resources create mode 100644 TASK_1/PrimeNumber/build/classes/primenumber/PrimeNumber.class create mode 100644 TASK_1/PrimeNumber/manifest.mf create mode 100644 TASK_1/PrimeNumber/nbproject/build-impl.xml create mode 100644 TASK_1/PrimeNumber/nbproject/genfiles.properties create mode 100644 TASK_1/PrimeNumber/nbproject/private/private.properties create mode 100644 TASK_1/PrimeNumber/nbproject/private/private.xml create mode 100644 TASK_1/PrimeNumber/nbproject/project.properties create mode 100644 TASK_1/PrimeNumber/nbproject/project.xml create mode 100644 TASK_1/PrimeNumber/src/primenumber/PrimeNumber.java create mode 100644 TASK_1/TemperatureConvert/build.xml create mode 100644 TASK_1/TemperatureConvert/build/classes/.netbeans_automatic_build create mode 100644 TASK_1/TemperatureConvert/build/classes/.netbeans_update_resources create mode 100644 TASK_1/TemperatureConvert/build/classes/temperatureconvert/TemperatureConvert.class create mode 100644 TASK_1/TemperatureConvert/manifest.mf create mode 100644 TASK_1/TemperatureConvert/nbproject/build-impl.xml create mode 100644 TASK_1/TemperatureConvert/nbproject/genfiles.properties create mode 100644 TASK_1/TemperatureConvert/nbproject/private/private.properties create mode 100644 TASK_1/TemperatureConvert/nbproject/private/private.xml create mode 100644 TASK_1/TemperatureConvert/nbproject/project.properties create mode 100644 TASK_1/TemperatureConvert/nbproject/project.xml create mode 100644 TASK_1/TemperatureConvert/src/temperatureconvert/TemperatureConvert.java diff --git a/TASK_1/IndexPoint/build.xml b/TASK_1/IndexPoint/build.xml new file mode 100644 index 0000000..66fe578 --- /dev/null +++ b/TASK_1/IndexPoint/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + 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 0000000000000000000000000000000000000000..cc482a20463f4ee42a9e167173a6fff1eb43a951 GIT binary patch literal 1840 zcmZuxT~ixn6n@@(>~6vW0)Ye?YHB+*R4M%uODT}HKpTY?NI|h$T{a6WB%3sBTBx7n zjeo!yTOG&CUegPhX&uM$vKNk5&h!^};k90>&%4P27WU$O&pFRI&wIX-Xa79;3BWmg z9>p0Jq@?y{l10|G~8B3eqZ!HW#suo`F*R5{6;c< zDn5*&4bvJvlD8p`1$mf~EU#o{GoGK4nfGpJu$0Wq&voOhZ(LL|Q<=JP<_k~Iu%u+N zo(Q5fLBq0=x#m0ADppji3MdzC$99JWg6W<)fzXvw-V$h@upR4qwYXqaZW;>(T3RPc zrcszPDz?gxv>gC5*fEOU%lkr^_L^C$Sf>R<)>qE>!dU^eXy;w4QY1b~&2s8m=uXwX zFA!a{9i!k;NMB>Ex@s`Zwpx-^*DmzsOv7=k3TtT0xrVtqX_UR9RSc;pa0$qgD^)9| zHEzrPH1F1ZQs%4UEY1nEc)9OoR8iF7pd=m2I_{vtC$dht>ZWA9siBmLH61RhI_}~g zn^yxTYZaw(vT%CoSjWZ=I##Q22W2s}uxS>&#~OdJmzS${A#X8G%v)fymgpX%z~V<5HfpDjTV*rBa@ws$JS8)3nO2MT;_SurCza58Mrbmv%F` zv9My9WZYw_?a2R48*8q`i3a3Gwbw>vm$+|i9o;RX$YCYY2Lf`}f~6|o*bSWG7VZYN zdFhaEk69pGmQIYS)4sUBnq#fI^0y)oOZV*Gac-CN$Vv|Wz~rtPV`ym)QHUhM3DrzQ%z*|*JVo35He#*qTj)rTE53!q7CI9R zF?4nTFAjX}sZE~3+Gpw2e2EOem-ub>raYNyanpE!n*z!;H99KtM;xQ%Ws z<1oHN3SV<>Kj0`faST7=IDW;ec#a5Na zE+g&Cn{VHf=5jrq0lZ@rz(L=~z{il_&6QSWL2zDP6N0;}a!DA*O3TmYCzbV=NJ}Qq zag~WO5w)`WA9T&P+7ZU=&gFhvDQ%*isg*8fgkW7YbtXTQjrUqS-H2Zi!bO+x^e;ph z+5e~%x` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 0000000000000000000000000000000000000000..728a7e0e6a25f677b70b9910fe187321899a1c74 GIT binary patch literal 1221 zcmaJ=T~ks~6kP}I^#WeMKokv?zQHfb%u3Ws%c8KFaGbH84tPhe!i9lLQ}6wWdhEsL ze88EU=?C;<`T;#;>wqJSI>B&0_FjAKwfEWl`upQ2fLXi@pbrTH<9 zWB|8tTUlld+zG&sgj!~OxU2R#wcPXJzJUh@<^?(yY{zz&1ibOYhJdzG+OhXuMP6MBOqt4CP6bXycb_53E?=!pd zgG?5rvz^Sk72DZPsf5DjFHM}RY?CT<0Zc%*opQ~kx5-g+?Lsn}myTmqn8KU03&bc5 zl4S1$y0Wg!@2$ylL#KgJc1j?SE!8S{Yt>fu^tQ>IR?18S5fbQYsBF(*AZ20!iwdx0 z;vpUh46n&*ZBII}s+FtBofs9cF5c&31|FMO#)^q2cq%Y>w(8}YUD&cJCRXu`GFqVx z{V`>KZX%5rY+5YWNOH>FgpgDnF6cM;TIpWrcC9>{)@I6ns=8KDz@wfd+-#;@N~TqJ z`6iYuvYnCmg%0&t-jaHSRv>%mv;sqo+~jLBH{ZokQ75!#2f%Qwk8WBaIDs654p}Z+ z&Xzzlo=%*bnUn5O=F~-e|H1p*QgiGC`s3$`Q@D&?{;AZ*1I{}_T>E)Tau?k7@k5C3 z4R@GpN5kmD0MBLhLXUOZuD^ z)}r4KjE1%HSLoiQ&zjgj{yp*qV}u^Tzj=s2w2sc8Sw~kL-HhEw^o+0P)TcChp)}4= z84y4xzagF@=%TW2TtyGYS?(myGxW?+>swZ`M}(?pmYPS%a0yXpycc*I<=zR2F~nF~ r1nX>Al&u5JP literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..51a0b1311c7ff14580de4255505f19e471be962e GIT binary patch literal 2367 zcmb7FU2GIp6#njXyF1-(f81_ifzoclmWA3~ehW(rt+b+*wp12TDE>^hLp$Bw*=4#@ z`B5+-Y2uTwVtg?1!NfOtC<#Pk^o{6)iH1Z;jD`mdFFvS=mZ;yIou!+0F?f@E@44rk zd%kndJ!j_D-#0!5up4jsu^nSR9Ie4Pp7TS&F-av=9QWgSoKW$CiWgO!RB=i&CZx(~ z6)(yCWpDp)w8G&XP)fu=i8$NnP(HlkM;K!&UX{Bhmr1##R7|PRRh;qm|8iB1cfI}h zzm(%E71Jtay!}6Z{`TqU?_YTP@62BM^ZQL-lXL5{D?#%e6^4pgAJRT#1iXEQX%r3$ zR7JO*5bzAx}_Ct zOHbv@dEF|+k1w+Zi>zLn&uWG#uqHY&GONvN@r-6p$CCxiFsFMZyhw8n3HVZaCS};P z?X`3*Yg+>TGun)$n=`smpdHPcrm(4k8D7q6b9P!IPE!%ZE*P13GNqZOZqW&m;-p1! zhUU|HW?s4^&T$S4)FlgADm|*@oe+H(-~$spnX|2we%O$ySi3s3n2aWX9oQ-Gm=jq! zrVrTwOys0OK7g|zcvG2?h?^iE<^m|d7O2?~iySKjzB3jXETyAvS1fY4ED`Fskuhc> z2OsWnFWQ=6PIT6e}O#kZok9bh=hkM0Qj!;`IP7 z;*9_<;WD$cj7>3Bk2vXb=+;W8uH&w9MrW=ay1kO}3giCr%Nr_PaM1-i9;pBY8kd7U zIytMSSW0EAYx z+ACwTSo2aTBLQ8*D|@2a(V(WOpDPTTL}073QvLEgl(U`oB#Uk1)$)1WoD%4+WNTH+ zxi8M3TB1W+|3j=6a>XVU2t`*b_M#neehlSMAY>bG-NjR!yWn2E?K;HAj(9g$ufz0U z59vTr0X^8uQw{bZK@Klh-J)I-El%8oa`GCguER4@pYU8mb9P_(n@_%yCLBTp)u@9C;TAxPB2E!o+G>#Kt0GNzy7Mw6|K)CMAszBp-?e2_12vheK$OrW1h>Hb-6D zqA!)P0}t$!dG&DYj+NMciQQQW+Z)1`FqhD@6Z+N?O>eqf`hU35{m|sBOaZP)H)6~n z->M;@hE>8$%j~xoNhcvemoC0WS-cMia^B}rawJQ#ivMz85#3x>)UpKYxvpVhwxSN5 zJjKw!@@zyOf;f#3rqGO8YFJpy&te!0Scmtq9yhQ7-=GDz(S{!o!Cm&nJ#4}s*en!0 zE?UqbdeAAxu|*`YO-!ImXm~%LpveeWd)jCvrGIiXU%r2M0;j%XUIP1{iCt zGS2&l*cNw@!yu&!>XlIpk@C>5zwi_(FBZhNI82K1D{Xih&oB$ayx)cDf0&M-56}8= aMCP$ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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; + + + } + } +} + + + + + + + + + + From 47f33b26eba83b437b2589966d8c81fda83b1ff5 Mon Sep 17 00:00:00 2001 From: Nindia Cahyaning Putri Date: Fri, 3 Feb 2017 08:37:45 +0700 Subject: [PATCH 2/2] Nindia Cahyaning Putri _ 1301154567_ IF3907 Task1 PrimeNumber IndexPoint Temperature Convert --- IndexPoint.java | 56 ++++++++++++++++++++++++++++++ PrimeNumber.java | 26 ++++++++++++++ TemperatureConvert.java | 76 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 158 insertions(+) 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