cis homework
zy0715You must follow the instructions closely to get this formula right. Otherwise, it will not give you the correct result. You must preced it by the code I included. Here is the body of the function I have. You need to add the header to it, and this should work fine. Test it.
if (year < 0)
return 0;
else
{
if (month < 3)
{
month += 12;
year -= 1;
}
weekDay = (day + 2*month + 3*(month+1)/5 + year +
year/4 - year/100 + year/400 + 1) % 7;
if (month > 12)
{
month -= 12;
year += 1 ;
}
}
return weekDay;
- 9 years ago
- 20
Answer(0)
Bids(0)
other Questions(10)
- Global Info System Strategy Assignment
- DeVry Chicago BIS 155 Week 1 Quiz 2014
- principle of ethics
- QNT/ 561 help
- Financial report
- MKT 100 Marketing Plan Assignment
- ACC 561 ALL ASSIGNMENTS+QUIZ
- ACCT 346 Managerial Accounting ( Devry ) Week 3 Quiz A+ Graded
- BSOP 209 Week 1 Assignment..............(BSOP 209 Operations Analysis - DeVry)
- Graduate level assignment -I would like this assignment by tomorrow (8/15) at 7pm, please.