#include <stdio.h>
#include <string.h>
struct student
{
char name[ 100 ] ;
int age;
char major[ 100 ] ;
float score1;
float score2;
float score3;
float score4;
float score5;
float grade1;
float grade2;
float grade3;
float grade4;
float grade5;
} Jess;
int main( void ) {
strcpy ( Jess.
name , "Jessica" ) ; Jess.age = 22 ;
strcpy ( Jess.
major , "Computer Science" ) ; Jess.score1 = 100 ;
Jess.score2 = 86 ;
Jess.score3 = 92 ;
Jess.score4 = 100 ;
Jess.score5 = 94 ;
Jess.grade1 = 'A' ;
Jess.grade2 = 'B' ;
Jess.grade3 = 'A-' ;
Jess.grade4 = 'A' ;
Jess.grade5 = 'A-' ;
printf ( "Name : %s\n " , Jess.
name ) ; printf ( "Age : %d\n " , Jess.
age ) ; printf ( "Major : %s\n " , Jess.
major ) ; printf ( "The score on test 1 : %f\n " , Jess.
score1 ) ; printf ( "%s 's score on test 2 : %f\n " , Jess.
name , Jess.
score2 ) ; printf ( "The score on test 3 : %f\n " , Jess.
score3 ) ; printf ( "The score on test 4 : %f\n " , Jess.
score4 ) ; printf ( "The score on test 5 : %f\n " , Jess.
score5 ) ; printf ( "The grade on test 1 : %f\n " , Jess.
score1 ) ;
return 0 ;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KIApzdHJ1Y3Qgc3R1ZGVudAp7CmNoYXIgbmFtZVsxMDBdOwppbnQgYWdlOwpjaGFyIG1ham9yWzEwMF07CmZsb2F0IHNjb3JlMTsKZmxvYXQgc2NvcmUyOwpmbG9hdCBzY29yZTM7CmZsb2F0IHNjb3JlNDsKZmxvYXQgc2NvcmU1OwpmbG9hdCBncmFkZTE7CmZsb2F0IGdyYWRlMjsKZmxvYXQgZ3JhZGUzOwpmbG9hdCBncmFkZTQ7CmZsb2F0IGdyYWRlNTsKIAp9IEplc3M7CiAKaW50IG1haW4odm9pZCkgewoJc3RyY3B5KCBKZXNzLm5hbWUsICJKZXNzaWNhIik7IApKZXNzLmFnZSA9IDIyOw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