Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CIT239 Java Programming Programming Project 2 Due date: S March 12, 2017 The due date for this programming assignment is Sunday, March 12, 2017 Acknowledgement:

image text in transcribed

image text in transcribed

image text in transcribedimage text in transcribed

image text in transcribed

image text in transcribed

CIT239 Java Programming Programming Project 2 Due date: S March 12, 2017 The due date for this programming assignment is Sunday, March 12, 2017 Acknowledgement: This assignment was adapted from one used by Professor Arland Richmond, who has taught CIT-239 many time 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 belo (This sample list is provided to aid your understanding. It is not an exhaustive list oftest cases for the program.O Create v n this example, the user is requesting io 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 ME In this example, the user is requesting to CREATE a new "American Express" creditcard account. The program should creatc 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 ofavailable 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 S125.00. Tirs, the software must VERIFY that adding $125.00 to the available credit ofaccount 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 S125.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. Ouherwise, the maximum credit limit of $500.00 should be assigned CIT239-SU Project 20170219.docx. 2/18/2017 4:03 PM

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions