Question: Its python Write a Python program that calculates the average score of three homework scores. Then after the calculation, print out the name and average




Write a Python program that calculates the average score of three homework scores. Then after the calculation, print out the name and average score of this person. Input: first name, homework1 score, homework2 score, homework3 score. Output: a) a line will be appended to the data file (testdata.txt), this line consists of the first name and the letter grade, and b) prints a line to the screen that summarizes the calculation. Remember, the file testdata.txt already has data in it. Note: If the average grade is C+ and below, the comment will be 'You need to work harder..." If the average is B-, B, and B+, then the comment will be "Good work." If the average is A- and above, then the comment will be "Excellent!" The grading scheme is as follows Letter grade Percentage to 94% A+ 100% A ". ###***** ******* # Course: CMPT 140 Introduction to Computing Science and Programming I # Instructor: Dr. Herbert H. Tsang # Description: Give a brief description for homework 1> # Due date: %23 # Author:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
