Question: Having issues getting the programs output to match how its suppose to look for the assignment. 1- aligning the output 2- adding the test numbers

Having issues getting the programs output to match how its suppose to look for the assignment.

1- aligning the output

2- adding the test numbers

Heres the example on how its suppose to look. Note: Not allowed to use formats.

Having issues getting the programs output to match how its suppose to

def main():

scores = []

for i in range(5):

print("Enter test score", i+1)

scores.append(float(input()))

return scores

def determine_grade(num):

if 90

letter_grade = "A"

elif 80

letter_grade = "B"

elif 70

letter_grade = "C"

elif 60

letter_grade = "D"

else:

letter_grade = "F"

return letter_grade

def calc_average(grades):

average = sum(grades) / len(grades)

grade = determine_grade(average)

print("Average: ", average, " ", grade)

scores=[]

name = input("Enter the student name: ")

lst = main()

print("==============================================================")

print(" ====Welcome to Grade and Average test score==== ")

print("==============================================================")

print()

print("--------------------------------------------------------------")

print("Student Name: ", name)

print("--------------------------------------------------------------")

print(" Test \t Numeric Grade \t Letter Grade")

print(" ---- \t ------------- \t ------------")

for n in lst:

print(" ", n, " \t ", determine_grade(n), " ")

print("--------------------------------------------------------------")

calc_average(lst)

Program Calculation The program should determine the letter grade for each score and average score of all five scores, along with the average letter grade. Program Output Shown below is the expected output produced by the program using the sample input: Your output should look like the output above and everything should align correctly You are required to use functions for this assignment. Formatting numbers is covered on pages 68-73 in the textbook. Examples can be found in the Chapter 2 PowerPoint, slide 36

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!