A friend of mine has been asked to complete the following pre-phone interview test.
FFS you wouldn't ask a bloke to come round to fix your car stereo then make before he starts make him rewire your great grandfathers gramophone just to make sure he was suitable....
would you do it? I told him to tell them to fek orf
Please write a small application that can calculate the difference in days between two dates.
The application should meet the following requirements:
• It should be written in C# and .NET
• The code must not use the DateTime or other date functionality provided within the .NET library, this is a test of coding, not of knowledge of the .NET FCL
• The code can be as complex or as simple as you think is needed to meet the requirements.
• The code must be able to be compiled, run and tested.
• The code should be supplied in a Zip file
The following should be considered valid test data:
• From and including: Saturday, 1 January 2000, to and including: Monday, 31 December 2007
= 2922 days from the start date to the end date, end date included
• From and including: Saturday, 1 January 2000, to but NOT including: Monday, 31 December 2001
= 730 days from the start date to the end date, end date included
• From and including: Monday, 1 January 1900, to and including: Friday, 31 December 1999
= 36,524 days from the start date to the end date, end date included
• From and including: Thursday, 1 February 1900, to and including: Thursday, 1 March 1900
= 29 days from the start date to the end date, end date included
• From and including: Monday, 1 February 1904 to and including: Tuesday, 1 March 1904
= 30 days from the start date to the end date, end date included
FFS you wouldn't ask a bloke to come round to fix your car stereo then make before he starts make him rewire your great grandfathers gramophone just to make sure he was suitable....
would you do it? I told him to tell them to fek orf
Please write a small application that can calculate the difference in days between two dates.
The application should meet the following requirements:
• It should be written in C# and .NET
• The code must not use the DateTime or other date functionality provided within the .NET library, this is a test of coding, not of knowledge of the .NET FCL
• The code can be as complex or as simple as you think is needed to meet the requirements.
• The code must be able to be compiled, run and tested.
• The code should be supplied in a Zip file
The following should be considered valid test data:
• From and including: Saturday, 1 January 2000, to and including: Monday, 31 December 2007
= 2922 days from the start date to the end date, end date included
• From and including: Saturday, 1 January 2000, to but NOT including: Monday, 31 December 2001
= 730 days from the start date to the end date, end date included
• From and including: Monday, 1 January 1900, to and including: Friday, 31 December 1999
= 36,524 days from the start date to the end date, end date included
• From and including: Thursday, 1 February 1900, to and including: Thursday, 1 March 1900
= 29 days from the start date to the end date, end date included
• From and including: Monday, 1 February 1904 to and including: Tuesday, 1 March 1904
= 30 days from the start date to the end date, end date included
Comment