Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Help me solve problems 2 . 1 , 2 . 2 , and 2 . 3 in Python. Please make the code look beginner -
Help me solve problems and in Python. Please make the code look beginnerfriendly. Thank you so much!
The Problem
Professor Charles Xavier is at it again. He would like you to improve on the program you wrote for him last week. As you may recall this program, when given an input of a student points earned in the course, would output a letter grade and grade points.
Prof. Xavier would like the program to input multiple points earned as part of a sentinel controlled loop, and as each student total point score is entered calculate the following statistics:
count of student point scores in A range, and percentage of total
count of student point scores in B range, and percentage of total
count of student point scores in C range, and percentage of total
count of student point scores in D range, and percentage of total
count of student point scores in F range, and percentage of total
total count of point scores entered
NOTE: The statistics are only displayed when the command quit is entered.
Once again, here is the grading scale he uses:
Point Range Grade Grade Points
A
B
C
D
F
Sample Run :
Enter student score or 'quit' to exit:
Enter student score or 'quit' to exit:
Enter student score or 'quit' to exit:
Enter student score or 'quit' to exit: quit
Scores :
A:
B:
C:
D:
F:
Sample Run :
Enter student score or 'quit' to exit:
Enter student score or 'quit' to exit:
Enter student score or 'quit' to exit:
Enter student score or 'quit' to exit:
Enter student score or 'quit' to exit:
Enter student score or 'quit' to exit: quit
Scores:
A:
B:
C:
D:
F:
### You Code
Write a loop to input grades. Just count the number of grades inputted Scores Accept string input, checking for 'quit', when its not 'quit', convert to a int and then count it Upon quit, display the count of scores entered. Scores:
### You Code
Inside your loop, figure out what grade the score is based in the input. You will use a series of if statements similar to the previous homework assignment. For example, if the score is an A increment a variable that counts the number of A grades. Upon quit display the score and grades.
Start with a copy of your answer from
### Optional Bar Chart Challenge!
This is optional and will not be graded, or factored into the assignment checker.
#### If you want in the Xmen you need to suck up to Prof. Xavier!!!
Print your stats using a textonly tech bar chart, like this. This is easy to do in Python with the string operator. Look it up and make it your own!
Scores :
A
B
C
D
F
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