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, 22.06.2019 08:30
1.the index finger on your right hand types the f r v 4 j u m 7 h y 6 n lo.9 j u 7 m g t 5 b 2.if you need to multiply 400, 2, and 1 ½, what would you type on the numeric keypad? 400*2*1.5 400/2*1.5 400/2/1.5 400*2*1½ 3.select all examples of proper keyboarding technique. rest your fingers gently on the home row or home keys. slouch in your chair. rest your palms on the keyboard. relax your fingers. keep your hands lower than your elbows.
Answers: 1
question
Computers and Technology, 22.06.2019 13:00
Write a program which asks you to enter a name in the form of first middle initial last. so you might enter for example samuel p. clemens. use getline to read in the string because it contains spaces. also, apparently the shift key on your keyboard doesn’t work, because you enter it all lower case. pass the string to a function which uses .find to locate the letters which need to be upper case and use toupper to convert those characters to uppercase. the revised string should then be returned to main in the form last, first mi where it will be displayed.
Answers: 1
question
Computers and Technology, 22.06.2019 15:10
David is in week 3 of his current ashford course and has a paper due by monday night at midnight. he has finished everything but the concluding paragraph. as he boots up his computer to work on it, he sees a flash across the screen and then the screen goes black. he begins to panic as he tries desperately to turn the laptop back on. david should have saved his work on what kind of portable device?
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
If you're using an existing powerpoint presentation that will receive new slides based on a word outline, select the a. slide that will appear after the new slides. b. first slide in the presentation. c. slide that will appear before the new slides. d. last slide in the presentation.
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