I need create a program that acts as a grade checker. Here arethe instructions below. **************

I need create a program that acts as a grade checker. Here arethe instructions below. ************************************** You want to write a program that will take in the number ofgrades of the students in your class. Since the students in a classvary from semester to semester, there is no fixed number assignedto the number of students. You will keep track of how manystudents’ grade you input. You will stop taking input when thestudent enters a grade of minus 1 (-1). Your program will use loopsand will accomplish the following: 1. Read in a numeric grade froma student 2. Convert the numeric grade to a letter grade using thegrade policies in your syllabus. 3. Keep a running total of thenumeric grades entered. 4. Keep a count of the number of gradesentered. 5. Issue a message that comments on the letter gradeearned. As an example, you may write “You made an F! Obviously youdid not study!” 6. At the end of the program calculate a classaverage unless there were NO grades entered. All input to theprogram will be interactive from the keyboard. The output of theprogram will include the individual grades converted, the messageissued to the student, a class average, and the number of gradesentered. This is what code I have so far. Please help! def main(): grade1 = int(input(‘Enter your first grade: ‘)) determine_grade(grade1) grade2 = int(input(‘Enter your second grade: ‘)) determine_grade(grade2) grade3 = int(input(‘Enter your third grade: ‘)) determine_grade(grade3) grade4 = int(input(‘Enter your fourth grade: ‘)) determine_grade(grade4) grade5 = int(input(‘Enter your fifth grade: ‘)) determine_grade(grade5) average = calc_average(grade1, grade2, grade3, grade4, grade5) print (“n nAverage score:” ,average) determine_grade(average) def calc_average(grade1, grade2, grade3, grade4, grade5): average_score = (grade1 + grade2 + grade3 + grade4 + grade5) / (5.0) return average_scoredef determine_grade(score): if(score print (“your grade is an F”) elif(score >= 60 and score print (“your grade is a D”) elif(score >=70 and score print (“your grade is a C”) elif(score >=80 and score print (“your grade is a B”) elif(score >=90 and scoreprint (“your grade is an A”) else: print (‘Error: you have not entered a number between 0 and 100.’) return score main() . . .

 

Looking for a Similar Assignment? Let us take care of your classwork while you enjoy your free time! All papers are written from scratch and are 100% Original. Try us today! Use Code SAVE15 for 15% discount