1,234
edits
Changes
→A1 Usage Report Template
[[Category:OPS435]][[Category:rchan]]
= A1 Usage Report Template =
Please note that the following listing contains some actual python codes, but mostly are pseudo code.
<sourcepre>
#!/usr/bin/env python3
#
import sys
def menu(title,items,choice):
return login_rec
def cal_daily_usage(subject,login_recs):
# check number of subjects in login_recs
# if less than 10, display subject selection menu
return 0
def cal_weekly_usage(subject,login_recs):
# check number of subjects in login_recs
# if less than 10, display subject selection menu
return 0
def cal_monthly_usage(subject,login_recs):
# check numbe of subjects in login_recs
# if less than 10, display subject selection menu
if menu_selected == 'w':
if menu_selected == 'm':
print('Thank you for using this Python program.')
</sourcepre>