Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C Program that reads Discount Card, Similar to a Credit Card. Requirements: 1. Write your own main for testing your code. I will use my

C Program that reads Discount Card, Similar to a Credit Card.

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Requirements: 1. Write your own main for testing your code. I will use my main for testing your code. Please test your code thoroughly.

2. Implement the decodeStripe() function as specified above.

3. The Mag-Stripe Data needs to be correctly decoded and checked for errors. Verify all tokens are present and in their correct location, verify parity on all digits and tokens, and verify that the LRC field matches the LRC calculated on the Mag-Stripe data. Also verify that the correct number of digits for the two data fields AccountNumber and Additional Data are correct.

Project: The objective of this program is to decode a bit-stream of ones and zeros from the output of a magnetic stripe. These magnetic stripes may be found on charge cards, or other cards that contain information regarding the user embedded in the stripe. Normally an electronic device would scan the given card and provide this bit-stream to another system to allow for it's decoding. This goal of this program is to decode this bit-stream into two numeric strings. SuperSaver Discount Card Sagnatare: Details: The Mag-Stripe Decoding program will accept a string of ones and zeros (ASCII ones and zeros, not binary). The program will decode this string into two values. One is the account number, which is 10 digits in length, and the other value, is additional data, which is also a numeric string (ASCII numbers). Each digit contains five bits. The format of the input strings is as follows: Noise SS Primary Account Number S Additional DatESLRCNoise Where: Noise: This fields contains 1 or more digits of noise (skip through this area while looking for the SS token) Project: The objective of this program is to decode a bit-stream of ones and zeros from the output of a magnetic stripe. These magnetic stripes may be found on charge cards, or other cards that contain information regarding the user embedded in the stripe. Normally an electronic device would scan the given card and provide this bit-stream to another system to allow for it's decoding. This goal of this program is to decode this bit-stream into two numeric strings. SuperSaver Discount Card Sagnatare: Details: The Mag-Stripe Decoding program will accept a string of ones and zeros (ASCII ones and zeros, not binary). The program will decode this string into two values. One is the account number, which is 10 digits in length, and the other value, is additional data, which is also a numeric string (ASCII numbers). Each digit contains five bits. The format of the input strings is as follows: Noise SS Primary Account Number S Additional DatESLRCNoise Where: Noise: This fields contains 1 or more digits of noise (skip through this area while looking for the SS token)

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

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

Describe the three types of tax accounting.

Answered: 1 week ago