Question: Changes to be made to lab4.py file In order to complete this lab, follow these steps: Review the Programming Standards Document Download bonus_assignment.py and student_points.txt
Changes to be made to lab4.py file
In order to complete this lab, follow these steps:
Review the Programming Standards Document
Download bonus_assignment.py and student_points.txt from the class blackboard web site
Rename the file to xx_bonus_assignment.py, where xx are your initials
Make the following changes.
Add a comment block as per the requirements in the Programming Standards Document
Change the code shown in the lab as follows:
Display "*F*" across students who have less than 60 points
Keep a counter that tracks of the number of students who have failed the class (i.e. those who have earned less than 60 points) and print it out.
Display the percent of students who passed the class , formatted to 1 place
data shift
Johnson Smith 93 Maryanne James 80 Stanton Chase 45 Mildred Morris 90 George Deitz 58 Maisie Kling 79
python code
def main(): file_students = open("student_points.txt", "r") stu_name = file_students.readline() #read the first record, #which is the first stduent's name num_stu = 0
print("Student\t\t\tPoints\t\tGrade") print("-------------------------------- ") while stu_name != "": stu_name = stu_name.rstrip(" ") #strip from name stu_points = file_students.readline() #read numeric points stu_points = int(stu_points) #cast points into an int
print(stu_name, "\t\t",stu_points, sep="") num_stu += 1
stu_name = file_students.readline()
file_students.close() print() print("Number of students processed =", num_stu)
main()

isai C secure https://docs.google.com document/d/15BF91tStFen6PEQBXvBXOzw27SXjue6Xoh50NSHtp0U/edit#headingshakb89cykmam3 https://worship artis..http://alt-torrent.com 1 1 https://consumerce. https://vst torrent e.. http://mac-torrent-. . G https://www.chegg Pirates Of The Cari ::: Apps bonus assignment specifications File Edit View Tools Help 100% O View only Outline Waubonsee Community College Fall 2017 CIS115 Introduction to Programming Maya Tolappa Bonus Assignment (Based upon Chapter 6, Not from the book!) 50 points Refer to Programming Standards document by clicking here Table of Contents Introduction after the decimal bonusassignment.py code Sample output from my implementation is as follows. Output from changes that need to be implemented is shown in bold blue text. You do not have to change color of any of the textl Output produced by this program is a... Changes to be made to lab4.py file Sample output Student Points Grade ohnson Smith Maryanne Janes Stanton Chase Mildred Morris George Deitz Maisie Kling 93 8e 45 9e 58 79 Submit Instructions Sample program for the weck Progr... Test Data Sets Number of students processed 6 Number ofF' students Sample output % of students who passed = 66.7% I could have written only 1 function... Submit Instructions I wrote it in 3 functions, so that you... Refer to the Programming Standards document and complete program. Suhmit file via RlackBnard's sihmissinn tool student points.txt bonus assignment.py Nigel Hendroff Ambient zi RealLove Tracks.zip Show All
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
