Question: 17-55) Using the CreditCode Validator application (next page), show the accompanying: a-5) the plan information statement
Question:
Question:
17-55) Using the CreditCode Validator application (next page), show the accompanying:
a-5) the plan information statement for all factors proclaimed in the program.
b-5) the plan declaration(s) for a creditRecord in view of the information partially a. c-5) the low level computing construct comparable revelation for section a.
d-5) the low level computing construct identical announcement for part b
e-5) the information portion assertion for the accompanying credit code information:
5555345400 1234567890 0000000000 2233445566 1389927893
f-10) a plan hichart addressing a "disintegration" of the CreditCode application. g-10) the low level computing construct methodology models for the hichart partially f h-10) the primary() system which works out the approval code for the information
pronounced to some degree "e" above.
I-0) The ASSEMBLY posting for the application
NOTE: NO posting = NO CREDIT !!!
/*
Program: Credit Code Validator Application
Reason: Validate 10 person account codes by adding the sets of digits, separating the aggregate by 26 to get the number leftover portion, and utilizing the rest of decide the approval character.
Model: 5555345400 = 55+55+34+54+00 =198 198 % 26 = 16
A=0,B=1,C=2,D=3,E=4,F=5,G=6,H=7,I=8,J=9, K=10,L=11,M=12,N=13,O=14,P=15,Q=16, .....Z=25
Input 10 Digit Numeric Validated
Code Sum Code Value Code ========== ======== ========== ===========
5555345400 198 16 5555345400Q The Letter "Q" approved the info code "5555345400"
*/
#incorporate
#characterize MAXRUNS 5
#characterize getPairSum(d1,d2) (d1-'0')*10 + (d2-'0')//MACRO definition
#characterize ADDR(var) &var//different approach to composing address character
#characterize REPTHEADERA "Information 10 Digit Numeric Validated\n"//Report design #define REPTHEADERB "Code Sum Code Value Code \n"
#characterize REPTHEADERC "========== ======== ========== #define REPTLINEFMT "%10s %8d %8d %8s%c\n"
int main(void) {
===========\n"
burn AcctCode[10+1];//string with 9 characters in addition to an eliminator
int sumOfPairs,sumMOD26;//handling factors should be entire int burn validationChar;//yield character at end of record code
int count;//include utilized in for circle
for (count = 0; count < MAXRUNS; count++)//for circle utilizing 5 codes
{
// A "for" circle is a PRETEST circle
printf(" Enter the 10 digit acct code: ");//input area scanf("%s",ADDR(AcctCode[0]));
sumOfPairs = getPairSum(AcctCode[0],AcctCode[1])+//full scale used to total sets
getPairSum(AcctCode[2],AcctCode[3])+ getPairSum(AcctCode[4],AcctCode[5])+ getPairSum(AcctCode[6],AcctCode[7])+ getPairSum(AcctCode[8],AcctCode[9]);
sumMOD26 = sumOfPairs % 26;//handling segment, modulus amount of sets validationChar = 'A' + sumMOD26;//convert amount of sets to val character
printf(REPTHEADERA);
printf(REPTHEADERB);
printf(REPTHEADERC);
printf(REPTLINEFMT,AcctCode, sumOfPairs, sumMOD26, AcctCode,validationChar); printf("\n");
}
printf(" Press any key ..." );//yield area fflush(stdin),getchar();
bring 0 back;
Financial Reporting Financial Statement Analysis and Valuation a strategic perspective
ISBN: 978-1337614689
9th edition
Authors: James M. Wahlen, Stephen P. Baginski, Mark Bradshaw