Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Calendar Program HELP PLZ!!!!
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh pageAdd this topic to your bookmarks (CTRL-D) View next topic
Author Message
tupac




PostPosted: Sat Jan 14, 2006 8:23 pm   Post subject: Calendar Program HELP PLZ!!!!

i made this calendar program, and it works pretty good, but i have no clue on how 2 make the 1st day of the month in brightblue, and Sunday in red, and the rest of the day u enter brightgreen, and the rest just black... can any1 help me PLZ!!!


calendarprog.t
 Description:
help w/ this program ASAP plz

Download
 Filename:  calendarprog.t
 Filesize:  4 KB
 Downloaded:  136 Time(s)

 
Sponsor
Sponsor
Sponsor
sponsor
Delos




PostPosted: Sat Jan 14, 2006 9:16 pm   Post subject: (No subject)

I like this proggie. It's very neat and you've made an effective use of procedures and functions.
Your problem is quite simple to fix. In your InitFxy procedure, just modify your for loop to check whether the date being considered is a Sunday or the first day of the month. How?

Try figure it out first, otherwise I'll give you a really cryptic clue. I'd suggest trying it first, since there is no way you'll be able to ignore this once you've read it. And I'm saying that from a scientific point of view too Very Happy.

Highlight to read:
~~~

I'll give you a hint - you'll be using some nifty maths...comparing the value of 'k'. It shouldn't be too difficult to figure this one out.

~~~

+bits for what you've done so far. Fix, (compile), post in [Source] (/[Apps]) and you might get more.


Edit:
In my haste I forgot to comment on some other things:

- you need to look into types and records to streamline your variables. Check out the tuts section.
- you need to be able to exit your final loop, perhaps using an 'exit when hasch' clause.
- your input is horrific! Make sure to include some instructions, and error traps it! Being able to crash your programme is not something I should be able to do...
 
Clayton




PostPosted: Sat Jan 14, 2006 9:27 pm   Post subject: (No subject)

i also tested this program and found the instructions to be.............foggy, code was kind of all over the place, kind of an organized chaos, but does good if u can figure out how to work the program. nice job, just try to improve on what Delos suggested
 
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh pageAdd this topic to your bookmarks (CTRL-D) View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: