Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Dashboard Announcements Assignments Grades Modules Pear Deck Writing Lab Brainfuse Online Tutoring Follett Discover Chapter Programming Exercises Exercise: 0 4 - Test Average and Grade
Dashboard
Announcements
Assignments
Grades
Modules
Pear Deck Writing Lab
Brainfuse Online Tutoring
Follett Discover
Chapter Programming Exercises
Exercise: Test Average and Grade
Write a program that asks the user to enter eight test scores. The program should display a letter grade for each score and the average test score in a table format.
Write the following functions in the program:
calcaverage. This function should accept eight test scores as arguments and return the average of the scores.
determinegrade. This function should accept a test score as an argument and return a letter grade for the score based on the following grading scale:
tableScoreLetter Grade,AtAABBBCCCDDDBelow F
tableInput:Expected output:Enter score :Enter score :Enter score :Enter score :Enter score :Enter score :Enter score :Enter score :
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