CSC111 Python Programs Fall 2015
--D. Thiebaut (talk) 10:34, 18 September 2015 (EDT)
Wed. Sept. 16, 2015
# displayWeek.py
# D. Thiebaut
# displays a schedule for the five days of the week
length = eval( input( "Length of bar? " ) )
print( "-" * length )
for day in [ "Mo:", "Tu:", "We:", "Th:", "Fr:" ]:
print( day )
#print( " :" * 2)
print( " :" )
print( "-" * length )
# displayGrade.py
# D. Thiebaut
#
# prompts user for information and
# grade.
# display user's grade in graph, along with
# class average (constant)
# constant information
classAvg = 80
# user input. Get info from user
fName = "Dominique"
lName = "Thiebaut"
Id = 990123456
final = 90
# format information and display
bar = "+" + 48*"-" + "+"
print( bar )
print( "|", fName, lName, Id, "|" )
print( bar )
print( final )
print( classAvg )