Question #259852

4.1 Write a program for each of the following:




(a) Listing all students whose CUM is K or higher. (Test the program using K = 3.00.)




(b) Listing all students in year L. (Test the program using L= 2, or sophomore.


Expert's answer

k=2.0
S=int(input("Enter student's CUM: "))
year=int(input("Enter the student's year of study: "))
count=0
if S==k or S>k:
    print("Student has CUM greater or equal to ", k)
if year==2:
    print("Student is in year 2")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS