Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Modify the program below to demonstrate the following: 1. Fix the below program that uses a function show_letter_grade to display a user's letter grade. 2.

image text in transcribed
Modify the program below to demonstrate the following: 1. Fix the below program that uses a function show_letter_grade to display a user's letter grade. 2. The user is prompted to enter their numeric grade in the function. C # Activity 2.7 # This program demonstrates keyword arguments. def show_letter_grade( ) : num_grade = int(input('Enter the numeric letter grade: ")) if (num_grade >= 90) : print ( ' Grade is an A' ) elif() : # Fix me print ( ' Grade is a B' ) elif( ) : # Fix me print ( 'Grade is a C' ) elif( ): # Fix me print ( 'Grade is a D' ) else: print ( ' Grade is an F' ) print (show_letter_grade) # Call the main function. main ( )

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

More Books

Students also viewed these Programming questions

Question

7. LO.1, 2 Interpret this Regulation citation: Reg. 1.16310(a)(2).

Answered: 1 week ago