Menu

[Solved]-Python 37 Get Run Code Enter Current Grade 100 Homework Quizzes 89enter Current Grade 100 Q37298764

with python 3.7

how do I get this when I run my code?

Enter your current grade (out of 100) on homework quizzes: 89Enter your current grade (out of 100) on lab assignments: 100Enter your current grade (out of 100) on programming assignments: 85Enter your target grade (out of 100): 90Calculating…Your current grade (out of 55) is 48.85To get a 90.0 (out of 100) in the course, you must score an average of 91.44444444444444 percent across the two exams

# main function
def main():
print(“This program will calculate the average score you needacross the midterm and the final exams to achieve a certain overallgrade in the course. “)
hw_score = int(input(“Enter your current grade (out of 100) onhomework quizzes: “))
lab_score =int(input(“Enter your current grade (out of 100) on labassignments: “))
pa_score =int(input(“Enter your current grade (out of 100) onprogramming assignments: “))
target_grade =int(input(“Enter your target grade (out of 100):”))
print(“Calculating… “)
current_grade=calculate_current_grade(hw_score,lab_score,pa_score)
exam_score=calculate_exam_score(current_grade,target_grade)
print(“The average score you need to earn across both exams toachieve the target course grade:”,calculate_exam_score)

def calculate_current_grade(hw_score, lab_score,pa_score):
calculate_current_grade =(hw_score*.15)+(lab_score*.10)+(pa_score*.30)
print(“Your current grade(out of 55) is:”,calculate_current_grade)
return calculate_current_grade

def calculate_exam_score(current_grade, target_grade):
calculate_exam_score=(target_grade-current_grade)*(.20+.25)
print(“To get a”, calculate_current_grade, “in the course, you mustscore an avrage of”, calculate_exam_score, “percent across the twoexams. “)
return calculate_exam_score   

main()

This program will calculate the average score you need across the midterm and th e final exams to achieve a certain overall g

This program will calculate the average score you need across the midterm and th e final exams to achieve a certain overall grade in the course. Enter your current grade (out of 100) on homework quizzes: 89 Enter your current grade (out of 100) on lab assignments: 100 Enter your current grade (out of 100) on programming assignments: 85 Enter your target grade (out of 100)90 Calculating… Your current grade (out of 55) is: 48.85 To get a <function calculate_current_grade at 0x035B5978> in the course, you mus t score an avrage of 18.5175 percent across the two exams. The average score you need to earn across both exams to achieve the target cours grade: <function calculate_exam_score at 0x03A31E40> Show transcribed image text This program will calculate the average score you need across the midterm and th e final exams to achieve a certain overall grade in the course. Enter your current grade (out of 100) on homework quizzes: 89 Enter your current grade (out of 100) on lab assignments: 100 Enter your current grade (out of 100) on programming assignments: 85 Enter your target grade (out of 100)90 Calculating… Your current grade (out of 55) is: 48.85 To get a in the course, you mus t score an avrage of 18.5175 percent across the two exams. The average score you need to earn across both exams to achieve the target cours grade:

Expert Answer


Answer to with python 3.7 how do I get this when I run my code? Enter your current grade (out of 100) on homework quizzes: 89 Ente… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *