subject
Computers and Technology, 05.05.2020 22:23 Geo777

You are to create a new Exception for improper format of credit card number for an online web store. This Exception class will be a subclass, inherited from the existing Exception class. Note that each credit card company has their own standards and format, so you may want a different Exception for each company (I leave that choice up to you). Research what are the formats and rules for each of the following credit cards: Visa, Master Card, Discover, American Express. Write a Java code method that checks a provided credit card number. It will receive two parameters, the credit card account number and the security code (that is the 3 or 4 digit code on the back of the card). The Exception should be thrown if the credit card provided does not match any of those companies. Also write an Exception Handler for the Exception. This will be catch block in the same method. The Handler will ask for the credit card number to be re-entered (in case it was entered wrong). If the number still doesn’t match, then print an error message and reject the credit card number. Wrap the above method in a Java class that has a null and empty constructor and this method. Note that this MUST be separate from the Exception class that you created in the first paragraph, because this code is USING the class created.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 23:00
In a file-oriented information system, a work file stores relatively permanent data about an entity is created and saved for backup and recovery purposes stores records that contain day-to-day business and operational data is a temporary file created by an information system for a single task
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
To check whether your writing is clear , you can
Answers: 2
question
Computers and Technology, 24.06.2019 17:00
What are some examples of what can be changed through options available in the font dialog box? check all that apply. font family italicizing bolding pasting drop shadow cutting character spacing special symbols
Answers: 2
question
Computers and Technology, 24.06.2019 17:00
The length of time that a slide appears before automatically advancing to the next slide can be set in the timing group under the transitions tab. transition to this slide group under the transitions tab. timing group in the master slide view. transition to this slide group in the master slide view.
Answers: 1
You know the right answer?
You are to create a new Exception for improper format of credit card number for an online web store....
Questions
question
Health, 20.12.2020 21:10
question
World Languages, 20.12.2020 21:10
Questions on the website: 13722363