| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Need Help Solving a Problem
Problem>>
At the Story Country Jail, guards work a rotating week of 6 days on, 3 off. Write a program to print a small "calendar" of their days off. For example, if someone's vacation starts Tuesday, we want to print this: S M T W T F S w O O O w w w (where w=work, O=off/vacation and weeks start on Sunday.) Various jails may have a different number of days off, instead of 3, so we will make that be an input. Sample runs for part a: % daysoff Start of vacation (1=Sun, 7=Sat): 2 Length of vacation (in days): 4 S M T W T F S w O O O O w w |
|
#2
|
|||
|
|||
|
No one is going to do your homework for you. Try and come back with specific questions.
-KM- |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > Need Help Solving a Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|