Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ABOUT Method vs. Methodology: Method is the tool. Methodology is the justification/the rationale for using a particular method. A learning outcome of CSC 340 Programming

image text in transcribed
image text in transcribed
ABOUT Method vs. Methodology: Method is the tool. Methodology is the justification/the rationale for using a particular method. A learning outcome of CSC 340 Programming Methodology is we can recognize a problem, diagnose a problem, define a problem, and formulate a problem. While solving a problem, we frequently take a step back and evaluate available Assignment 02 is to provide us with another opportunity to practice these skills. - All parts of this assignment are to be done in C++ DOWNLOAD: http://csc340.ducta.net/Assignments/Assignment-02-Code.zip PART A - TIC TAC TOE, 10 points Please implement a basic version of Tic Tac Toe: 1. Function main and function headers are provided. Please implement the functions and do not change the main. 2. Our program must produce identical output: ASMTO2 PA_Run1.txt and ASMTO2 PA Run2.txt 4388576018402626 PART B-Credit Card Number Validation, 10 points Credit card numbers follow certain patterns. A credit card number must have between 13 and 16 digits. The starting numbers are: 4 for Visa cards, 5 for MasterCard cards, 37 for American Express cards, and 6 for Discover cards. + 6 * 2 = 12 (1 + 2-3) 5 2-10 (1+0-1) 8 2-16 (1 +6 7) Example: Validating 4388576018402626 a) Double every second digit from right to left. If doubling of a digit results |1 371449635398431 1s valid in a two-digit number, add the two digits to get a single digit number. 2 4444444444444448 1s valid b) Now add all single-digit numbers from Step a: c) Add all digits in the odd places from right to left in the card number: d) Sum the results from Step b and Step c e) If the result from Step d is divisible by 10, the card number is valid; 4 +4+8+2+3+1+7+8-37 6+6+0+8+0+7+8+3 38 37 + 38 # 75 3 4494424444444440 is valid 4 4110144110144115 valid 4114360123456785 is valid 6 4061724061724061 is valid 7 5500005555555559 is valid 8 5115915115915118 1s valid 9 5555555555555557 is valid 0 6011016011016011 is valid 11 372449635399431 is not valid 4444544444444448 not valid otherwise, it is invalid. 3 4444434444444440 is not valid Please implement Credit Card Number Validation: Function main is provided. Please imple functions which you may add to the program. Please do not change function main Your program must produce identical output. ASMT02-PB-Run.pdf 4110145110144115 is not valid 4124360123456785 not valid 6 4062724061724061 not valid 7 5501005555555559 is not valid 8 5125915115915118 is not valid ment isvalidcc and other 1. 2. 3. 1 Updated: 9/27/2018 6:16 AM

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions

Question

What are some of the possible scenes from our future?

Answered: 1 week ago

Question

1. What are your creative strengths?

Answered: 1 week ago