You must follow the instructions closely to get this


In this assignment you will use clean structured design to solve a problem that is normally considered to be very difficult, and find that it is
in fact surprisingly easy. Look before you leap: think about how your program is going to be organized, don't just start typing. A rational design will give you a working program quite easily; an unplanned design will not.

You need to make sure that your program will flow smoothly and your functions are designed with the right parameters and appropriate data types (you should put very little in main(). You can implement this assignment under any platform but make sure it works under Unix. In other words, don't use any operation systems (Windows or OSX) specific libraries). This also means that no graphical operations will be available, only plain text You 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;

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: You must follow the instructions closely to get this
Reference No:- TGS01012680

Expected delivery within 24 Hours