Question
Program 6: A college course has the following grading system and weights: 4 Quizzes each worth 100 points Weight: 40% of course grade 6 Homework
Program 6:
A college course has the following grading system and weights:
4 Quizzes each worth 100 points Weight: 40% of course grade 6 Homework assignments each worth 100 points Weight: 60% of course grade
3
Design and create a program that allows the user to enter their score for each of the 10 items above and then calculates and displays their course grade as a percentage (0%-100%) as the example in the sample output shows (round number output to zero digit to the right of decimal). Allow user input to be integer or float, i.e. in the example below the user entered 100 as input for all 10 inputs. Display a % sign after the grade with no space in between. Align all the numeric user input and output in a second column as shown below using the tab character.
Have the ablitliyy to Handle invalid input for the scores such as words (2 pts)
Sample run:
Enter your score for Quiz #1: 100
Enter your score for Quiz #2: 100
Enter your score for Quiz #3: 100
Enter your score for Quiz #4: 100
Enter your score for Homework #1: 100
Enter your score for Homework #2: 100
Enter your score for Homework #3: 100
Enter your score for Homework #4: 100
Enter your score for Homework #5: 100
Enter your score for Homework #6: 100
----- Your grade in the class is: 100%
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started