• 百炼成仙txt下载第九 > rar/cpp/txt/ctxt/cc/cbak/c~
  • rar/cpp/txt/ctxt/cc/cbak/c~

    免费下载 下载该文档 文档格式:PDF   更新时间:2005-09-01   下载次数:0   点击次数:2
    文档基本属性
    文档语言:Traditional Chinese
    文档格式:pdf
    文档作者:Ashton
    关键词:
    主题:
    备注:
    点击这里显示更多文档属性
    EE2310 Introduction to Programming
    Homework Assignment #4 Fall Semester 2004 Due Date: November 16, 2004
    Write a perpetual calendar program, that is, your program should be able to produce a calendar of the month including the given day, range from 1/1/1801 to 12/31/9999 A.D., and add a star(*) on that day. Following are input/output examples Please input the day: 2004 11 5 November 2004 M Tu W Th 1 2 3 4 8 9 10 11 15 16 17 18 22 23 24 25 29 30
    (Use SPACE to divide year, month, and day in this order.)
    S 7 14 21 28
    F S *5 6 12 13 19 20 26 27
    Hint: 1. Pay attention on LEAP YEAR! Every year divisible by 4 is a leap year. But every year divisible by 100 is NOT a leap year. Unless the year is also divisible by 400, then it is still a leap year. 2. There is a command in UNIX, "cal", can produce calendar of a given month, you can check your program with this. 3. Historical Note: The Gregorian calendar was first adopted in Italy, Poland, Portugal and Spain in 1582. This was done by dropping 10 days in October (Ottobre). In Great Britain (and to-become USA), the Gregorian calendar was adopted much later - 11 days were dropped in September 1752. 4. TA's word: 4.1 Please upload correct file format (.c), and on time. DO NOT upload other file formats, such as .rar/.cpp/.txt/.c.txt/.c.c/.c.bak/.c.~.
    4.2 Second, we strongly suggest you to write your program on UNIX along with the compile "gcc", if you use other compiler on PC; please make sure that your program is able to be compiled with "gcc". 4.3 You are suppose to start your program with your name and student id as following: // EE08, u930101, 王小明 // EE2310 Homework 5 2004/11/10 4.4 You program should have clear comments on variables and control flows. At least one comment at the beginning of each loop is required. 4.5 You should use SPACEs and INDENTIONs properly and consistently to show your logic structure and make your code easy to read. (You can refer to your test book for what this is.) 4.6 You will lose your score up to 20% if you do not conform with the requirements above, as announced in our homework policy at the beginning of this course. 4.7 For any problem, you are welcome to TA hours to discuss with us.
  • 下载地址 (推荐使用迅雷下载地址,速度快,支持断点续传)
  • 免费下载 PDF格式下载
  • 您可能感兴趣的
  • 百炼成仙txt第九  百炼成仙txt下载  百炼成仙txt全集下载  百炼成仙txt完本下载  百炼成仙txt免费下载  百炼成仙下载全本txt  百炼成仙全文txt下载  百炼成仙txt迅雷下载  百炼成仙txt下载新浪