3.Professor Mysterious uses a special tormula to caiculate the gra students. Wri
ID: 3907337 • Letter: 3
Question
3.Professor Mysterious uses a special tormula to caiculate the gra students. Write a program that repeatedly does the tollow a. Prompt the user to enter the grade of the first test b. Prompt the user to enter c. Prompt the user to enter the grade of the third test. the grade of the second test The program should then calculate and displays the student grade bas tollowing formula: grade.25 test1+.61 test2+.14 test 3 NOTE: Exit the program using sentinel or magic value. SAMPLE PROGRAM RUN Enter Test1 (0 to exit): 100 Enter Test2:90 Enter Test3:87 Grade: 92.08 Enter Test1 (0 to exit):0 Thank you for using this program..Explanation / Answer
while True: test1 = int(input('Enter Test1(0 to exit): ')) if test1 == 0: break test2 = int(input('Enter Test2:')) test3 = int(input('Enter Test3:')) grade = .25*test1 + .61*test2 + .14*test3 print('Grade: %.2f ' % grade)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.