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

Reference no: EM13700066

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

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a function integerpower

Write a function integerPower(base, exponent) that returns the value of base^exponent. For example, integerPower(3, 4) = 3* 3 * 3* 3. Do not use any math library functions.

  Create an application that has two heaps place a linked

create an application that has two heaps. place a linked list into each heap. select one hundred random numbers.

  Write a program that uses joptionpanes to perform

For example, if the distance of travel is 30 kilometers, the time of travel is 2 hours, then the speed is 30/2 = 15 (kilometers per hour).

  Base process which communicate with child processes

Write a program which has a "base process" which communicates with child processes acting as "bombers" that it creates.

  Write mergesort code for data instead of as array

Write mergesort code for data instead of as array - which takes a linked list of integers, as in the bubblesort example code. The decclaration of the struct listnode is the same as in the bubblesort on lists example.

  Write a marie program

Write a Marie program - Given a numbers in memory, labelled V, reverse its sign - You can halt your program once the Result is determined.

  Two-dimensional array of double to hold the sales

Suppose you have a two-dimensional array of double to hold the sales amounts for all your salespeople three years. Assume you employ 50 salespeople and this array already holds valid data.

  You are to add mean, standard deviation

You are to add mean, standard deviation, and insert in order functionality to your statistics list program. Insert in order means that you will add a function called find_index that will locate the place in the array that a new value should be ins..

  List three debugging methods within the debugger which can

list three debugging techniques within the debugger that can be used to locate logical error in the java code. for each

  Write a program to calculate the trajectory flight path of

write a program to calculate the trajectory flight path of a soccer ball when it is kicked by a player inside the field

  Evaluate the expression

How many times will "jump" be displayed in the following program segment? If the loop doesn't terminate, write "infinite" Evaluate the expression.

  Program reads in and prints three bowling scores

The main program reads in and prints three bowling scores, score1, score2, and score3. It then calls a series of functions to process these scores.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd