PROGRAMMING 2 CASE STUDY Sheila Marie Abegail v. Dublin BSIT 1-1 Prof. Irynne P. Gatchalian # allow in<stdio.h> #include<conio.h> struct examine { float quiz; }; struct subject { charsubj_code[10]; charsubj_title[25]; struct quiz quizzes[3]; }; struct student { charstud_no[15]; charstud_name[30]; struct subject subj[2]; }; struct student stud_rec[5]; //input void main() { int i, j, k, r; int c=52; floatquiz_temp; floatquiz_tot[5][2], quiz_ave[5][2]; for(i=0; i<5; i++) { printf( participate savant Number: ); scanf(%s, stud_rec[i].stud_no); printf( bring come to the fore Student cause: ); scanf(%s, stud_rec[i].stud_name); for(j=0; j<2; j++) { pr intf(Enter Subject Code for IT 12%d: , j+1); scanf(%s, & antiophthalmic factor;stud_rec[i].subj[j].subj_co printf(Enter Subject backing: ); scanf(%s, &stud_rec[i].subj[j].
subj_title); for(k=0; k<3; k++) { printf(Enter examine%d:, k+1); scanf(%f, &quiz_temp); stud_rec[i].subj[j].quizzes[k].quiz=quiz_temp; quiz_tot[i][j]=quiz_tot[i][j]+stud_rec[i].subj[j].quizzes[k].quiz; } quiz_ave[i][j]=quiz_tot[i][j]/3; } printf(); } //output clrscr(); gotoxy(20,1); printf(POLYTECHNIC UNIVERSITY OF THE PHILIPPINES); gotoxy(23,4); printf(Student Record of BSIT 1-1); gotoxy(7,6); printf(Student non e); gotoxy(30,6); printf(Student Name); go! toxy(50,6); printf(IT 121); gotoxy(65,6); printf(IT 122); r=8; for(i=0; i<5; i++) { c=52; gotoxy(7,r); printf(%s,stud_rec[i].stud_no); gotoxy(30,r); printf(%s, stud_rec[i].stud_name); for(k=0; k<2; k++) { gotoxy(c,r); printf(%0.2f, quiz_ave[i][k]); c=c+15; } r=r+2; } amountch(); }If you want to get a full essay, run it on our website: BestEssayCheap.com
If you want to get a full essay, visit our page: cheap essay
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.