+ 1

Hey pals for those who program in c I need a little help in writing a program to grade students

Grading system written in c

16th Feb 2017, 5:37 PM
Daniel Kiuri Kimaru
Daniel Kiuri Kimaru  - avatar
8 ответов
+ 1
let me post it you check on it
16th Feb 2017, 5:50 PM
Daniel Kiuri Kimaru
Daniel Kiuri Kimaru  - avatar
+ 1
01#include <stdio.h> 02int main(void) 03{ 04    int num; 05    printf("Enter your mark "); 06    scanf("%d",&num); 07    printf(" You entered %d Marks \n", num); // printing outputs 08    if(num >= 80){ 09        printf(" You got A grade \n"); // printing outputs 10    } 11    else if ( num >=60){ // Note the space between else & if 12        printf(" You got B grade \n"); 13    } 14    else if ( num >=40){ 15        printf(" You got C grade \n"); 16    } 17    else if ( num < 40){ 18        printf(" You Failed in this exam \n"); 19        printf(" Better Luck Next Time \n"); 20    } 21    return 0;
16th Feb 2017, 5:51 PM
Daniel Kiuri Kimaru
Daniel Kiuri Kimaru  - avatar
+ 1
I hadn't written it in a compiler so I wanted someone to check if it was working correctly
16th Feb 2017, 6:05 PM
Daniel Kiuri Kimaru
Daniel Kiuri Kimaru  - avatar
0
post your code
16th Feb 2017, 5:45 PM
Michael W
Michael W - avatar
0
Do you need help writing it or do you want someone to write it for you? If it's the former, where exactly is the problem? Feel free to post what you have so far if there are any errors/things that don't work like they should!
16th Feb 2017, 5:45 PM
Robobrine
Robobrine - avatar
0
Seems to work fine what's the problem?
16th Feb 2017, 6:02 PM
Robobrine
Robobrine - avatar
0
And why don't you just compile it? Seems like the easier and faster solution...
16th Feb 2017, 6:10 PM
Robobrine
Robobrine - avatar
0
i didn't have my computer around
16th Feb 2017, 6:16 PM
Daniel Kiuri Kimaru
Daniel Kiuri Kimaru  - avatar