new balance for a new balance less than $50 $30 plus 10% of the new balance for a new balance greater than or equal to $50So if the new balance is $38.00 then the person must pay the whole $38.00; if the new balance is $128 then the person must pay $42.80 ($30 + $12.80); if the balance is $350 the minimum payment is $65 (30 + 35).
In addition the program should determine if the user has exceeded the credit limit (assume the limit is $1000). If so, a message should be printed letting the user know how much over the limit he/she is and that no new charges will be accepted. The charge account statement should be printed in the following format (print the actual dollar amounts in each place using currency format from the NumberFormat class - the WaterBill.java program from lab had an example):
CS CARD International Statement =============================== Previous Balance: $ Additional Charges: $ Interest: $ New Balance: $ Minimum Payment: $
The message about being over the limit should be printed at the bottom of the statement (no message should be printed for customers who are not over).
As usual, use good programming techniques. You should use good variable names, constants where appropriate, whitespace, and correct indentation and alignment of statements. Documentation must include a comment for the class (it should include the @author tag and a clear, complete description of what the program does) and comments for the main method. The program should be broken up into logical sections and each section should be documented with a brief description of what it does. Your program should use the lab5 package you created during lab.