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, 23.06.2019 09:20
How to print: number is equal to: 1 and it is odd number number is equal to: 2 and it is even number number is equal to: 3 and it is odd number number is equal to: 4 and it is even number in the console using java using 1 if statement, 1 while loop, 1 else loop also using % to check odds and evens
Answers: 3
question
Computers and Technology, 23.06.2019 21:10
Asample of 200 rom computer chips was selected on each of 30 consecutive days, and the number of nonconforming chips on each day was as follows: 8, 19, 27, 17, 38, 18, 4, 27, 9, 22, 30, 17, 14, 23, 15, 14, 12, 20, 13, 18, 14, 20, 9, 27, 30, 13, 10, 19, 12, 26. construct a p chart and examine it for any out-of-control points. (round your answers to four decimal places.)
Answers: 2
question
Computers and Technology, 23.06.2019 22:20
If i uninstall nba 2k 19 from my ps4 will my career be gone forever?
Answers: 2
question
Computers and Technology, 23.06.2019 23:30
A. in packet tracer, only the server-pt device can act as a server. desktop or laptop pcs cannot act as a server. based on your studies so far, explain the client-server model.
Answers: 2
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
Biology, 12.10.2019 22:30
question
Mathematics, 12.10.2019 22:30
Questions on the website: 13722365