Initial sharing of project
commit
e4f460f7a1
|
@ -0,0 +1,49 @@
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Beschreiben Sie hier die Klasse Eingabe.
|
||||||
|
*
|
||||||
|
* @author (Ihr Name)
|
||||||
|
* @version (eine Versionsnummer oder ein Datum)
|
||||||
|
*/
|
||||||
|
import java.util.Scanner;
|
||||||
|
public class Eingabe
|
||||||
|
{
|
||||||
|
public static void eingabe()
|
||||||
|
{
|
||||||
|
Scanner sc = new Scanner (System.in);
|
||||||
|
int eingabe1 = sc.nextInt();
|
||||||
|
int eingabe2 = sc.nextInt();
|
||||||
|
int summe;
|
||||||
|
summe = eingabe1 + eingabe2;
|
||||||
|
|
||||||
|
int differenz;
|
||||||
|
differenz = eingabe1 - eingabe2;
|
||||||
|
|
||||||
|
int produkt;
|
||||||
|
produkt = eingabe1 * eingabe2;
|
||||||
|
|
||||||
|
int quotient;
|
||||||
|
quotient = eingabe1 / eingabe2;
|
||||||
|
|
||||||
|
int rest;
|
||||||
|
rest = eingabe1 % eingabe2;
|
||||||
|
|
||||||
|
|
||||||
|
System.out.print("summe");
|
||||||
|
System.out.println(summe);
|
||||||
|
|
||||||
|
System.out.print("differenz");
|
||||||
|
System.out.println(differenz);
|
||||||
|
|
||||||
|
System.out.print("produkt");
|
||||||
|
System.out.println(produkt);
|
||||||
|
|
||||||
|
System.out.print("quotient");
|
||||||
|
System.out.println(quotient);
|
||||||
|
|
||||||
|
System.out.print("rest");
|
||||||
|
System.out.println(rest);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Beschreiben Sie hier die Klasse HelloWorld.
|
||||||
|
*
|
||||||
|
* @author (Ihr Name)
|
||||||
|
* @version (eine Versionsnummer oder ein Datum)
|
||||||
|
*/
|
||||||
|
public class HelloWorld
|
||||||
|
{
|
||||||
|
public static void HelloWorld()
|
||||||
|
{
|
||||||
|
System.out.println("Hello World");
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
Dies ist die README-Datei des Projekts. Hier sollten Sie Ihr Projekt
|
||||||
|
beschreiben.
|
||||||
|
Erzählen Sie dem Leser (jemand, der nichts über dieses Projekt weiss),
|
||||||
|
alles, was er/sie wissen muss. Üblicherweise sollte der Kommentar
|
||||||
|
zumindest die folgenden Angaben umfassen:
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
PROJEKTBEZEICHNUNG:
|
||||||
|
PROJEKTZWECK:
|
||||||
|
VERSION oder DATUM:
|
||||||
|
WIE IST DAS PROJEKT ZU STARTEN:
|
||||||
|
AUTOR(EN):
|
||||||
|
BENUTZERHINWEISE:
|
|
@ -0,0 +1,39 @@
|
||||||
|
#BlueJ package file
|
||||||
|
editor.fx.0.height=0
|
||||||
|
editor.fx.0.width=0
|
||||||
|
editor.fx.0.x=0
|
||||||
|
editor.fx.0.y=0
|
||||||
|
objectbench.height=89
|
||||||
|
objectbench.width=461
|
||||||
|
package.divider.horizontal=0.6
|
||||||
|
package.divider.vertical=0.8208955223880597
|
||||||
|
package.editor.height=433
|
||||||
|
package.editor.width=661
|
||||||
|
package.editor.x=82
|
||||||
|
package.editor.y=175
|
||||||
|
package.frame.height=600
|
||||||
|
package.frame.width=800
|
||||||
|
package.numDependencies=0
|
||||||
|
package.numTargets=2
|
||||||
|
package.showExtends=true
|
||||||
|
package.showUses=true
|
||||||
|
project.charset=UTF-8
|
||||||
|
readme.height=60
|
||||||
|
readme.name=@README
|
||||||
|
readme.width=48
|
||||||
|
readme.x=10
|
||||||
|
readme.y=10
|
||||||
|
target1.height=70
|
||||||
|
target1.name=Eingabe
|
||||||
|
target1.showInterface=false
|
||||||
|
target1.type=ClassTarget
|
||||||
|
target1.width=120
|
||||||
|
target1.x=70
|
||||||
|
target1.y=10
|
||||||
|
target2.height=70
|
||||||
|
target2.name=HelloWorld
|
||||||
|
target2.showInterface=false
|
||||||
|
target2.type=ClassTarget
|
||||||
|
target2.width=120
|
||||||
|
target2.x=100
|
||||||
|
target2.y=140
|
Loading…
Reference in New Issue