Lab46 Wiki
User Tools
Log In
Site Tools
Search
Tools
Show pagesource
Old revisions
Backlinks
Recent Changes
Media Manager
Sitemap
Log In
>
Recent Changes
Media Manager
Sitemap
You are here:
start
»
notes
»
cprog
»
fall2023
»
projects
»
mmf0
Sidebar
information
Documentation
Faculty Pages
Log Metrics
Mailing Lists
Student Pages
Computing/IT Jobs
support
Administrivia
Submit Help Request
Tutoring Help
notes:cprog:fall2023:projects:mmf0
This is an old revision of the document!
Table of Contents
MMF0
Process
Input value as short int (all four digits)
Obtain the last two digits of this input value
Quarter the value
Add quartered value back to two digit year
Subtract best fitting multiple of seven
Look up day in table
Edge case: leap years
SELECTION
if statements
else if
else
RELATIONAL OPERATORS
VERIFY RESULTS
MMF0
Process
Input value as short int (all four digits)
Obtain the last two digits of this input value
Quarter the value
Add quartered value back to two digit year
Subtract best fitting multiple of seven
Look up day in table
Day
Value
Monday
1
Edge case: leap years
SELECTION
if statements
else if
else
RELATIONAL OPERATORS
Operator
Description
==
is equal to
VERIFY RESULTS
notes/cprog/fall2023/projects/mmf0.1694118220.txt.gz
· Last modified: 2023/09/07 20:23 by
wedge
Page Tools
Show pagesource
Old revisions
Backlinks
Back to top