DAY 17
/* ------------------------------------------------------------- */ /* This program stores fingerprint information in a structure. */ /* It then references a function to compute the overall category.*/ #include <stdio.h> /* Define a structure for the fingerprint information. */ /* The order for fingertips is right hand, thumb to pinky, */ /* and left hand, thumb to pinky. The codes are L for loops, */ /* W for whorls, and A for arches. */ struct fingerprint { int ID_number; double overall_category; char fingertip[10]; }; int main(void) { /* Declare and initialize variables. */ struct fingerprint new_print; double compute_category(struct fingerprint f); int k, w_num = 0, l_num = 0, a_num = 0; float w_per, l_per, a_per; /* Specify information for the new fingerprint. */ new_print.ID_number = 2491009; new_print.overall_category = 0; new_print.fingertip[0] = 'W'; new_print.fingertip[1] = 'L...

Comments
Post a Comment