Purchase Solution

Designing a credit card payment program

Not what you're looking for?

Ask Custom Question

Design and create an efficient, well-documented solution that allows a user to repeatedly create and manage credit card accounts. When a new credit card account is opened, the credit company sets a credit limit for the user that specifies the maximum balance allowed on the account. The balance starts at $0. The user can make purchases and charge them to the credit card, increasing the balance. The purchase should be declined if it would put the balance over the credit limit. At the end of each month, the user must pay the entire balance on the card, or else the credit company charges the monthly interest on the balance. You may assume the user makes one payment per month.

There are two types of accounts: Standard and Gold. The Standard account has a monthly interest rate of 18% and a monthly credit limit of $4000. A Gold account has a monthly interest rate of 15%, credit limit of $10,000 and a 1% cash back (applied as a reduction in balance).

Implement a class CreditAccount that includes an accountNumber (automatically generated), balance, accountNickname, accountType.

Private Variables: accountNumber, accountBalance, creditLimit, interestRate. Accounts can be:
* opened (using a Constructor: include a Boolean false if a Standard account is to be opened and true if it is a Gold account);
* charged (make sure amount is valid);
* payment made (add appropriate interest and deduction if Gold).

Be sure to include appropriate constants, mutators and accessors (including a toString method).

In the application that implements the CreditAccount class, the user should be presented with a menu, allowing them to choose from:
* Opening a new CreditAccount (no more than 10 credit cards permitted).
* Make a charge to a credit card (choose the account to charge via a menu of the account nicknames).
* Make a payment to a credit card (choose the account to charge via a menu of the account nicknames).
* Quit the application (when this is chosen, present the user with a total of all of the credit card balances).

I am not looking for a complete solution, but some guidance with the Java code part of it. Even text based menu will do, but some pointers on creating a GUI menu will be most welcome.

Purchase this Solution

Solution Summary

Solution uses text based menu, however it also provides equivalent GUI version for some of the functions that should help you in converting the remaining functions for GUI version.

Solution Preview

Please rename attached 527303-CreditAccountManager.java as CreditAccountManager.java before compiling and executing it.

javac CreditAccountManager.java (to compile the program)
java CreditAccountManager (to run the ...

Purchase this Solution


Free BrainMass Quizzes
Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Basic Networking Questions

This quiz consists of some basic networking questions.