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.

Answers

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.

Similar Solved Questions

1 answer

To solve for 10t = -30 + 5t, first subtract ? from both sides.

To solve for 10t = -30 + 5t, first subtract ? from both sides....
2 answers

Can someone help, I don't get the question

Can someone help, I don't get the question...
1 answer

Why were many Americans eager to move to the western frontier?

why were many Americans eager to move to the western frontier?...
2 answers

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 national sport of India is football.________​

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 answer

Please please help.........

Please please help............
1 answer

A chemist measures 8 grams of a substance that has a half-life of 6 hours. Which equation models the weight, y, of the substance after 15 hours?

A chemist measures 8 grams of a substance that has a half-life of 6 hours. Which equation models the weight, y, of the substance after 15 hours?...
2 answers

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?

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?...
1 answer

Derivative Function.. Could you solve this, please?

Derivative Function.. Could you solve this, please?...
1 answer

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 and 10 had all three. How many candidates had none of the three?

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 ...
1 answer

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.

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....
1 answer

Give me an example of a unit rate used in a real world sutuation

give me an example of a unit rate used in a real world sutuation...
2 answers

Why is life really hard cuz my life is reallyreally bad i dont even get to see my dad tell me about your life?

Why is life really hard cuz my life is reallyreally bad i dont even get to see my dad tell me about your life?...
2 answers

Which of the following would be a result in a rotation 360° counterclockwise about the origin

which of the following would be a result in a rotation 360° counterclockwise about the origin...
2 answers

Most novels include important information about the social or historical ________ of the setting. mysteries class popularity context

Most novels include important information about the social or historical ________ of the setting. mysteries class popularity context...
1 answer

Skater A travels with velocity of 3.2 m/s and has a momentum of 200 kg m/s

skater A travels with velocity of 3.2 m/s and has a momentum of 200 kg m/s...
1 answer

Can someone please answer these questions? geometry help

Can someone please answer these questions? geometry help...
2 answers

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

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...
2 answers

What is a insulators

What is a insulators...

-- 0.043530--