Question: Please help me with this question. I would appreciate it if you add some explanations. The following two programs are designed to give the letter
Please help me with this question. I would appreciate it if you add some explanations.
The following two programs are designed to give the letter grade of a student for a given total course mark as integer value out of 100 . Assume the value of mark is always between 0 and 100 . The intended letter grade assignment is [90,100]= 'A', [75,90)= 'B', [65,75)= 'C' [50,65)= 'D' and [0,50)= ' F '. One of the two programs has semantic error. Which one is it? Circle your answer: Answer: Program1.py Program2.py The two programs do sometimes give the same output for some selected input value for mark. Give an example of input value for the variable mark for which the two programs will give the same output. Answer: The two programs do sometimes give different outputs for some selected input value for mark. Give an example of input value for the variable mark for which the two programs will give different outputs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
