diff --git a/Faza Ahda, 1301154292, IF-39-12/build.xml b/Faza Ahda, 1301154292, IF-39-12/build.xml new file mode 100644 index 0000000..c65cd73 --- /dev/null +++ b/Faza Ahda, 1301154292, IF-39-12/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project tugas 1. + + + diff --git a/Faza Ahda, 1301154292, IF-39-12/build/classes/tugas/pkg1/Tugas1.class b/Faza Ahda, 1301154292, IF-39-12/build/classes/tugas/pkg1/Tugas1.class new file mode 100644 index 0000000..0241100 Binary files /dev/null and b/Faza Ahda, 1301154292, IF-39-12/build/classes/tugas/pkg1/Tugas1.class differ diff --git a/Faza Ahda, 1301154292, IF-39-12/build/classes/tugas/pkg1/index.class b/Faza Ahda, 1301154292, IF-39-12/build/classes/tugas/pkg1/index.class new file mode 100644 index 0000000..3d673da Binary files /dev/null and b/Faza Ahda, 1301154292, IF-39-12/build/classes/tugas/pkg1/index.class differ diff --git a/Faza Ahda, 1301154292, IF-39-12/build/classes/tugas/pkg1/prima.class b/Faza Ahda, 1301154292, IF-39-12/build/classes/tugas/pkg1/prima.class new file mode 100644 index 0000000..c40c441 Binary files /dev/null and b/Faza Ahda, 1301154292, IF-39-12/build/classes/tugas/pkg1/prima.class differ diff --git a/Faza Ahda, 1301154292, IF-39-12/build/classes/tugas/pkg1/temperatureconv.class b/Faza Ahda, 1301154292, IF-39-12/build/classes/tugas/pkg1/temperatureconv.class new file mode 100644 index 0000000..52809d4 Binary files /dev/null and b/Faza Ahda, 1301154292, IF-39-12/build/classes/tugas/pkg1/temperatureconv.class differ diff --git a/Faza Ahda, 1301154292, IF-39-12/manifest.mf b/Faza Ahda, 1301154292, IF-39-12/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/Faza Ahda, 1301154292, IF-39-12/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/Faza Ahda, 1301154292, IF-39-12/nbproject/build-impl.xml b/Faza Ahda, 1301154292, IF-39-12/nbproject/build-impl.xml new file mode 100644 index 0000000..714673e --- /dev/null +++ b/Faza Ahda, 1301154292, IF-39-12/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/Faza Ahda, 1301154292, IF-39-12/nbproject/genfiles.properties b/Faza Ahda, 1301154292, IF-39-12/nbproject/genfiles.properties new file mode 100644 index 0000000..6d8079c --- /dev/null +++ b/Faza Ahda, 1301154292, IF-39-12/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2730d5f1 +build.xml.script.CRC32=66bda6ec +build.xml.stylesheet.CRC32=8064a381@1.79.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=2730d5f1 +nbproject/build-impl.xml.script.CRC32=e6641b3c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/Faza Ahda, 1301154292, IF-39-12/nbproject/private/private.properties b/Faza Ahda, 1301154292, IF-39-12/nbproject/private/private.properties new file mode 100644 index 0000000..d689f61 --- /dev/null +++ b/Faza Ahda, 1301154292, IF-39-12/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=/home/faza/.netbeans/8.1/build.properties diff --git a/Faza Ahda, 1301154292, IF-39-12/nbproject/private/private.xml b/Faza Ahda, 1301154292, IF-39-12/nbproject/private/private.xml new file mode 100644 index 0000000..9e408da --- /dev/null +++ b/Faza Ahda, 1301154292, IF-39-12/nbproject/private/private.xml @@ -0,0 +1,12 @@ + + + + + + file:/home/faza/Documents/tugas%20PBO/tugas%201/src/tugas/pkg1/temperatureconv.java + file:/home/faza/Documents/tugas%20PBO/tugas%201/src/tugas/pkg1/prima.java + file:/home/faza/Documents/tugas%20PBO/tugas%201/src/tugas/pkg1/Tugas1.java + file:/home/faza/Documents/tugas%20PBO/tugas%201/src/tugas/pkg1/index.java + + + diff --git a/Faza Ahda, 1301154292, IF-39-12/nbproject/project.properties b/Faza Ahda, 1301154292, IF-39-12/nbproject/project.properties new file mode 100644 index 0000000..d7a204a --- /dev/null +++ b/Faza Ahda, 1301154292, IF-39-12/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}/tugas_1.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=tugas.pkg1.Tugas1 +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/Faza Ahda, 1301154292, IF-39-12/nbproject/project.xml b/Faza Ahda, 1301154292, IF-39-12/nbproject/project.xml new file mode 100644 index 0000000..39e9fe8 --- /dev/null +++ b/Faza Ahda, 1301154292, IF-39-12/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + tugas 1 + + + + + + + + + diff --git a/Faza Ahda, 1301154292, IF-39-12/src/tugas/pkg1/Tugas1.java b/Faza Ahda, 1301154292, IF-39-12/src/tugas/pkg1/Tugas1.java new file mode 100644 index 0000000..f61719e --- /dev/null +++ b/Faza Ahda, 1301154292, IF-39-12/src/tugas/pkg1/Tugas1.java @@ -0,0 +1,24 @@ +/* +Nama: Faza Ahda +NIM: 1301154292 +Kelas: IF-39-12 + * 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 tugas.pkg1; + +/** + * + * @author faza + */ +public class Tugas1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/Faza Ahda, 1301154292, IF-39-12/src/tugas/pkg1/index.java b/Faza Ahda, 1301154292, IF-39-12/src/tugas/pkg1/index.java new file mode 100644 index 0000000..494af40 --- /dev/null +++ b/Faza Ahda, 1301154292, IF-39-12/src/tugas/pkg1/index.java @@ -0,0 +1,46 @@ +/* +Nama: Faza Ahda +NIM: 1301154292 +Kelas: IF-39-12 + * 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 tugas.pkg1; + +import java.util.Scanner; + +/** + * + * @author faza + */ +public class index { + public static void main(String[] args) { + // TODO code application logic here + int akhir; + Scanner cin = new Scanner(System.in); + System.out.print("Masukan Nilai UTS: "); + int nilai1=cin.nextInt(); + System.out.print("Masukan Nilai UAS: "); + int nilai2=cin.nextInt(); + System.out.print("Masukan Nilai Quiz: "); + int nilai3=cin.nextInt(); + akhir = (35*nilai1/100) + (40*nilai2/100) + (25*nilai3/100); + if (akhir < 49){ + System.out.println ("Failed"); + }else if (akhir >= 85 && akhir <= 100){ + System.out.println ("Excellent"); + }else if (akhir >= 75 && akhir <= 84){ + System.out.println ("Very Good"); + }else if (akhir >= 65 && akhir <= 74){ + System.out.println ("Good"); + }else if (akhir >= 50 && akhir <= 64){ + System.out.println ("Accepted"); + }else{ + System.out.println("Anda salah menginputkan akhir"); + } + + + } + +} diff --git a/Faza Ahda, 1301154292, IF-39-12/src/tugas/pkg1/prima.java b/Faza Ahda, 1301154292, IF-39-12/src/tugas/pkg1/prima.java new file mode 100644 index 0000000..b537b16 --- /dev/null +++ b/Faza Ahda, 1301154292, IF-39-12/src/tugas/pkg1/prima.java @@ -0,0 +1,42 @@ +/* +Nama: Faza Ahda +NIM: 1301154292 +Kelas: IF-39-12 + * 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 tugas.pkg1; + +import java.util.Scanner; + +/** + * + * @author faza + */ +public class prima { + public static void main(String[] args) { + // TODO code application logic here + Scanner cin = new Scanner(System.in); + System.out.print("Masukan Bialangan: "); + int bil=cin.nextInt(); + boolean prima = true; + for (int i=2; i