Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Python Program. I need the code. Thanks. Write a program [a group of statements)

ID: 3541722 • Letter: P

Question


Python Program. I need the code. Thanks.

Write a program [a group of statements) to calculate course total marks using the following steps: The program prompts the user to enter the student name with the following statement: "What is the name of the student?" The user enters the student name and save it in a string variable called student_name The program prompts the user to enter the mark of first midterm with the following statement: "Enter the mark of the first midterm (0-100)" The user enters the value of first midterm and save it in an integer variable called midterm1 The program prompts the user to enter the mark of second midterm with the following statement: "Enter the mark of the second midterm (0-100)" The user enters the value of second midterm and save it in an integer variable called midterm2 The program prompts the user to enter the mark of the final exam with the following statement: "Enter the mark of the final exam (0-100)" The user enters the value of final exam and save it in an integer variable called final Create a float variable called total which computes the total course mark by the following equation The output is printed in the following format: "The final mark of student_name is total out of 100".

Explanation / Answer

print " What is the name of the student?" ;

student_name= raw_input('What is the name of the student?');

midterm1=raw_input('Enter the mark of the first midterm(0-100)');

midterm2=raw_input('Enter the mark of the second midterm(0-100)');

final=raw_input('Enter the mark of the first final exam(0-100)');

Total = ((20*midterm1)+(20*midterm2)+(60*final))/100

print " The final Mark of"+ student_name+" is "+total+" out of 100" ;