问题描述
您需要设计和编写一个C#控制台应用程序(任何其他应用程序是自动失败!!),它将分析输入文件(InputFile.txt);该文件包含每行的日期。您的算法应输出所有丢失的日期,不包括星期六和星期日。你不应该迎合公众假期。另请注意:每个闰年(每4年)包含2月29日的额外日期。闰年:2000年,2004年,2008年,...
您的结果还应输出日期范围而不是每个日期;如果缺少多个并发日期。例如:如果您缺少2008/02 / 03,2008 / 02/04和2008/02/05,则应输出2008/02/03 - 2008/02/05。
您的输出应写入文件(OutputFile.txt)。将使用您的名称在本地驱动器上创建一个文件夹,该文件夹应包含您的所有解决方案和源文件,以及您的输出文件。
You are required to design and write a C# console application (Any other application is an automatic fail!!) that will analyze an input file (InputFile.txt); the file contains a date on each line. Your algorithm should output all the missing dates, excluding Saturdays and Sundays. You should not cater for public holidays. Also keep in mind: each leap year (every 4 years) contains an extra date for February 29th. Leap years: 2000, 2004, 2008, …
Your results should also output a date range instead of each individual date; if there is more than one concurrent date missing. For example: if you are missing 2008/02/03, 2008/02/04 and 2008/02/05 you should output 2008/02/03 – 2008/02/05.
Your output should be written to a file (OutputFile.txt). A folder will be created on the Local Drive with your Name, this folder should contain all your solution and source files, as well as your output file.
推荐答案
这篇关于我要去采访他们给了我以下项目你能不能给我一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!