| 24. Nana is evaluating four of her student programs. The program is asked to output letter values from numeric values. The numerical value is in the range of .100 and the letter value is between A,...


| 24. Nana is evaluating four of her student programs. The program is asked to output letter<br>values from numeric values. The numerical value is in the range of .100 and the letter<br>value is between A, B, C, or D. These four programs have been tested by Nana with an<br>input value of = 60. As a result, the four programs output
90): print ("Grade A") elif (num>80): print ("Grade B") elif (num> 70): print ("Grade C") else: if (num>90) : print ("Grade A") if (num>80 and num<=90): print="" ("grade="" b")="" if="" (num="">70 and num<-80): print="" ("grade="" c")="" else:="" b="" print="" ("grade="" d")="" print="" ("grade="" d")="" cif=""><-70): print="" ("grade="" d")="" elif=""><=80): print="" ("grade="" c")="" elif=""><-90): print="" ("grade="" b")="" else:="" if=""><-90) :="" if=""><=80) :="" if=""><=70) :="" print="" ("grade="" d")="" else:="" print="" ("grade="" c")="" else:="" d="" print="" ("grade="" a")="" print="" ("grade="" b")="" else:="" print="" ("grade="" a")="" "/="">
Extracted text: | 24. Nana is evaluating four of her student programs. The program is asked to output letter values from numeric values. The numerical value is in the range of .100 and the letter value is between A, B, C, or D. These four programs have been tested by Nana with an input value of = 60. As a result, the four programs output "D" as if the programs were correct. However, ONE OF THE PROGRAMS BELOW IS WRONG! which program is it? 100 A 91 81 - 90 →B 71 - 80 →C 0 - 70 → D Aif (num> 90): print ("Grade A") elif (num>80): print ("Grade B") elif (num> 70): print ("Grade C") else: if (num>90) : print ("Grade A") if (num>80 and num<=90): print="" ("grade="" b")="" if="" (num="">70 and num<-80): print="" ("grade="" c")="" else:="" b="" print="" ("grade="" d")="" print="" ("grade="" d")="" cif=""><-70): print="" ("grade="" d")="" elif=""><=80): print="" ("grade="" c")="" elif=""><-90): print="" ("grade="" b")="" else:="" if=""><-90) :="" if=""><=80) :="" if=""><=70) :="" print="" ("grade="" d")="" else:="" print="" ("grade="" c")="" else:="" d="" print="" ("grade="" a")="" print="" ("grade="" b")="" else:="" print="" ("grade="">

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here