{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

grading system.cpp - #include int...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include<stdio.h> int num,a1,a2,a3,q1 ,q2,q3,rec,act,exam; float tot,tas,rcg,qg,acg,exg; main() { printf("Student No:"); scanf("%i",&num); if(num==101712) { printf("John Alvin Tusi\n"); } else{ printf("No Record"); } printf("Assignment1:"); scanf("%i",&a1); printf("Assignment2:"); scanf("%i",&a2); printf("Assignment3:"); scanf("%i",&a3); tas=(a1+a2+a3)/(3)*(0.10); printf("Assignment Grade:%f\n",tas);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}