Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java Student Help - Simple program for credit limit on charge account?

Status
Not open for further replies.

NewToJava

Programmer
May 14, 2000
4
US
(Program due on Monday, May 14)<br>HI! I am student trying to get a program going that will determine if the store customer has exceeded the credit limit on a charge acount.&nbsp;&nbsp;<br><br>I have:<br>account #<br>starting balance<br>total of all items charged for month<br>total credit applied to account<br>credit limit amount<br><br>the program should imput each of thise facts from input dialogsas integers, calculate the new balance, display balance and determine if the new balance exceeds limit.<br><br>I am limited to if, if/else, switch, while, do/while if someone has a hint I would appreciate it.
 
hint....name your variables appropiately get into the habbit :D<br><br>But...would this be done in Swing? or on a Shell?<br>(ie on DOS)?
 
Hint: add the total credits applied to the starting balance, then subtract the total items charged.&nbsp;&nbsp;Compare the result with the credit limit.<br><br>It's important to add the credits first, as general business rules say that deposits/credits must be applied before any charges/withdrawals.&nbsp;&nbsp;Look at your past bank statements where you made a deposit and a withdrawal (that otherwise would have made you overdrawn) on the same day, and your bank should have done this.<br><br>Chip H.<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top