Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Its python
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
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: # Input: # Output: # I pledge that I have completed the programming assignment independently. # I have not copied the code from a student or any source. # I have not given my code to any student. # Sign here: ######

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_2

Step: 3

blur-text-image_3

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

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions