Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #14296

Re: help me please

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "osmium" <r124c4u102@comcast.net>
Newsgroups comp.lang.c++
Subject Re: help me please
Date Sun, 19 Feb 2012 15:32:02 -0600
Lines 34
Message-ID <9qd82iFjmoU1@mid.individual.net> (permalink)
References <dac04813-d066-4385-b0d4-10711455818f@m2g2000vbc.googlegroups.com>
X-Trace individual.net woLySXp6zcvK3NclSis93gBRdDm+CnbCSiSOqp0bgb6ACja810
Cancel-Lock sha1:vUObndz/L8lxqrAYKBdTVAjlAtc=
X-Priority 3
X-MSMail-Priority Normal
X-Newsreader Microsoft Outlook Express 6.00.2900.2180
X-RFC2646 Format=Flowed; Original
X-MimeOLE Produced By Microsoft MimeOLE V6.00.2900.2180
Xref x330-a1.tempe.blueboxinc.net comp.lang.c++:14296

Show key headers only | View raw


"Herane Abule" wrote:

>I am an Ethiopian and I have a group assignment but I am alone and I
> can't do the following problem.
>
> The course is programming I
>
> the question is the following!-
>
> Required a C++ program that expects user top provide a month and year
> values from the key board. After accepting the program should be able
> to display the full calender to the given month of that year.
> The program should
> 1. Validate inputs
> 2. Let users to use it as many times as they choose
> 3. create in and out properly and e.t.c
<snip>
I think a student should approach this differently than a real 
programmer,would.  Try to get some positive feedback early on and build up a 
feel for programming and the language.  IMO, a  good starting point would be 
to write a routine (function) that displays a 31 day calendar that starts on 
Sunday.  When you have this working to your satisfaction modify it to start 
on different days (Monday and so on)  and then print differing numbers of 
days. Then work on the input from the user and do the leap year stuff next 
to last.  Letting the user have several runs would be dead last.  This will 
take quite a few hours for a student, don't be dismayed, it's a lot of fun. 
You should have one major goal at all times, but the goal keeps changing.

None of this written in stone, thus the IMO proviso.




Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

help me please Herane Abule <yetetasera12@gmail.com> - 2012-02-19 11:48 -0800
  Re: help me please "osmium" <r124c4u102@comcast.net> - 2012-02-19 15:32 -0600
    Re: help me please Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-02-25 11:37 +0000

csiph-web