The most important part of developing a program/software is the design process. You are required to describe the following characteristics: purpose, input, process, and output of each function and create three test cases, pseudocode and flowcharts for each of the following questions. Note: Each function should have its own flowchart. Please note you are not asked to write and C++ code and pseudocode should not include any C++ elements such as but not limited to semicolons, cout, and cin. Error Detection   Suppose you type a 14-digit credit card number into a Web site, but mistype one of the digits of inadvertently interchange two adjacent digits. The website will perform a validation check that always detects the first type of error and nearly always detects the second type of error. The validation check is as follows and will be illustrated with the credit card number 58667936100244. Consider the 1st, 3rd, 5th, 7th, 9th, 11th and 13th digits of the credit card number (in this case 5, 6, 7, 3, 1, 0, 4). Double each number. In this case, the results are 10, 12, 14,6, 2, 0, 8. If any product is a two-digit number, subtract 9. In this case, the results are: 1, 3, 5, 6, 2, 0, 8. Sum the resultant digits (in this case, the sum is 25). Sum together the remaining seven digits from the credit card number. That is. The 2nd, 4th, 6th, 8th, 10th, 12th, and 14th With the credit card number above, we obtain 8 + 6 + 9 + 6 + 0 + 2 + 4 = 35. Add together the two sums. If the result is a multiple of 10, then accept the credit card number. Otherwise, reject it. We accept the credit card number since 25 + 35 = 60. Write a program that performs data validation on a credit card number. It should include 2 functions, one to read in the credit card number and one to validate the card number. At the end print either “Accepted” or “Rejected”.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

**C++

The most important part of developing a program/software is the design process. You are required to describe the following characteristics: purpose, input, process, and output of each function and create three test cases, pseudocode and flowcharts for each of the following questions. Note: Each function should have its own flowchart. Please note you are not asked to write and C++ code and pseudocode should not include any C++ elements such as but not limited to semicolons, cout, and cin.

Error Detection

 

Suppose you type a 14-digit credit card number into a Web site, but mistype one of the digits of inadvertently interchange two adjacent digits. The website will perform a validation check that always detects the first type of error and nearly always detects the second type of error. The validation check is as follows and will be illustrated with the credit card number 58667936100244.

Consider the 1st, 3rd, 5th, 7th, 9th, 11th and 13th digits of the credit card number (in this case 5, 6, 7, 3, 1, 0, 4). Double each number. In this case, the results are 10, 12, 14,6, 2, 0, 8. If any product is a two-digit number, subtract 9. In this case, the results are: 1, 3, 5, 6, 2, 0, 8. Sum the resultant digits (in this case, the sum is 25).

Sum together the remaining seven digits from the credit card number. That is. The 2nd, 4th, 6th, 8th, 10th, 12th, and 14th With the credit card number above, we obtain 8 + 6 + 9 + 6 + 0 + 2 + 4 = 35.

Add together the two sums. If the result is a multiple of 10, then accept the credit card number. Otherwise, reject it. We accept the credit card number since 25 + 35 = 60.

Write a program that performs data validation on a credit card number. It should include 2 functions, one to read in the credit card number and one to validate the card number. At the end print either “Accepted” or “Rejected”.

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education