Answered step by step
Verified Expert Solution
Link Copied!

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: 04- 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:
calc_average. This function should accept eight test scores as arguments and return the average of the scores.
determine_grade. This function should accept a test score as an argument and return a letter grade for the score based on the following grading scale:
\table[[Score,Letter Grade,],[98-100,At,],[9298,A,],[9092,A-,],[8880,B+,],[8288,B,],[8082,B-,],[7880,C+,],[7278,C,],[7072,C-,],[6870,D+,],[6268,D,],[6062,D-,],[Below 60,F,]]
\table[[Input:,Expected output:],[60,Enter score 1:],[70,Enter score 2:],[80,Enter score 3:],[0,Enter score 4:],[100,Enter score 5:],[5,Enter score 6:],[5,Enter score 7:],[85,Enter score 8:]]
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Structure Of The Relational Database Model

Authors: Jan Paredaens ,Paul De Bra ,Marc Gyssens ,Dirk Van Gucht

1st Edition

3642699588, 978-3642699580

More Books

Students also viewed these Databases questions

Question

=+3. What is observational learning? Give two examples of it.

Answered: 1 week ago