Browse Source

Steuer 19% Berechner

remotes/origin/develop
fdai7460 2 years ago
parent
commit
c27bfcc3fc
  1. 7
      src/main/java/src/TasksFrame.java
  2. 2
      src/main/java/src/sudoku.json
  3. 11
      src/test/java/src/TasksFrameTest.java

7
src/main/java/src/TasksFrame.java

@ -240,6 +240,13 @@ public class TasksFrame extends JFrame {
return roundOff;
}
public double steuer19(double x)
{
double steuer=0;
steuer = (x * 0.19) / 1.19;
return steuer;
}
private void setupUmrechnen() {
JPanel jPanel = setupPanel("Dezimal nach Binär");

2
src/main/java/src/sudoku.json
File diff suppressed because it is too large
View File

11
src/test/java/src/TasksFrameTest.java

@ -38,6 +38,17 @@ class TasksFrameTest {
}
@Test
void setupSteuer19(){
TasksFrame tasksFrame = new TasksFrame();
double x = tasksFrame.steuer19(1190);
assertEquals(190,x, 0.01);
double x2 = tasksFrame.steuer19(250);
assertEquals(39.92,x2,0.01);
double x3 = tasksFrame.steuer19(0);
assertEquals(0,x3,0.01);
}
@Test
void setupDiff(){
TasksFrame frame = new TasksFrame();

Loading…
Cancel
Save