Question

Bug fix 2 issue1) it should ask y/n after it shows the grade to continue further...

Bug fix 2 issue1) it should ask y/n after it shows the grade to continue further 2) if i enter 7 or 9 it shld show invalid message
def calci():
    grade = float(input("Enter your grade:"))
    while (grade <= 4):
        if (grade >= 0.00 and grade <= 0.67):
            print("F")
            break
        elif (grade >= 0.67 and grade <= 0.99):
            print("D-")
            break
        elif (grade >= 1.00 and grade <= 1.32):
            print("D")
            break
        elif (grade >= 1.33 and grade <= 1.66):
            print("D+")
            break
        elif (grade >= 1.67 and grade <= 1.99):
            print("C-")
            break
        elif (grade >= 2.00 and grade <= 2.32):
            print("C")
            break
        elif (grade >= 2.33 and grade <= 2.66):
            print("C+")
            break
        elif (grade >= 2.67 and grade <= 2.99):
            print("B-")
            break
        elif (grade >= 3.00 and grade <= 3.32):
            print("B")
            break
        elif (grade >= 3.33 and grade <= 3.66):
            print("B+")
        elif (grade >= 3.67 and grade <= 3.99):
            print("A-")
            break
        elif (grade == 4.00):
            print("A")
            break
        elif (grade == 4.00):
            print("A+")
        else:
            print("Invalid input enter FLOAT only")
def main2():
    question = input("Continue (y/n)")
    if question == "y" or question == "Y":
         calci()
        if question == "n" or question == "N":
        print("Bye")

       print("ISQA 4900 quiz")
main2()
0 0
Add a comment Improve this question Transcribed image text
Answer #1
def calci():
    grade = float(input("Enter your grade:"))
    while (grade <= 4):
        if (grade >= 0.00 and grade <= 0.67):
            print("F")
            break
        elif (grade >= 0.67 and grade <= 0.99):
            print("D-")
            break
        elif (grade >= 1.00 and grade <= 1.32):
            print("D")
            break
        elif (grade >= 1.33 and grade <= 1.66):
            print("D+")
            break
        elif (grade >= 1.67 and grade <= 1.99):
            print("C-")
            break
        elif (grade >= 2.00 and grade <= 2.32):
            print("C")
            break
        elif (grade >= 2.33 and grade <= 2.66):
            print("C+")
            break
        elif (grade >= 2.67 and grade <= 2.99):
            print("B-")
            break
        elif (grade >= 3.00 and grade <= 3.32):
            print("B")
            break
        elif (grade >= 3.33 and grade <= 3.66):
            print("B+")
        elif (grade >= 3.67 and grade <= 3.99):
            print("A-")
            break
        elif (grade == 4.00):
            print("A")
            break
        elif (grade == 4.00):
            print("A+")
        else:
            print("Invalid input enter FLOAT only")
def main2():
    question = input("Continue (y/n)")
    while(True):
        if question == "y" or question == "Y":
            calci()
        elif question == "n" or question == "N":
            print("Bye")
            break
        else:
            print("Invalid input. Please enter again")
        question = input("Continue (y/n)")

print("ISQA 4900 quiz")
main2()

Add a comment
Know the answer?
Add Answer to:
Bug fix 2 issue1) it should ask y/n after it shows the grade to continue further...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT