Answer to Question #259852 in Python for Atique

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.


1
Expert's answer
2021-11-02T00:39:09-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog