Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Business Management Expert

First your program should ask if the credit card is MasterCard or visa card. Then ask the 16 digit credit card number. Then add all the digits in the credit card number and get the modulo 10. If the modulo 10 of the summation of all the digits is zero, then its valid visa card. If the modulo 10 of the summation of all the digits is 1 then its valid MasterCard. Otherwise, the number customer has entered is an invalid card number. There are two other requirements that make this problem unique:

A) You need to read the card number as a single string and each 4 numbers in the card must be separated by a space. For example, following is a correct input 1234 5678 6789 1235

B) Card number must have 16 digits. If not, display the error message "incorrect card number"

Business Management, Management Studies

  • Category:- Business Management
  • Reference No.:- M92029492
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Business Management

How to develop a java script function to get first name and

How to Develop a java script function to get First name and Last name from users and display the following massage in a window alert box. Hello First name, How are you? For example if the user enters Sara as first name, ...

Suppose a firm has a short-run cost function determine the

Suppose a firm has a short-run cost function: Determine the fixed cost (F), the variable cost function (VC), marginal cost (MC), average cost (AC), average variable cost (AVC) and average fixed cost (AFC).

What is big datahow are facebook and other companies using

What is Big Data? How are Facebook and other companies using this data about you to make money and are you ok with it?

What are some key factors needed for consideration in

What are some key factors needed for consideration in choosing a business location and why is location a key finance factor for most businesses?

How should facebook and other companies protect privacy

How Should Facebook and Other Companies Protect Privacy While Letting People Share Their Information Between Apps and Services?

Outline how the culture of a country might influence the

Outline how the culture of a country might influence the risks of doing business in that country. Illustrate the answer with examples.

What are the differences between the federal aviation

What are the differences between the Federal Aviation Administration and the Civil Aviation Authority

A homeless veteran named johnny bobbitt who spend his last

A homeless veteran named Johnny Bobbitt, who spend his last 20 dollars for a tank of gas so that Kate McClure could get. She started a campaign account set up by her and her boyfriend for Mr. Bobbitt. It went viral and h ...

You have now had an introduction to organizational behavior

You have now had an introduction to organizational behavior, scientific management, the human relations school and other classical ways of looking at people in organizations. Focus your discussion on the following: What ...

What happens to the least cost ration if the price of both

What happens to the least cost ration if the price of both of it's feed ingredients doubles?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As