Calendar

Concluído Postado Jan 21, 2004 Pago na entrega
Concluído Pago na entrega

Write a program to display a calendar for any month of any year of the twentieth century and on. Your prompts do not have to be identical to these: Enter month number: 13 Month must be between 1 and 12, please re-enter: 0 Month must be between 1 and 12, please re-enter: 2 Enter year: 98 Year must be 1900 or later, please re-enter: 2002 February 2002 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 Another? (y or n) To determine the day of the week on which the month starts: know that January 1, 1900 was a Monday, and then find the number of days difference between that day and the first day of the month for which you are making the calendar. This difference plus one mod 7 (i.e. (totaldays+1) % 7) tells you the day of the week (0 meaning Sunday, 1 meaning Monday etc.). Finding the number of days from 1/1/1900 to the first day of any other month can be further broken down into the following subproblems: 1. Number of days in whole years (i.e., (Year - 1900) * 365); 2. One day for each year in the above range which is a leap year; 3. The number of days in each month from January thru the previous month of the year you're making a month calendar for. Remember the rule for leap years: A year is a leap year if it is divisible by 4, unless it is divisible by 100 (in which case it's not a leap year) UNLESS it's also divisible by 400 (in which case it's a leap year). year%4==0 && year%100!=0 || year%400==0 (1900 was not a leap year, but 2000 is, 2100 will not be). See the function in the notes. Use the method of top-down design, breaking the problem into subproblems and each subproblem into further subproblems, until it is easy to code each subproblem as a C function. At this point, your problem decomposition should show the basic structure of the program, as well as making the code modular and easy to read and debug. To give you practice in writing functions, your program MUST have several functions, including one that inputs from the user the month and year. main should be not much more than a series of function calls. Global variables are NOT allowed. Displaying the dates hint: have a loop that prints out the blank days of the first week, then have a loop that loops over the days 1 to 30 (or 31, 28, or 29) The end of the week is when the date plus the number of blank days is a multiple of 7.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.

3) Exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

4)must be in visual C++ code

## Platform

windows xp visual C++

Programação C Engenharia MySQL PHP Arquitetura de software Teste de Software

ID do Projeto: #3075362

Sobre o projeto

33 propostas Projeto remoto Ativo em Jan 29, 2004

Concedido a:

grayfacedbu

See private message.

$12 USD em 3 dias
(39 Comentários)
3.5

33 freelancers estão ofertando em média $23 nesse trabalho

cinterosystems

See private message.

$29.75 USD in 3 dias
(140 Comentários)
5.8
utopiaprogr

See private message.

$38.25 USD in 3 dias
(62 Comentários)
5.4
vw542790vw

See private message.

$11.05 USD in 3 dias
(64 Comentários)
5.5
lostbard

See private message.

$13.6 USD in 3 dias
(221 Comentários)
5.2
senzaciosnegyes

See private message.

$19.55 USD in 3 dias
(104 Comentários)
4.9
yosevw

See private message.

$11.9 USD in 3 dias
(30 Comentários)
5.0
thinkitvw

See private message.

$34 USD in 3 dias
(36 Comentários)
5.2
ziran

See private message.

$38.25 USD in 3 dias
(47 Comentários)
4.5
pafkavw

See private message.

$21.25 USD in 3 dias
(58 Comentários)
4.7
lmxvw

See private message.

$41.65 USD in 3 dias
(126 Comentários)
4.7
anontech

See private message.

$17 USD in 3 dias
(17 Comentários)
4.3
vw821235vw

See private message.

$19.55 USD in 3 dias
(94 Comentários)
4.3
zdcodinginc

See private message.

$42.5 USD in 3 dias
(24 Comentários)
4.5
KiwiSoftSolution

See private message.

$8.5 USD in 3 dias
(16 Comentários)
3.8
mustafahamdani

See private message.

$5.95 USD in 3 dias
(13 Comentários)
3.9
rebuildingteam

See private message.

$29.75 USD in 3 dias
(20 Comentários)
3.5
thextvw

See private message.

$25.5 USD in 3 dias
(42 Comentários)
3.4
shashikhanvw

See private message.

$42.5 USD in 3 dias
(15 Comentários)
3.8
ussrvw

See private message.

$25.5 USD in 3 dias
(14 Comentários)
2.2
cadencevw

See private message.

$16.15 USD in 3 dias
(9 Comentários)
2.3