Hi ! I’m new to python and all of this, if anyone could help me understand what to do i’d appreciate it
Assignment:
You will be developing a Python program to process an unknown number of exam scores, using a loop.
The exam scores are entered by the user at the keyboard, one score at a time
Exam scores need to be at least zero and at most 100
if an exam score is at least 90, increment A_count by 1
if it’s at least 80 and less than 90, increment B_count by 1
if it is at least 70, and less than 80, increment C_count by 1
if it’s at least 60 and less than 70, increment D_count by 1
if it’s at least 0 and less than 60, increment F_count by 1
Once an exam score less than 0 or greater than 100 is entered, then report each of the above counts, one per line, and each along with an appropriate message
would I just be typing this into the program? Sorry there was more to the assignment but it wouldn’t let me upload it I just assumed that was the gist.
The program should ask you for the exam scores, which you type in one at a time. You indicate when you’ve finished all by typing in a score that is less than 0 or greater than 100.
You will be developing a Python program to process an unknown number of exam scores, using a loop.
This implies a need for a while loop; i.e., you do not know the number of scores entered beforehand so we need to keep running until a condition is met. The condition being when you enter anything above 100 or below 0.
The exam scores are entered by the user at the keyboard, one score at a time.
This implies an input such as this:
score_entered = int(input('Enter score: '))
Note that you have to append the prefix ‘int’ to the input statement as input outputs type strings. The int converts a string to a type integer which we need for comparison purposes.
Exam scores need to be at least zero and at most 100
if an exam score is at least 90, increment A_count by 1
if it’s at least 80 and less than 90, increment B_count by 1
if it is at least 70, and less than 80, increment C_count by 1
if it’s at least 60 and less than 70, increment D_count by 1
if it’s at least 0 and less than 60, increment F_count by 1
This implies creating five different variables for each potential conditional statement.
Be sure to initialize them to zero before the program starts to start a fresh count.
Increment each variable by 1 each time that a conditional statement is met.
Once an exam score less than 0 or greater than 100 is entered, then report each of the above counts, one per line, and each along with an appropriate message.
This is the conditional statement by which your program will exit the program. This ties to the very first item described above. Thus, there should be a total of six conditional statements.
Once this conditional statement is satisfied, it will exit the program and print out the results.
This is where the print statements come in as a summary to tabulate the results for the user.
Make sure to read the assignment requirements carefully and compare it with the topics that are currently being discussed in the course as well as with material that has been covered up to this point. You should be able to put two and two together as they say and quickly come up with a potential solution.
It’s hard to understand what you mean. First off, I can’t guess what you’re referring to by “this”. But more importantly: we aren’t in your class, so we don’t know what you’re expected to have learned by now; and we aren’t you, so we don’t know what you actually have learned so far.
So - thus far, have you been expected to write any Python programs, at all? What programs did you write, and what difficulties did you encounter with them? Before this assignment, what lessons were provided? Did you find anything specific confusing about the material?