Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The provided program will ask the user for his grade as an integer and report the letter grade according to the following conditions: 9 0

The provided program will ask the user for his grade as an integer and report the letter grade according to the following conditions:
90 or greater: A
80 to 90(not inclusive): B
70 to 80(not inclusive): C
60 to 70(not inclusive): D
less than 60: F
The program has 4 bugs. Find and fix them.
Instructions:
There is no need to perform input validation on this program.
Repeated bugs of the same type are considered a single bug and not two or more different bugs.
Answer: (penalty regime: 10,20,..%)
marks = int(input("Enter the student's marks
if marks >90:
grade ="A"
if marks >80:
grade ="B"
if marks >70:
grade ="C"
if marks >60:
grade ="D"
print("The student received a grade of {grade}
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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago