|
@ -8,6 +8,8 @@ import java.awt.event.ActionEvent; |
|
|
import java.awt.event.ActionListener; |
|
|
import java.awt.event.ActionListener; |
|
|
import java.util.ArrayList; |
|
|
import java.util.ArrayList; |
|
|
import java.util.LinkedList; |
|
|
import java.util.LinkedList; |
|
|
|
|
|
import java.lang.Character; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class TasksFrame extends JFrame { |
|
|
public class TasksFrame extends JFrame { |
|
|
|
|
|
|
|
@ -191,8 +193,6 @@ public class TasksFrame extends JFrame { |
|
|
return Math.round(result * 100.0) / 100.0; |
|
|
return Math.round(result * 100.0) / 100.0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void setupDurchschnitt() { |
|
|
private void setupDurchschnitt() { |
|
|
|
|
|
|
|
|
JPanel jPanel = setupPanel("Durchschnitt"); |
|
|
JPanel jPanel = setupPanel("Durchschnitt"); |
|
@ -247,8 +247,6 @@ public class TasksFrame extends JFrame { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void setupExponent() { |
|
|
private void setupExponent() { |
|
|
|
|
|
|
|
|
JPanel jPanel = setupPanel("Potenzrechner"); |
|
|
JPanel jPanel = setupPanel("Potenzrechner"); |
|
@ -391,6 +389,7 @@ public class TasksFrame extends JFrame { |
|
|
return steuer; |
|
|
return steuer; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void setupSteuer() |
|
|
private void setupSteuer() |
|
|
{ |
|
|
{ |
|
|
JPanel jPanel = setupPanel("Steuer Berechner von Kaufprodukten"); |
|
|
JPanel jPanel = setupPanel("Steuer Berechner von Kaufprodukten"); |
|
@ -980,6 +979,13 @@ public class TasksFrame extends JFrame { |
|
|
jPanel.add(k); |
|
|
jPanel.add(k); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public int bin1(int a, int b) |
|
|
|
|
|
{ |
|
|
|
|
|
int x = 0; |
|
|
|
|
|
x = a*a + 2*a*b + b*b; |
|
|
|
|
|
return x; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setupArea() |
|
|
public void setupArea() |
|
|
{ |
|
|
{ |
|
|