Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public class Aktiendepot{
  2. public int amount;
  3. public double price;
  4.  
  5. public Aktiendepot (int amount,double value) {
  6. this.amount=amount;
  7. this.value=value;
  8. }
  9.  
  10. public double Transaktionsgebühren(int amount){
  11. double packagePrice = 1;
  12. double singleCharge = 2;
  13. return singleCharge + amount*packagePrice;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement