Using Python coding language:
Propose a situation that requires selection in order to solve, such as:
n = int(input("Enter total score: ")) if(n>=10 and n<=50): print(n,"is between 10 and 50") else: print(n, "is NOT between 10 and 50") if(n%17==0): print(n,"is a multiple of 17") else: print(n, "is NOT a multiple of 17") if(n>=0 and n<=100): letter = 'A' if n < 60: letter = 'F' elif n < 70: letter = 'D' elif n < 80: letter = 'C' elif n < 90: letter = 'B' print("Letter grade =",letter) else: print("Invalid total score")
Get Answers For Free
Most questions answered within 1 hours.