Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started