This commit is contained in:
Mykola Fesenko
2025-07-29 08:08:23 +02:00
commit 899a05907b
355 changed files with 11002 additions and 0 deletions

BIN
2/Eingabe/BruttoNetto.class Normal file

Binary file not shown.

View File

@@ -0,0 +1,27 @@
import java.util.Scanner;
public class BruttoNetto {
public static void main(String args[]) {
Scanner input = new Scanner(System.in);
int gehalt = 3000;
double steuer = 19.0;
System.out.print("Gehalt = ");
if(input.hasNextInt()) {
gehalt = input.nextInt();
}
System.out.print("Steuer = ");
if(input.hasNextDouble()) {
steuer = input.nextDouble();
}
steuer = steuer * .01;
steuer = steuer + 1;
System.out.println("End Gehalt: " + (gehalt/steuer));
System.out.println("Steuer: " + ((double)gehalt * (steuer -1)));
}
}

View File

@@ -0,0 +1,28 @@
import java.util.Scanner;
public class BruttoNetto {
public static void main(String args[]) {
Scanner input = new Scanner(System.in);
int gehalt = 3000;
double steuer = 19.0;
System.out.print("Gehalt = ");
if(input.hasNextInt()) {
gehalt = input.nextInt();
}
System.out.print("Steuer = ");
if(input.hasNextDouble()) {
steuer = input.nextDouble();
}
steuer = steuer * .01;
System.out.println(steuer);
steuer = steuer + 1;
System.out.println("End Gehalt: " + (gehalt/steuer));
System.out.println("Steuer: " + ((double)gehalt * (steuer -1)));
}
}

Binary file not shown.

View File

@@ -0,0 +1,17 @@
import java.util.Scanner;
public class Kraftstoffverbrauch {
public static void main(String args[]) {
Scanner input = new Scanner(System.in);
double gefahreneKm = 55.0;
double kraftstoffmenge = 5.0;
System.out.print("KM: ");
if(input.hasNextDouble()) {
gefahreneKm = input.nextDouble();
}
System.out.print("kraftstoffmenge: ");
if(input.hasNextDouble()) {
kraftstoffmenge = input.nextDouble();
}
System.out.println("Kraftstoffverbrauch: " + ((kraftstoffmenge/gefahreneKm)*100));
}
}

View File

@@ -0,0 +1,16 @@
import java.util.Scanner;
public class Kraftstoffverbrauch {
public static void main(String args[]) {
Scanner input = new Scanner(System.in);
double gefahreneKm = 55.0;
double kraftstoffmenge = 5.0;
System.out.print("KM: ");
if(input.hasNextDouble()) {
gefahreneKm = input.nextDouble();
}
if(input.hasNextDouble()) {
gefahreneKm = input.nextDouble();
}
System.out.println("Kraftstoffverbrauch: " + ((kraftstoffmenge/gefahreneKm)*100));
}
}

BIN
2/Eingabe/Sparbuch.class Normal file

Binary file not shown.

23
2/Eingabe/Sparbuch.java Normal file
View File

@@ -0,0 +1,23 @@
import java.util.Scanner;
public class Sparbuch {
public static void main(String args[]) {
Scanner input = new Scanner(System.in);
int betrag = 1000;
double zinssatz = 1.5;
System.out.print("Betrag: ");
if(input.hasNextInt()) {
betrag = input.nextInt();
}
System.out.println("");
System.out.print("Zinssatz: ");
if (input.hasNextDouble()) {
zinssatz = input.nextDouble();
} // end of if
System.out.println(zinssatz * .01);
for (int i = 0;i < 26;i++ ) {
betrag += (double)betrag * (zinssatz * .01);
System.out.println("Jahr: " + i + " Betrag: " + betrag);
}
}
}

24
2/Eingabe/Sparbuch.~ava Normal file
View File

@@ -0,0 +1,24 @@
import java.util.Scanner;
public class Sparbuch {
public static void main(String args[]) {
Scanner input = new Scanner(System.in);
int betrag = 1000;
double zinssatz = 1.5;
System.out.print("Betrag: ");
if(input.hasNextInt()) {
betrag = input.nextInt();
}
System.out.println("");
System.out.print("Zinssatz: ");
if (input.hasNextDouble()) {
zinssatz = input.nextDouble();
} // end of if
System.out.println(zinssatz * .01);
for (int i = 0;i < 26;i++ ) {
betrag += (double)betrag * (zinssatz * .01);
System.out.println("Jahr: " + i + " Betrag: " + betrag);
}
}
}

BIN
2/Eingabe/Steigung.class Normal file

Binary file not shown.

37
2/Eingabe/Steigung.java Normal file
View File

@@ -0,0 +1,37 @@
import java.util.Scanner;
public class Steigung {
public static void main(String args[]) {
double x1 = 4;
double y1 = 2;
double x2 = 6;
double y2 = 7;
Scanner input = new Scanner(System.in);
System.out.print("X1 = ");
if(input.hasNextDouble()) {
x1 = input.nextDouble();
}
System.out.print("Y1 = ");
if(input.hasNextDouble()) {
y1 = input.nextDouble();
}
System.out.print("X2 = ");
if(input.hasNextDouble()) {
x2 = input.nextDouble();
}
System.out.print("Y2 = ");
if(input.hasNextDouble()) {
y2 = input.nextDouble();
}
System.out.println("Steigung: " + ((y2 - y1)/(x2 - x1)));
}
}

36
2/Eingabe/Steigung.~ava Normal file
View File

@@ -0,0 +1,36 @@
import java.util.Scanner;
public class Steigung {
public static void main(String args[]) {
double x1 = 4;
double y1 = 2;
double x2 = 6;
double y2 = 7;
Scanner input = new Scanner(System.in);
System.out.print("X1 = ");
if(input.hasNextDouble()) {
x1 = input.nextDouble();
}
System.out.print("Y1 = ");
if(input.hasNextDouble()) {
y1 = input.nextDouble();
}
System.out.print("X2 = ");
if(input.hasNextDouble()) {
x2 = input.nextDouble();
}
System.out.print("Y2 = ");
if(input.hasNextDouble()) {
y2 = input.nextDouble();
}
System.out.println("Steigung: " + ((y2 - y1)/(x2 - x1)));
}
}

0
2/Eingabe/error.txt Normal file
View File