Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The program reads input from the user for a student's grades on homework and three exams, and uses them to compute the student's total score.

The program reads input from the user for a student's grades on homework and three exams, and uses them to compute the student's total score. Based on the total score, the program will print out the corresponding letter grade and encouraging comments for the student. I am struggling to add a loop to implement the other exams grades and weight. Any suggestions? image text in transcribedimage text in transcribed

the language is in python, apologies

Implementations 1) The program begins with an introduction message that briefly explains the program to the user. 2) Each category is weighted points for each category is scaled up to a fraction of the one hundred percent (100%) grade for the course. As the program begins reading each category, it first prompts for the category's weight, then the score earned for the category, followed by the calculated total points and weighted score. 3) The user begins by entering scores earned on Exam 1 and the weight of Exam 1. (Note: the total score of an exam is 100 points.) Then output the total points and weighted scores for Exam 1. The weighted score equal to the user's score multiplied by the exam's weight. For example, Total points: 78 Weight for Exam 1: 10 Weighted score: 78/100 * 10 = 7.8 (NOTE: user input is bold and underlined in the example.) 4) Next, the program prompts the user to input data about Exam 2 and then about the Exam 3. The behavior for each is the same as the behavior for Exam 1. Note: for steps 3) and 4), use a loop instead of repeatedly writing the same code to get user input and calculate the grade. 5) Next, the user enters information about the student's homework, including the weight and how many assignments were given. For each assignment, the user enters a score and max points for that assignment. Use a cumulative sum. See example, Homework: Weight (0-100)2 50 Number of assignments? 3 Assignment 1 score? 14 Assignment 1 max points? 15 Assignment 2 score? 17 Assignment 2 max points? 20 Assignment 3 score? 19 Assignment 3 max points? 25 (NOTE: user input is bold and underlined in the example.) Note: for step 5, use a loop instead of repeatedly writing the same code to get user input and calculate the grade. Introduction Below is one example log of execution from the program. Your output should match the examples exactly given the same input. Be mindful of spacing, such as after input prompts and between output sections. This program reads exam/homework scores and reports your overall course grade. Exam 1: Weight (0-100)? 10 Score earned? 78 Total points 78 / 100 Weighted score = 7.8 Exam 2: Weight (0-100)? 10 Score earned? 84 Total points = 84 / 100 Weighted score = 8.4 Exam 3: Weight (0-100)? 30 Score earned? 100 Total points 100 / 100 Weighted score = 30.0 Homework: Weight (0-100)? 50 Number of assignments? 3 Assignment 1 score? 14 Assignment 1 max? 15 Assignment 2 score? 17 Assignment 2 max? 20 Assignment 3 score? 19 Assignment 3 max? 25 How many sections did you attend? 10 Section points 30 / 34 Total points 80 / 94 Weighted score = 42.6 = = Overall percentage 88.8 Your grade will be at least: B >

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions

Question

2. To identify examples of organization structure elements.

Answered: 1 week ago

Question

=+What kinds of problems need to be overcome?

Answered: 1 week ago