### Credit card is mastercard or visa card

Assignment Help C/C++ Programming
##### Reference no: EM13700066

Program: 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.

Write  a C++ program  that  reads  the  card  type  and  the  card  number  and  then determine if the card number entered is a valid card number

You need to prepare the C++ program reads the card type and then find if the card number entered is a valid card number

#### Questions Cloud

 Algorithm to find the regular language : Exhibit an algorithm for determining whether or not a regular language L contains any string w such that      $$w^{R} \in L$$ - You need to prepare this algorithm to find the regular language. Describe processes of top-down design stepwise refinement : Frank complains that defining functions to use in his programs is a lot of extra work. He says he will finish his programs much more quickly if he just writes them using basic control and operations statements. Write a function fromhosttonetwork in c : Write a function fromHosttoNetwork in C that will accept an integer variable and covert it from host byte order to network byte order and write a function fromNetworktoHost in C that will accept an integer in network byte order and return an integ.. Suppose biological cell membrane has a specific capacitance : Suppose biological cell membrane has a specific capacitance of ~1μF/cm^2. Calculate the capacitance of a typical cell with diameter of ~10 μm. Suppose the membrane potential is -60mV, calculate the amount of net charge kept inside the cell. Calcul.. Credit card is mastercard or visa card : Write  a C++ program  that  reads  the  card  type  and  the  card  number  and  then determine  if  the  card number entered is a valid card number Find the secondary current : A transformer has 120 volts and 100 turns in the primary. The secondary has 500 turns and 600 volts. If the resistance of the secondary side is 150 ohms, find the secondary current Water flows through a horizontal pipe at a rate : Water flows through a horizontal pipe at a rate of 38 gpm (1 ft3 = 7.48 gal). What is the velocity in the larger opening of the pipe that reduces from 5.8 to 2.3 inches in diameter? Translate those virtual memory addresses to physical memory : You need to read a file of ints that represent virtual memory and then translate those virtual memory addresses to physical memory addresses using a page table and translation lookaside buffer. Drosophila melanogaster : Drosophila melanogaster. There should be 2 or 3 pgs on the features of this model organism and why it is used in research. Include things life cycles, ploidy, genetics, genome data etc. There should be 2-3 pgs on the specific research paper yo..

### Write a Review

#### Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

#### Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

#### Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

#### Write a webservices application

Write a webservices application that does a simple four function calculator

#### Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

#### Design a nested program

How many levels of nesting are there in this design?

#### Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

#### Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

#### Design a base class shape with virtual functions

Design a base class shape with virtual functions

#### Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

#### Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.