-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alot of things are unfinished so don't hate me
- Loading branch information
Joe Hill
committed
Mar 25, 2017
1 parent
cb3f002
commit 0e74032
Showing
11 changed files
with
206 additions
and
19 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package model; | ||
|
||
public class OwnedRealEstate | ||
{ | ||
private String _name; | ||
private int _price; | ||
private int _downPayment; | ||
|
||
public OwnedRealEstate(String name, int price, int downPayment) | ||
{ | ||
_name = name; | ||
_price = price; | ||
_downPayment = downPayment; | ||
} | ||
|
||
public String getName() { | ||
return _name; | ||
} | ||
|
||
public int getPrice() { | ||
return _price; | ||
} | ||
|
||
public int getDownPayment() { | ||
return _downPayment; | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package model; | ||
|
||
public class Stock | ||
{ | ||
private static int _sharePrice; | ||
private int _numShares; | ||
|
||
public Stock(int sharePrice, int numShares) | ||
{ | ||
_sharePrice = sharePrice; | ||
_numShares = numShares; | ||
} | ||
|
||
public void setSharePrice(int newPrice) | ||
{ | ||
_sharePrice = newPrice; | ||
} | ||
|
||
public int getSharePrice() | ||
{ | ||
return _sharePrice; | ||
} | ||
|
||
/** | ||
* | ||
* @return returns NEGATED version of the cash outlay for a stock | ||
*/ | ||
public int getCashOut() | ||
{ | ||
return -1 * _sharePrice * _numShares; | ||
} | ||
|
||
public int getNumShares() | ||
{ | ||
return _numShares; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters