Question: NiviFart E. (h) The TAs on ECE220 course are going to archive the students final grades. They wrote a program named grading having the following

 NiviFart E. (h) The TAs on ECE220 course are going to

NiviFart E. (h) The TAs on ECE220 course are going to archive the students final grades. They wrote a program named grading having the following command-line argument format: ./grading The > is the id of a student, which must only contain digits between 0 and 9 . The is the assigned letter grade between A and F. For example, "./grading 1 A" will print "Student 1 got A in ECE220!" to the terminal. When Tianyu goes for lunch, he leaves his computer screen unlocked. If you can access his computer during his lunch, decide the input arguments to let the program print "You got an A+ in ECE220!". You can inspect the source code of the C program that Tianyu wrote below. typedef struct grade_t 1 int16_t id; // student ID char letter[2]; // letter grade \} grade; void buggy (int16_t index, char s, grade 1) // strcpy definition is at the end of exam strcpy ((1+ index ) letter, s); 3 void weird() \& printf("You got an A+ in ECE220! "); 3 int16_t main (int16_t argc, char *argv[]) f grade list[10]; int16_t i; for (i=0;i=

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!