Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Embedded Systems Professional Nanodegree Payment Application Project

NotificationsYou must be signed in to change notification settings

FahdSeddik/ESND-Payment-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

This is a Payment Application Simulation project for the EgFWD Embedded Systems Professional NanoDegree Scholarship. This project was written in C. It includes a Luhn card PAN generation and validation.

Program Flow Chart

payment-flowchart

Functions

These are some of the functions I thought I should highlight:

  • appStart() : this would be called inMain.c to start the application
  • getTransactionDate() : asks for a date in the formDD/MM/YYYY or can retrieveSystem Date automatically
  • getCardPAN() : this functions asks either to generate a Luhn valid card PAN or enter manually
    • UsesGenerateLuhn() which essentially applies the Luhn algorithm to generate the card PAN
  • readAccountDB() : this load the accounts database from the database file (readdatabase section)
  • saveTransaction() : saves APPROVED transactions with all details into the transactions database (readdatabase section)

Instructions

  • You would find demonstrated test cases in the "Submission Files/User Stories" Folder.
  • This demonstrates how someone would use the Simulator.
  • The test cases describe different scenarios that would happen:
    • EXCEED_MAX_AMOUNT : means that the user tried to make a transaction with more than specified max amount for card
    • DECLINED_STOLEN_CARD &INVALID_ACCOUNT : the card number is not present in the account database for the bank
    • DECLINED_INSUFFECIENT_FUND : transaction amount is greater than account balance
    • APPROVED : the transaction was successful and saved to transactions database

Databases

  • AccountsDB.txt : has all accounts PAN (Primary Account Number) and accounts balanceimage
  • TransactionsDB.txt : this stores different data about the transaction (shown in the picture below)image

About

Embedded Systems Professional Nanodegree Payment Application Project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp