- Send your homework (ZIP or RAR file) to TA at cs101-ta@voip.edu.tw
- Dearline:2007/11/10 00:00
- Subject of email: [CS101 HW7] 91234567
- Create New Project
- Choose Project types and Templates
- Name:
- HW7_1_91234567
- HW7_2_91234567
- Compress the folder to a ZIP or RAR file
- HW7_1
Write a program that reads an integer value from the keyboard into a variable of type int,
and uses one of the bitwise operators (i.e. not the % operator!) to determine the positive
remainder when divided by 8.
For example, 29 = (3x8)+5 and -14 = (-2x8)+2 have positive remainder 5 and 2, respectively.
From Exercise 2 of Chapter 2 (P.113)
- HW7_2
Write a C++/CLI console program that uses an enumeration to identify months in the year with
the values associated with the months running from 1 to 12.(constants range:Jan~Dec. value range:1~12)
The program should output each enumeration constants and its underlying value.
From Exercise 6 of Chapter 2 (P.114)