Question
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.
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started