Question: Python code project: Create a grading system with The total semester score = 2 0 % * Test 1 + 2 0 % * Test

Python code project:
Create a grading system with The total semester score =20%*Test1+20%*Test2+40%*HW +20%*Project
please use the following coding examples for the project
import sys
if len(sys.argv)>1:
file1_name = sys.argv[1]
else:
file1_name = input("Enter the name of input file without.txt extension ")
if len(sys.argv)>2:
file2_name = sys.argv[2]
else:
file2_name = input("Enter the name of Output file without.txt extension ")
file1= open(file1_name +".txt","r")
file2= open(file2_name +".txt","w")
content = file1.readlines()
line_number =0
for i in content:
file2.write("/*"+ str(line_number)+"*/"+ i)
line_number = line_number +1
print("Process was done successfully")
total_score =0.2* test1+0.2* test2+0.4* hw +0.2* project

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!