Question: Need help with my Python for grading system in IDLE # Name: # D2L Username: # Date: # DO NOT CHANGE THE FILENAME: Assignment.py #

Need help with my Python for grading system in IDLE # Name:

# D2L Username: # Date: # DO NOT CHANGE THE FILENAME: Assignment.py

# The autograder will look for Assignment.py. It is also case-sensitive

# So even changing the file name to assignment.py will score you a zero

### Programming Assignment ### # Complete the calc_average() and determine_grade() functions

# Compare with the expected result given in the assignment description

# IMPORTANT: Before you submit, make sure your program produces the expected result

# as shown in the assignment description

# Do NOT change the function header calc_average() def calc_average():

# Use a loop and ask the user to enter EIGHT scores

# Use "Please enter score #{}:".format() to construct the message for input()

# so that it matches the expected output.

# DO NOT change the the text, otherwise you may not receive the desired credit

# convert avg to integer and return the value. Do NOT change return int(avg)

# Do NOT change the function header determine_grade(score) def determine_grade(score):

# Convert the numeric score into letter grade # 90-100: A # 80-89: B # 70-79: C # 60-69: D # below 60: F return grade

# Do NOT change any of the lines below def main(): avg = calc_average() grade = determine_grade(avg) print ("Your average grade is:", grade) main() def ask_forscore(): score1 = int(input('Please enter score {1} :')) score2 = int(input('Please enter score {2} :')) score3 = int(input('Please enter score {3} :')) score4 = int(input('Please enter score {4} :')) score5 = int(input('Please enter score {5} :')) score6 = int(input('Please enter score {6} :')) score7 = int(input('Please enter score {7} :')) score8 = int(input('Please enter score {8} :')) def print_table_of_results(score1, score2, score3, score4, score5, score6, score7, score8): print('score\tletter grade') print( str( score1 ) + '\t' + determaine_grade( score1 ),\ print( str( score2 ) + '\t' + determaine_grade( score2 ),\ print( str( score3 ) + '\t' + determaine_grade( score3 ),\ print( str( score4 ) x+ '\t' + determaine_grade( score4 ),\ print( str( score5 ) + '\t' + determaine_grade( score5 ),\ print( str( score6 ) + '\t' + determaine_grade( score6 ),\ print( str( score7 ) + '\t' + determaine_grade( score7 ),\ print( str( score8 ) + '\t' + determaine_grade( score8 ),\ average_score = (score1 + score2 + score3 + score4 + score5 + score6 + score7 + score8)/(8.0) return average_score

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!