Financial: credit card number validation) Credit card numbers follow certain patterns. A credit card number must have between 13 and 16 digits. It must start with: ■ 4 for Visa cards ■ 5 for Master cards ■ 37 for American Express cards ■ 6 for Discover cards In 1954, Hans Luhn of IBM proposed an algorithm for validating credit card numbers. The algorithm is useful to determine whether a card number is entered correctly or whether a credit card is scanned correctly by a scanner. All credit card numbers are generated following this validity check, commonly known as the Luhn check or the Mod 10 check, which can be described as follows (for illustration, consider the card number 4388576018402626): 1. Double every second digit from right to left. If doubling of a digit results in a two-digit number, add up the two digits to get a single-digit number. 2 * 2 = 4 2 * 2 = 4 4 * 2 = 8 1 * 2 = 2 6 * 2 = 12 (1 + 2 = 3) 5 * 2 = 10 (1 + 0 = 1) 8 * 2 = 16 (1 + 6 = 7) 4 * 2 = 8 2. Now add all single-digit numbers from Step 1. 4 + 4 + 8 + 2 + 3 + 1 + 7 + 8 = 37 3. Add all digits in the odd places from right to left in the card number. 6 + 6 + 0 + 8 + 0 + 7 + 8 + 3 = 38 4. Sum the results from Step 2 and Step 3. 37 + 38 = 75 5. If the result from Step 4 is divisible by 10, the card number is valid; otherwise, it is invalid. For example, the number 4388576018402626 is invalid, but the number 4388576018410707 is valid. Write a program that prompts the user to enter a credit card number as a long integer. Display whether the number is valid or invalid. Design your program to use the following methods: /** Return true if the card number is valid */ public static boolean isValid(long number) /** Get the result from Step 2 */ public static int sumOfDoubleEvenPlace(long number) /** Return this number if it is a single digit, otherwise, return * the sum of the two digits */ public static int getDigit(int number) /** Return sum of odd place digits in number */ public static int sumOfOddPlace(long number) /** Return true if the digit d is a prefix for number */ public static boolean prefixMatched(long number, int d) /** Return the number of digits in d */ public static int getSize(long d) /** Return the first k number of digits from number. If the * number of digits in number is less than k, return
6272What is finance lease? What are bonus Shares? entry for it. What is Depreciation? What is the Journal Entry? What is DPS? What is minority Interest? where it is shown?
2555is there any benefit to do MBA in finance and Human Resource Management.please give me suggestion that if i do both the things so it would be beneficial for me in corporate sector or not? THANKS
1998Hi dis is lalitha. I got selected for muthoot finance PO for the final interview. can u plz tell me what type questions they will ask? my mail id is plalitha87@gmail.com. can u plz pass the questions to my mail, my interview is on jan 04,2012. Thanks in advance.
2 5766If the financial year is Jan till Dec then would we make any entry for the telephone bill of Dec, whose invoice/bill would generate in Jan of next year. If yes what would be the amount as bill is still not received and what would be the adjusting entereis. Also how to rectify the same in next year?
3 5440Oracle financials talk of Set of Books. However at the beginning of an implementation, when you talk of set of books to the CFO, he will most likely tell you that 'He has just an accounting book for the organization'. So he feels that he does not need 'Set of Books'. How can you reconcile the above two statements?
TCS,
1 5666i have cleared the LIC Housing finance Ltd written exam for the post of asisstant...the interviews are to conducted from 17feb...please guide me on how to prepare for the interview..what all questions are likely to be asked ?
2590As a fresher in oracle finance can a get a job in oracle finance n what type of questions can they ask me as a fresher...oracle finance...
2042how financial and instututional development affects financing of large and small firms? Are the financing patterns of small firms different from those of the large firms?
2085i have paid the vat amount for the financail year 2009-2010 in the financail year 2011-2012.how to pass journal entries
3 5677vat amount payable in financial year 2010-2011 Rs. 25000.00 but we paid Rs. 35000.00. This exces payment will be carried in next financial year?
3 7238
hi gurus , plz can anybody forward ur cv of accounts/finance related , exp of 4+ years to afreenjuveriya@yahoo.com
what is the complete configuration of functional areas in finance and controlling and their related modules. plz give me complete secinero of the functional area,
Hi all i did my M.B.A financ enw iam doing a job as a finance executive but i feel it is not good 4 me can any 1 plz guide me 4 the better career my job profile is (INVOICING)hw it is help me out 4 the better career shell i continu ein the same 1 by learning sap or oracle or shall i shift to any other if any other which job is suites to me plz suggest me
I am studing in MEB(MBA+IT), In our course there is no specialation and I want to go in finance, in june-july i am going to do intersip program so what would i do to make arrengement for my summer training
Hi friends, Im an MBA Finance, 2 yrs of exp workng in Investment com, + around 2 yrs of exp in Manual testing in Finane domain. Im looking for manual testing jobs but not getting any calls, Im worried is manual tesing in finance domain do have any good scopes in future or not. Plz provide me ur valuable suggestion,so tht I can best decision to retain in this platform(manual testing). or not
hi iam kavya, i completed Oracle11i(finance module), i do not know how to face the interview questions please adivese me
plz tell me the finance questions asked in hsbc latest question asked in hsbc?
plz send me hsbs finance questions asked in the interview ans appitude also
1. what is debenture? 2.Why company will issue shares? 3. What is audit? 4. What is the role of finance department? 5. What is mutual fund?
what ASIS BUSINESS PROCESS IN ORACLE FINANCE
what is the organisation chart for accounting and finance ?
hi friends i completed b.com 2004.i have 3y accounting exp. in manufacturing company.now i have completed oracle finance.pls suggest me how will get job in oracle.can i get job in oracle.
i am a mba fresher and i'm learning oracle finance.please give me ur valueble suggetions about my career in oracle finance? what r the requirements 2 get a good job in time?
Hi this is praveen completed MBA with Finance and HR as specializations in 2007 im very much intrested in appearing for group exams? so I want to know when will be the next edition? ie how I need to apply for groups for the 1st time?
Questions asked for the post of Manager (Finance) in a Public Sector company Subject of group discussions for the post of Manager (Finance) in a Public Sector company