Java Notes
Programming: Weeks and Days
Name _______________________________
Write a program to read in a number of days. It should
then display the number of weeks and days that that represents.
You can solve this using integer division and the "mod" remainder operator (%).
Example input and output values
Input: 9 Output: 1 week(s), 2 day(s) Input: 20 Output: 2 week(s), 6 day(s) Input: 1 Output: 0 week(s), 1 day(s) Input: 365 Output: 52 week(s), 1 day(s)















