Need help on C++ project

profileseiai
short_problems_2.docx

1. Suppose that in a certain year January 1 happens to fall on a Wednesday. Write a program for determining which day of the week the nth day of the year is, and print the result along with suitable comments. (It can be assumed that the year at issue is not a leap year and thus has 365 days.)

2. Extend the previous Problem so that the program reads in the year and the weekday of January 1 (e.g., 2011, Saturday). The program should then behave in the same fashion as in the original problem except for the fact that it will take into account the possibility of the year being a leap year and also print out the date of the nth day of the year.

3. Put a menu on a Windows form.

4. Do a State Machine Diagram for some machine, perhaps a Cell Phone, Home Entertainment Center, or Super-Duper Shave&Haircut Machine.

5. Two binary numbers can be added digit by digit, performing the calculation from the right to the left, almost like decimal numbers. The “addition rules” required are 0 + 0 = 0, 0 + 1 = 1 + 0 = 1, 1 + 1 = 0 and a carry of 1 to the next column, and 1 + 1 + 1 = 1 and a carry of 1 to the next column.

6. Write a program to read 40 0’s and 1’s representing two 20-bit binary numbers, add these numbers together, and print out the result in binary. For example, if the two numbers are 00101010101101111001 and 00101110110110100110 then the result should be 01011001100100011111

7. Use at least 2 of the Common Dialogs.