Initial sharing of project
commit
9715d8ac1a
Binary file not shown.
|
@ -0,0 +1,28 @@
|
|||
|
||||
/**
|
||||
* 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 rechner(){
|
||||
Scanner sc = new Scanner(System.in);
|
||||
int eingabe1 = sc.nextInt();
|
||||
int eingabe2 = sc.nextInt();
|
||||
|
||||
int Summe = eingabe1 + eingabe2;
|
||||
int Differenz = eingabe1 - eingabe2;
|
||||
int Produkt = eingabe1 * eingabe2;
|
||||
int Quotient = eingabe1 / eingabe2;
|
||||
int Rest = eingabe1 % eingabe2;
|
||||
|
||||
System.out.println("Summe:" + Summe);
|
||||
System.out.println("Differenz:" + Differenz);
|
||||
System.out.println("Produkt:" + Produkt);
|
||||
System.out.println("Quotient:" + Quotient);
|
||||
System.out.println("Rest:" + Rest);
|
||||
}
|
||||
}
|
|
@ -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,22 @@
|
|||
|
||||
/**
|
||||
* Beschreiben Sie hier die Klasse Methoden.
|
||||
*
|
||||
* @author (Ihr Name)
|
||||
* @version (eine Versionsnummer oder ein Datum)
|
||||
*/
|
||||
public class methoden
|
||||
{
|
||||
public static double summe(double x, double y)
|
||||
{
|
||||
double summe;
|
||||
summe=x+y;
|
||||
return summe;
|
||||
}
|
||||
|
||||
public static double potenz(double a, double b)
|
||||
{
|
||||
double potenz;
|
||||
potenz=a;
|
||||
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
#BlueJ package file
|
||||
editor.fx.0.height=764
|
||||
editor.fx.0.width=1162
|
||||
editor.fx.0.x=860
|
||||
editor.fx.0.y=231
|
||||
objectbench.height=70
|
||||
objectbench.width=693
|
||||
package.divider.horizontal=0.6
|
||||
package.divider.vertical=0.8213457076566125
|
||||
package.editor.height=347
|
||||
package.editor.width=578
|
||||
package.editor.x=717
|
||||
package.editor.y=342
|
||||
package.frame.height=495
|
||||
package.frame.width=717
|
||||
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=methoden
|
||||
target2.showInterface=false
|
||||
target2.type=ClassTarget
|
||||
target2.width=120
|
||||
target2.x=70
|
||||
target2.y=100
|
Loading…
Reference in New Issue