Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java Credit Card Verification Application This programming assignment involves writing a Java application which allows the user to CREATE and VERIFY credit card accounts. The
Java
Credit Card Verification Application This programming assignment involves writing a Java application which allows the user to CREATE and VERIFY credit card accounts. The user types textual commands which operate as shown in the examples below (This sample list is provided to aid your understanding. It is not an exhaustive list of test cases for the program.) create v In this example, the user is requesting to CREATE a new "Visa" credit card account. The program should create a new account and assign it a credit limit as described later in this document create AE In this example, the user is requesting to CREATE a new "American Express" credit card account. The program should create a new account and assign it a credit limit as described later in this document verify 5439123412345678 250.00 In this example, the user is requesting to process a purchase of $250.00. First, the software must VERIFY that account 5439123412345678 has at least $250.00 of available credit. If the account does have at least $250.00 of available credit, then the available credit is reduced by $250.00 and the program outputs a message indicating that the transaction was approved. This type of transaction is called a "debit" verify 5439123412345678 -125.00 In this example, the user is requesting to process a return of $125.00 First, the software must VERIFY that adding $125.00 to the available credit of account 5439123412345678 will not raise the available credit above the Maximum Credit Limit for this account. If the transaction is allowed, then the available credit is increased by $125.00, and the program outputs a message indicating that the transaction was approved. This type of transaction is called a "credit", Credit Card Account Numbers and Issuer Codes Each credit card account number should be represented in the program by a String object. The text we place in this String consists of 16 decimal digits: The first digit is assigned according to the table on the next page. The remaining 15 digits should be generated randomly. When initially creating each account, the maximum credit limit is based on the last digit of the credit card account number. That is, if the last digit is in the range of 0-4, then a maximum credit limit of $1000.00 should be assigned. Otherwise, the maximum credit limit of $500.00 should be assigned Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started