169k views
3 votes
Grading on the curve is a method of grading that is based on the belief that letter grades for any given class should be distributed along a bell curve. Typically, after a test is marked, the average score becomes an "average" grade, possibly a C- or B . Scores falling above and below this average are graded accordingly. While this method of grading has both proponents and opponents, we are going tp (pretend to) apply this form of marking to a set of assignments. You will receive a set of integer scores for a particular assignment. As grades are determined by where they lie on the bell curve, we are interested in finding the minimum grade needed to be in the top X % of marks. For example, if we grade on the bell curve, the top 20% of these marks will receive the grade 'A'. You are to determine the minimum grade required for a student to be in the top X % on the assignment. Write the body of the program.

User Bisgardo
by
6.2k points

1 Answer

3 votes

Answer:

A=input("Enter Number of Marks:")

b=[]

sum=0

i=0

for i in range(0,int(A)):

b.append(input("Enter Marks"))

sum+=int(b[i])

percentage1= (sum/int(A))*100

if percentage1>=20:

print("Grade A")

elif percentage1<=30 & percentage1>=20:

print("Grade B")

else:

print("Grade C")

Step-by-step explanation:

The above program is in Python. And we are using here a dynamic list. And we are storing A marks in it. And then we are finding its average, and finally assigning the Grade as mentioned.

User Eldar Abusalimov
by
6.3k points