Design a prgram USING PYTHON that students can use to calculate what score they
ID: 3557202 • Letter: D
Question
Design a prgram USING PYTHON that students can use to calculate what score they need on final exam to get a certan final grade for a course.
Usually grades are accumulated by earning points in a category:
For example- Labs are worth 500 points, and homework is worth a total of 600 points. The percentages for labs, homework, and final are 50%, 25%, and 25%. If someone earns 450/500 and 500/600, would be the minimum score to earn an A(90 or above)
final exam grade = [sum of (pointsearned/total points*percent) for each category]/ percent of final exam
requirments:
Ask student for info anout each category
Use info to calculate and acummulate total points so far and percent
write a function that will calculate the final exam score from the accumlated standing, percentage, and min grade the student desires
Print out grade required on exam
Explanation / Answer
import math
totalpointslab = 600
totalpointshomework = 500
finalpercent = 25
Lab= input("Hello, please enter the amount of points earned for Labs")
pointsEarnedLab= int(Lab)
Homework= input("Please enter the amount of points earned for homework")
pointsEarnedHomework= int(Homework)
final= (((pointsEarnedLab/totalpointslab)*50)+((pointsEarnedHomework/totalpointshomework)*25))/finalpercent
print("You need to get an, input(final) , on the exam",final)
I have converted this in to the code please tell me further addition to be done
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.