Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In Python, What code do I write for this? # INPUT LIST contains the scores submitted before the due - date. # There are multiple
In Python, What code do I write for this? # INPUT LIST contains the scores submitted before the duedate. # There are multiple elements for each student, since they are allowed to submit more than once. # below is a nested list. There is a list for each student. scores # Real one # PART # How Many students submitted scores? Figure out the number of students and # store the results into a variable called # Print the number of students in the following format: # "There are xx students" # Use fprint and use the variable in your print statement. # PART # Use list comprehension to create a list for student names # The list created is to be called # The entries in need to be: 'Student 'Student # Print the student names and scores, using # Print the following blocktitle to start the block. # "STUDENT NAMES and SCORES: # Use fstrings for printing. # PART # If a student has not submitted a score, set the student's score to # Update if there are any students who did not submit scores. # Start a block with the following blocktitle: # "STUDENTS WHO DID NOT SUBMIT SCORES: # Then for each student who did not submit a score, print: # "Student xx did not submit any scores" # PART # Students are allowed to submit no more than scores. # If a student has submitted more than scores, # update the corresponding entry in by keeping only the highest scores for that student # Print the student names and their scores, after the update. # Print the following blocktitle to start the block. # "UPDATED SCORES, HIGHEST SUBMISSIONS # Print the name of each student from and the updated scores. # Use fstrings for printing. # Part # If a student has a negative score, it is a mistake, correct it by # replacing the negative entry by its absolute value. # As per the printing instructions in Part print the name and scores for each student, # using fstrings. # The blocktitle for this part is # "UPDATED SCORES, NEGATIVE SCORES CORRECTED # Part # If there are any scores set the score to # Print the names and scores of the students as per the instructions given in Part # The blocktitle for this part is: # "UPDATED SCORES, SCORES RESET to # Part # In this part, you figure out who graded the scores. # Safiyah always grades the st score of a student. # If there are only scores for a student, then the graders are Safiyah and Gabriel. # If a student has submitted or more scores, Dr A also gets to grade. # Print each student's name and its graders on the same line # Follow the printing instructions given in Part # The titleblock for this part is: # "THE GRADERS: # Part # The final score for a student is the highest score. # Select the highest score for each student and store the values in a new list # Print the final score for each student. # Follow the instructions in Part # The titleblock for this part is: # "FINAL SCORES: # Highest score: For each student, select the highest score as the final score # Part # Store all the final scores in a tuple called # Print the final scores of the students from on a single line. # Your print statament should look like: # "STUDENT FINAL SCORES in a tuple: xx xxx nnn yyy # Part # Compute and print the class average from # Then print the following, each a single line, # The class average, # The lowest score in class # The highest score in class. # Label each line properly, such as "The class average is xxx etc. # The titleblock for this part is: # "SUMMARY:
In Python, What code do I write for this?
# INPUT LIST contains the scores submitted before the duedate.
# There are multiple elements for each student, since they are allowed to
submit more than once.
# below is a nested list. There is a list for each student.
scores
# Real one
# PART
# How Many students submitted scores? Figure out the number of students
and
# store the results into a variable called
# Print the number of students in the following format:
# "There are xx students"
# Use fprint and use the variable in your print statement.
# PART
# Use list comprehension to create a list for student names
# The list created is to be called
# The entries in need to be: 'Student 'Student
# Print the student names and scores, using
# Print the following blocktitle to start the block.
# "STUDENT NAMES and SCORES:
# Use fstrings for printing.
# PART
# If a student has not submitted a score, set the student's score to
# Update if there are any students who did not submit scores.
# Start a block with the following blocktitle:
# "STUDENTS WHO DID NOT SUBMIT SCORES:
# Then for each student who did not submit a score, print:
# "Student xx did not submit any scores"
# PART
# Students are allowed to submit no more than scores.
# If a student has submitted more than scores,
# update the corresponding entry in by keeping only the highest
scores for that student
# Print the student names and their scores, after the update.
# Print the following blocktitle to start the block.
# "UPDATED SCORES, HIGHEST
SUBMISSIONS
# Print the name of each student from and the updated
scores.
# Use fstrings for printing.
# Part
# If a student has a negative score, it is a mistake, correct it by
# replacing the negative entry by its absolute value.
# As per the printing instructions in Part print the name and scores
for each student,
# using fstrings.
# The blocktitle for this part is
# "UPDATED SCORES, NEGATIVE SCORES CORRECTED
# Part
# If there are any scores set the score to
# Print the names and scores of the students as per the instructions given
in Part
# The blocktitle for this part is:
# "UPDATED SCORES, SCORES RESET to
# Part
# In this part, you figure out who graded the scores.
# Safiyah always grades the st score of a student.
# If there are only scores for a student, then the graders are Safiyah
and Gabriel.
# If a student has submitted or more scores, Dr A also gets to grade.
# Print each student's name and its graders on the same line
# Follow the printing instructions given in Part
# The titleblock for this part is:
# "THE GRADERS:
# Part
# The final score for a student is the highest score.
# Select the highest score for each student and store the values in a new
list
# Print the final score for each student.
# Follow the instructions in Part
# The titleblock for this part is:
# "FINAL SCORES:
# Highest score: For each student, select the highest score as the final
score
# Part
# Store all the final scores in a tuple called
# Print the final scores of the students from on a single line.
# Your print statament should look like:
# "STUDENT FINAL SCORES in a tuple: xx xxx nnn yyy
# Part
# Compute and print the class average from
# Then print the following, each a single line,
# The class average,
# The lowest score in class
# The highest score in class.
# Label each line properly, such as "The class average is xxx etc.
# The titleblock for this part is:
# "SUMMARY:
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