Question: PYTHON!!! Write a program that computes information related to a sequence of grades obtained from the user. 2. It computes and displays the number of

PYTHON!!! Write a program that computes information related to a sequence of grades obtained from the user.

2. It computes and displays the number of passing and failing grades (passing grade >=60).

3. It computes and displays the average grade and finds the highest and lowest grade.

4. It computes and displays the range of grades (range = highest grade lowest grade).

5. It computes and displays the number and ratio of As, Bs, Cs, Ds, and Fs. 6. It computes and displays the number grades entered. Letter Grading Criteria as follows: Grade A 91-100 B 81-90 C 71-80 D 60-70 F <60

This is what i have so far:

count=0 total=0 score=0 stdPass=0 stdFail=0 numberStds=int(input("Enter number of students:")) total=0 i=1

def getLetterGrade (score): score = round(score) if score >= 90: return 'A' elif score >= 80: return 'B' elif score >= 70: return 'C' elif score >= 60: return 'D' else: return 'F'

for score in range (1, numberStds+1): score=float(input("Enter grade for student " +str(i)+ ": ")) total=total+score if score>=60: stdPass=stdPass+1 elif score<60: stdfail=stdFail+1 highestgrade=max(score)

lowestGrade=min(score)

avg=total/numberStds print ("Average grade:", avg) print ("No. of Student passed:", stdPass) print ("No. of Student failed:", stdFail) print("Highest Score is", highestGrade) print ("Lowest Score is", lowestGrade)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!