backup
This commit is contained in:
BIN
2/Eingabe/BruttoNetto.class
Normal file
BIN
2/Eingabe/BruttoNetto.class
Normal file
Binary file not shown.
27
2/Eingabe/BruttoNetto.java
Normal file
27
2/Eingabe/BruttoNetto.java
Normal 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)));
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
28
2/Eingabe/BruttoNetto.~ava
Normal file
28
2/Eingabe/BruttoNetto.~ava
Normal 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)));
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
BIN
2/Eingabe/Kraftstoffverbrauch.class
Normal file
BIN
2/Eingabe/Kraftstoffverbrauch.class
Normal file
Binary file not shown.
17
2/Eingabe/Kraftstoffverbrauch.java
Normal file
17
2/Eingabe/Kraftstoffverbrauch.java
Normal 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));
|
||||
}
|
||||
}
|
||||
16
2/Eingabe/Kraftstoffverbrauch.~ava
Normal file
16
2/Eingabe/Kraftstoffverbrauch.~ava
Normal 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
BIN
2/Eingabe/Sparbuch.class
Normal file
Binary file not shown.
23
2/Eingabe/Sparbuch.java
Normal file
23
2/Eingabe/Sparbuch.java
Normal 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
24
2/Eingabe/Sparbuch.~ava
Normal 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
BIN
2/Eingabe/Steigung.class
Normal file
Binary file not shown.
37
2/Eingabe/Steigung.java
Normal file
37
2/Eingabe/Steigung.java
Normal 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
36
2/Eingabe/Steigung.~ava
Normal 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
0
2/Eingabe/error.txt
Normal file
Reference in New Issue
Block a user