Open main menu

CDOT Wiki β

Changes

OPS435 A1 Usage Report Template

38 bytes added, 05:37, 21 February 2018
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
import ...
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':
# call print('Call Weekly Usage report menu and submenu')
if menu_selected == 'm':
# call print('Call Monthly Usage report menu and submenu')
print('Thank you for using this Python program.')
</sourcepre>