/* Course Number : ISYS 116 Student Name : Jason Gradziel Student Number : 826-135-535 Professors Name : Gene Rychlewski Class Name : Thursday Lab Title : Table of Data */ #include #include #include /* Global Variables */ int total=0; /* Function Prototypes */ /* Mainline functions */ int setup(); int process(); int wrapup(); /* Subroutine functions */ /* Mainline */ void main(void) { setup(); process(); wrapup(); /* clean up */ fflush(stdin); getch(); clrscr(); } /* Subroutines */ int setup() { clrscr(); printf(" Dec Sym Dec Sym Dec Sym Dec Sym Dec Sym Dec Sym Dec Sym Dec Sym"); printf("\n"); for(int x=0; x<80; x++) printf("Ä"); for(x=10;x<79;x+=10) { for(int y=1;y<26;y++) { gotoxy(x,y); printf("³"); } } for(int y=1;y<26;y++) { gotoxy(1,y); printf("³"); } for(y=1;y<25;y++) { gotoxy(80,y); printf("³"); } for(x=10;x<79;x+=10) { gotoxy(x,2); printf("Å"); } gotoxy(1,2); printf("Ã"); gotoxy(80,2); printf("´"); return 0; } int process() { for (int x=0; x<80; x+=10) { for (int dec=0; dec<=22; dec++) { if (total!=7) { gotoxy(x+2,dec+3); printf(" %d %c",total,total); } /*if (total==7) { gotoxy(2,dec+3); printf(" %d %cBeep",dec,dec); }*/ total+=1; } } /* for (dec=0; dec<=22; dec++) { gotoxy(12,dec+3); printf(" %d %c",dec+23,dec+23); } for (dec=0; dec<=22; dec++) { gotoxy(22,dec+3); printf(" %d %c",dec+46,dec+46); } for (dec=0; dec<=22; dec++) { gotoxy(32,dec+3); printf(" %d %c",dec+69,dec+69); } for (dec=0; dec<=22; dec++) { gotoxy(42,dec+3); printf(" %d %c",dec+92,dec+92); } for (dec=0; dec<=22; dec++) { gotoxy(51,dec+3); printf(" %d %c",dec+115,dec+115); } for (dec=0; dec<=22; dec++) { gotoxy(61,dec+3); printf(" %d %c",dec+138,dec+138); } for (dec=0; dec<=22; dec++) { gotoxy(71,dec+3); printf(" %d %c",dec+161,dec+161); } */ getch(); setup(); for (x=0; x<20; x+=10) { for (int dec=0; dec<=22; dec++) { gotoxy(x+11,dec+3); printf(" %d %c",total,total); total+=1; } } /* for (dec=0; dec<=22; dec++) { gotoxy(11,dec+3); printf(" %d %c",dec+207,dec+207); } for (dec=0; dec<=22; dec++) { gotoxy(21,dec+3); printf(" %d %c",dec+230,dec+230); } */ for (int dec=0; dec<=2; dec++) { gotoxy(31,dec+3); printf(" %d %c",dec+253,dec+253); } return 0; } int wrapup() { return 0; }