Write a grading program for a class with the following grading policies: a. There are two quizzes, each graded on the basis of 10 points. b. There is one midterm exam and one final exam, each graded on the basis of 100 points. c. The final exam counts for 50% of the grade, the midterm counts for 25%, and the two quizzes together count for a total of 25%. (Do not forget to normalize the quiz scores. They should be converted to a percentage before they are averaged in.) Any grade of 90 or more is
1 answer
Question:
Write a grading program for a class with the following grading policies: a. There are two quizzes, each graded on the basis of 10 points. b. There is one midterm exam and one final exam, each graded on the basis of 100 points. c. The final exam counts for 50% of the grade, the midterm counts for 25%, and the two quizzes together count for a total of 25%. (Do not forget to normalize the quiz scores. They should be converted to a percentage before they are averaged in.) Any grade of 90 or more is an A, any grade of 80 or more (but less than 90) is a B, any grade of 70 or more (but less than 80) is a C, any grade of 60 or more (but less than 70) is a D, and any grade below 60 is an F.
Answer:# Prompt the user to enter the score for first quizquiz1 = int(input("Enter your score for first quiz: "))# Prompt the user to enter the score for second quizquiz2 = int(input("Enter your score for second quiz: "))# Prompt the user to enter the score for midterm exammidterm_exam = int(input("Enter your score for the mid term exam: "))# Prompt the user to enter the score for final examfinal_exam = int(input("Enter your score for the final exam: "))# sum of first and second quiz is assigned to total_quiztotal_quiz = quiz1 + quiz2# the two quiz are normalized as 25%normalized_quiz = (total_quiz / 20) * 25# the midterm_exam is normalized as 25%normalized_midterm_exam = (midterm_exam / 100) * 25# the final_exam is normalized as 50%normalized_final_exam = (final_exam / 100) * 50# the total score is calculated by summing all normalized scoretotal_grade = normalized_quiz + normalized_midterm_exam + normalized_final_exam# if-else block that compare the total grade# and output the corresponding letter# It output A if total_grade >= 90 and <= 100# It output B if total_grade < 90 and >= 80# It output C if total_grade < 80 and >= 70# It output D if total_grade < 70 and >= 60# It output F if total_grade < 60if(total_grade >= 90 and total_grade <= 100): print("Your score is: ", total_grade, " and your grade is A.")elif(total_grade < 90 and total_grade >= 80): print("Your score is: ", total_grade, " and your grade is B.")elif(total_grade < 80 and total_grade >= 70): print("Your score is: ", total_grade, " and your grade is C.")elif(total_grade < 70 and total_grade >= 60): print("Your score is: ", total_grade, " and your grade is D.")elif(total_grade < 60): print("Your score is: ", total_grade, " and your grade is F.")Explanation:The program is written in Python and well-commented. A sample image of program output is attached.
Read the following statement and state whether True or False. A. Fateh Burj is located in Mohall (Punjab).__________8. Pongal is celebrated in West Bengal.__________C. Chand minar is also known as the Tower of Moon'.________D. Rabindra Nath Tagore stared the 'Shanti Niketan' school.__________E The n...
1. A county's general fund has $4,000,000 in purchase orders outstanding at the beginning of 2020. The orders are delivered in 2020 and the county pays the suppliers $4,000,000. Expenditures ordered, delivered and paid for in 2020 total $35,000,000. Near the end of 2020, encumbrances for $5,000,000 ...
In 1998, Journeys sold 15 million pairs of Vans across the
U.S. In 2008, Journeys sold 45 million pairs of Vans. What
was the average rate of change in shoe sales for the store?...
Of the 200 graduate students who were interviewed for a par time position at a call center, 110 had a bicycle, 25 had a master card and 130 had a mobile phone. 50 of them had both, a bicycle and a master card, 30 had both, a master card and a mobile phone and 60 had both, a bicycle and mobile phone ...
4.5.
10.
A map has a scale of 1:4000
On the map, the distance between two houses is 9cm.
What is the actual distance between the houses?
Give your answer in metres....
Look back at the collage you created to illustrate a symbol in the novel and to hint at one of the novel’s themes. Where does the symbol appear in the novel, and how is it described? What does it represent (if anything) to Cassie or to other characters in the novel? And what does the symbol sugges...
Write an additional poem using at least three of the figurative devices we learned about this unit (symbolism, simile, metaphor, personification, hyperbole, repetition, alliteration).
HELP ASAP...