Help needed in algorithm design please

Hello,
I need to design an algorithm that prints a monthly calendar in tabular format. The problem is:
1. The first day of the month needs to be indented to the corresponding day of the week,
2. Each week needs to be on a separate line (Sun ... Sat),
How should I design this? What data structure should I be using?
Also, please recommend some GOOD introductory algorithm and program design books and websites.
Thanks in advance!
Eric

tsith wrote:
BigDaddyLoveHandles wrote:
tsith wrote:
BigDaddyLoveHandles wrote:
ericdunn wrote:
I'll give your suggestion a try. btw, any recommendations on GOOD algorithm and program design books?
[http://www.amazon.com/Art-Computer-Programming-Sorting-Searching/dp/0201896850/ref=sr_1_6?ie=UTF8&s=books&qid=1237833469&sr=1-6]
That's kinda mean!
how about this ?It's a classic. Studying it would make anyone a better person. But then I'm an Old Testament kind of guy. No, strike that and make it Rigveda.It is a classic, and studying it, assuming it doesn't kill you, will make you stronger, and make you want to write a MIX to Java converter.That was my Master's thesis! Then I tripped carrying the punch cards and they scattered everywhere.

Similar Messages

  • Help needed with a design!

    HELP! I need help with designing something!
    IMAGE on this link " http://i1072.photobucket.com/albums/w362/jjnilsson/DSC_0188.jpg "
    i need this patch on the picture to be "remade" in higher definition and the text should be MILF HUNTERS intstead of milf hunter... Anyone that might be able to help me out?
    reson for all this is that its gonna be made to a 30x40cm big patch fitting the back of our Team jackets!
    send me a pm or a mail ([email protected]) if you need any futher info or if you can help me out! I am really thankful for all the help i can get!
    With best regards J. Nilsson, Milf Hunters Mc

    I simply did as i got a tip on FB to do
    quote from adobe themselves on facebook "Adobe Illustrator You might also want to try asking on our forums as there are many people that can help there as well! http://forums.adobe.com/community/illustrator/illustrator_general"
    sry if it was wrong of me, simply thought there might be someone nice out there to give a helping hand
    Date: Tue, 5 Jun 2012 13:41:48 -0600
    From: [email protected]
    To: [email protected]
    Subject: Help needed with a design!
        Re: Help needed with a design!
        created by in Illustrator - View the full discussion
    This really isn't the place to ask for free services.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4467790#4467790
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4467790#4467790. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Illustrator by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Help needed with Report Design

    Hi All,
    Here is the requirement.
    Period Type(holds 2 values) : Payment and Vested.
    we have field 'Total Days' which is calculated based on "User Selected" Period Type.
    For example, When Period Type is Payment,
    If start date is less than or equal to grant date and end date is less than or equal to vest date, then calculation is (End Date - Grant Date)+1
    If start date is greater than grant date and end date is less than or equal to vest date, then calculation is (End Date - Mobility Start Date)+1 (similarly 2 more if conditions) ...we have similar calculation for Period Type - 'Vested'.
    This Period Type is a multiselect Prompt. How can this be achievable.
    Any thoughts will be greatly appreciated.
    Thanks.

    I simply did as i got a tip on FB to do
    quote from adobe themselves on facebook "Adobe Illustrator You might also want to try asking on our forums as there are many people that can help there as well! http://forums.adobe.com/community/illustrator/illustrator_general"
    sry if it was wrong of me, simply thought there might be someone nice out there to give a helping hand
    Date: Tue, 5 Jun 2012 13:41:48 -0600
    From: [email protected]
    To: [email protected]
    Subject: Help needed with a design!
        Re: Help needed with a design!
        created by in Illustrator - View the full discussion
    This really isn't the place to ask for free services.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4467790#4467790
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4467790#4467790. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Illustrator by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Help needed in Query design

    Hello Query experts,
    I have the following data in my DSO.
    Char1      date                      Kf1     KF2
    a           01.01.2011              10       20
    a           03.01.2011              50       70
    a           05.01.2011                5       10
    b           02.01.2011              20        25
    b           05.01.2011              10        15
    b           06.01.2011               5         15
    Now, I need to design a query to produce the following result:
    Char1      date                      Kf1     KF2     KF3(KF2-KF1)        KF4
    a           01.01.2011              10       20             10                     10
    a           03.01.2011              50       70             20                     30 [KF3+Prev(KF4)]
    a           05.01.2011                5       10              5                      35
    b           02.01.2011              20       25              5                       5
    b           05.01.2011              10       15              5                      10
    b           06.01.2011               5        15             10                     20
    Can anybody help me achieve this through a BI Query?
    Thanks and regards,
    Jashua

    HI,
    I think kf3 can easily be created at query level itself without writing complex logic..As far as i understand your requirement kf3 is a differnce of kf2 and kf1.
    so jst make local formula and in that put kf2-kf1.it will give you the desired output for kf3.
    Kf4 i need to think,i will update you soon

  • Help needed with nokia 6300 please

    I have nokia 6300 , I have unstalled many programs on it (like messenger and google earth java files) some of them needs to connect to internet through gprs but they give a message "Subscribe to packet transfer first". But my device connects to web and opens pages through explorer.
    Please if any can give help and thanks to all.........

    Are you sure your connecting by gprs to the net, or by other means say WIFI or wap? There are many packet services & not all are provided by ISP unless one subscribe to it.
    Knowledge not shared is knowledge wasted!
    If you find it helpfull, it's not hard to click the STAR..

  • Help needed with this tutorial please

    Hello in this InsertUpdateDelete tutorial at:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/index.jsp
    or
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/inserts_updates_deletes.html
    and in this paragraph:
    Changing the Column Components
    and this statement
    In the Visual Designer, select the top Drop Down List component in the Table.
    "It's pretty confusing because there isn't a Drop Down List component in the Table as far as i can tell. There is a Drop Down List on the canvas up above this data table, but that has already been bound in a previous process, here is that previous proces:"
    Configuring the Drop Down List
    Select the Drop Down List in the Visual Designer and, in the Properties window, change its General > id property to personDD.
    Right-click the personDD Drop Down List in the Visual Designer and choose Bind to Data from the pop-up menu. The Bind to Data dialog box appears.........
    Can anyone tell me where i can get help with this tutorial or where i can download the finished program so i can sync up with what is actually being referenced in the questional statement that i mentioned above please?
    Thanks very much!
    BobK

    In Step 5 of "Changing the Column Components" you change the Trip Type column to a drop-down list.
    5. Select TRIP.TRIPTYPEID from the Selected list and make the following changes:
    * Change the Header text field from TRIPTYPEID to Trip Type.
    * Using the drop-down list, change the Component Type from Static Text to Drop Down List.
    6. Click OK to enforce your changes and dismiss the window. If the table columns are too wide after performing the above steps, you can resize them by selecting the first component in each column and dragging its selection handles.
    7. In the Visual Designer, select the top Drop Down List component in the Table. Right-click and choose Bind to Data from the pop-up menu. The Bind to Data dialog box opens.

  • Help needed with CSS menu please

    Hello
    Could someone give me a hand with a CSS menu I am struggling
    with please?
    I want each of the blue menus to have a black border around
    it (so 4 borders in total). And how do I make each menu have a
    closer gap? I need them squashed up a little bit more vertically.
    The code is as follows -
    <style type="text/css">
    #ddblueblockmenu{
    width: 179px;
    border-top: 1px solid #FFFFFF;
    border-right: 1px solid #FFFFFF;
    border-bottom: 0 solid #FFFFFF;
    border-left: 1px solid #FFFFFF;
    #ddblueblockmenu ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
    font: normal 75% 'Trebuchet MS', 'Lucida Grande', Arial,
    sans-serif;
    border: #000000;
    #ddblueblockmenu li a{
    display: block;
    padding: 5px 0;
    padding-left: 9px;
    width: 169px; /*185px minus all left/right paddings and
    margins*/
    text-decoration: none;
    color: white;
    background-color: #2175bc;
    border-bottom: 11px solid #FFFFFF; /*change border gap size
    here*/
    /*border-left: 1px solid #1958b7;
    * html #ddblueblockmenu li a{ /*IE only */
    width: 187px; /*IE 5*/
    w\idth: 169px; /*185px minus all left/right paddings and
    margins*/
    #ddblueblockmenu li a:hover {
    background-color: #2586d7;
    border-left-color: #1c64d1;
    #ddblueblockmenu div.menutitle{
    color: white;
    border-bottom: 1px solid black;
    padding: 1px 0;
    padding-left: 5px;
    background-color: #FFFFFF;
    font: bold 60% 'Trebuchet MS', 'Lucida Grande', Arial,
    sans-serif;
    </style>
    <body>
    <div id="ddblueblockmenu">
    <ul>
    <li><a href="whoarewe.htm"><strong>What We
    Offer</strong></a></li>
    <li><a
    href="guidelines.htm"><strong>Professional
    Guidelines</strong></a></li>
    <li><a
    href="workshops.htm"><strong>Workshops</strong></a></li>
    <li><a href="contactus.htm"
    style="border-bottom-color: white; font-weight:
    bold;">Contact</a></li>
    </ul>
    </div>
    </body>
    </html>
    Any help is very greatfull appreciated!!
    Tom

    "Gary White" <[email protected]> wrote in message
    news:[email protected]..
    > On Tue, 23 May 2006 11:42:13 +1000, ".: Nadia :. ACE :."
    > <[email protected]> wrote:
    >
    >>If you want a border the same color around the whole
    menu, you can use the
    >>short-cut method:
    >>
    >>border { 1px solid #FFF;}
    >
    >
    > Uh ...
    >
    > #ddblueblockmenu{
    > width: 179px;
    > border: 1px solid #fff;
    > }
    >
    um... that's what I meant... the OP had all four sides styled
    separately,
    with 0 for one side... but mentioned he wanted a border on
    all sides....
    hence my arrow pointing out the side that had 0 for border
    and what could
    be used as a shortcut method of styling the border....
    Maybe my post wasn't exactly clear ;-)
    Nadia
    Adobe� Community Expert : Dreamweaver
    http://www.csstemplates.com.au
    - CSS Templates | Free Templates
    http://www.perrelink.com.au
    - Web Dev
    http://www.DreamweaverResources.com
    - Dropdown Menu Templates|Tutorials
    http://www.adobe.com/devnet/dreamweaver/css.html

  • Help needed with my form - PLEASE!

    My form on avarislaw.com is working properly.
    The form attach file area should not be mandatory but for some reason it still apears even when I change this in BC.
    Please help!
    Thanks
    Andy

    You need to remove the javascript validation for that form element in the HTML of the form as well.

  • Non-techy language help needed for windows install please

    Hi everyone
    I am new to mac and am felling more than a little confused about how to get the best out of the software i need to use.
    I need office 2007 to run on windows, but i as windows is not already installed, I am not sure which version to buy. I know I don't need parallel software, I just need to do the boot camp thing.
    I've tried going through the tutorials but they are really resonating with me as I have minimal knowledge about these things.
    Could someone help please?

    rlbeau1964 wrote:
    I suspect it will be a Windows 7 disk, which includes both 32 and 64 bit versions, unless Lenovo changes something on the install disk
    You suspect wrongly.  The Lenovo upgrade disk is one version only, either x86 or x64 but not both.
    The Microsoft operating systems licences that come bundled with Lenovo systems (and it's pretty much the same for all vendors)  are all for either x86 or x64 only.  So Microsoft requires the upgrades to similarly licenced.
    Cheers,
    Bill
    Cheers,
    Bill 
    I don't work for Lenovo

  • Help needed urgently .. Please help...

    I am using JTable in my project where i am overriding the default editor to my own custom editor.
    The problem is, when i am using tab key or mouse click, the cursor does not immediately move the next/clicked editable cell. I have to press the tab key twice to move to the next cell. After debugging i saw that the focus goes from the cell editor to the table and then on the second click to the next editor.
    My project requires a single click/single tab key pressed to make the cells editable.
    Please help..
    Thanks in advance..
    Preeti.

    Hi!
    I really have to get this Tab thing working.
    This is what I have tried, and it works partially.
    public boolean isManagingFocus()
    return true;
    public boolean isFocusCycleRoot()
    return true;
    * Captures tabs and moves focus to the next or previous cell, depending
    * on whether the <Shift> key was also pressed (i.e. tab or back tab).
    public void processComponentKeyEvent(KeyEvent e)
    if ( (e.getID() == KeyEvent.KEY_TYPED) && (e.toString().toLowerCase().indexOf(",tab") >= 0) )
    if (e.isShiftDown())
    tabToNextEditableCell(BACKWARD);
    else
    tabToNextEditableCell(FORWARD); // tab
    e.consume();
    else
    super.processComponentKeyEvent(e);
    * Sets editing focus onto next editable cell.
    * When moving forward, traverses cells from left to right then top to
    * bottom
    * @param direction FORWARD or BACKWARD
    private void tabToNextEditableCell(int direction)
    int x = getSelectedRow();
    int y = getSelectedColumn();
    //Added
    clearSelection();
    if ( direction == FORWARD && x < getRowCount() )
    editCellAt(x+1, ATTRIBUTE_VALUE_COL);
    else if (direction == BACKWARD && x >0)
    editCellAt(x-1, ATTRIBUTE_VALUE_COL);
    Let me describe what is happening..
    When I click tab, it moves 2 rows down, The table still highlights the next cell, but since it is not editable, I cant do anything, when I click Tab it moves to the next editable cell, which means that if the current cell is editable the table highlight moves to the next cell (which is not editable), and on the next tab it starts editing the cell.
    I dont know if I made too much sense... but I reallly need help with this.

  • Help needed - containers at design time

    I'm new to Flash, and I'm having trouble with some basic
    concepts. Here's my project:
    I've created a state map, with each county broken out as a
    symbol. I can traverse the DisplayObject list and manipulate each
    county as needed. That all seems to work ok.
    The problem: in addition to the county symbols, I have
    several other objects in my scene (text layers, logos, etc). I'd
    like to move the county symbols to a container, so I can traverse
    that container without the other objects getting in the mix. Doing
    this in AS would be cumbersome and bug-prone. How can I create such
    a container at design time? The only technique I could find was
    selecting all the counties and making them a symbol, but then I
    can't manipulate the individual counties.
    Any help? I'd appreciate any advice. I'm not new to OOP, but
    this is a very different world. Thanks!

    1. Create an empty map MovieClip
    2. Select edit (in the right click menu)
    3. Create all the countries in the map MovieClip
    4. Assign a descriptive instance name to the map instance on
    the stage

  • Help needed in payslip design

    hi experts
      My client is asking to create new payslip.
      how can i desing and assing wagtypes to those field.
      i got around 50 field in the payslip.
      i know the tcode pe51.
       is there any differnce between pe51 and se71 ?
      please help me
    regards

    HI,
    I think kf3 can easily be created at query level itself without writing complex logic..As far as i understand your requirement kf3 is a differnce of kf2 and kf1.
    so jst make local formula and in that put kf2-kf1.it will give you the desired output for kf3.
    Kf4 i need to think,i will update you soon

  • Help needed in selecting Design

    Hi all,
    I need your help in designing WLI.We need to receive messages(string) from network(sockets) and process it in WLI, send it back.Can any one pls help me which connection method(HTTP/TCP/JMS) is suitable, how to configure WLS for that?
    Thanks in Advance

    HI,
    I think kf3 can easily be created at query level itself without writing complex logic..As far as i understand your requirement kf3 is a differnce of kf2 and kf1.
    so jst make local formula and in that put kf2-kf1.it will give you the desired output for kf3.
    Kf4 i need to think,i will update you soon

  • ITUNES help needed....please

    Have had iTunes for about 2 years now and haven't had too many problems. Then this month, my entire iTunes library and playlists vanished. Everything. I tried to reinstall it and now it's reading "! Invalid Drive: G:\". I don't have a G drive and I can't access anything that has to do with iTunes.
    In addition, it was recommended that I uninstall it and then reinstall it. But when I attempt to uninstall it it states the same "! Invalid Drive: G:\". I haven't done anything different to my computer or added/removed any programs that would make me think it would affect iTunes. PLEASE HELP.

    You don't need to deauthorize your phone. When you plug it into iTunes on your new computer you should see this warning:
    Before you erase and sync, make sure that you have at least one contact and calendar entry in your computer, then when you sync for the first time you should get an option to merge that data.
    Read more here: http://support.apple.com/kb/HT1296

  • Help needed with while loops please :)

    I'm beginning to study java at School.
    My assignment using while loops, to ask user to input 2 numbers.
    I have to output all odd number between the two.
    I have to output the sum of all even numbers between the two.
    Output all the numbers and their squares between 1-10.
    Output the squares of the odd numbers between the 2 numbers the user entered.
    Output all uppercase letters.
    If anyone can give me any help, I would appreciate it greatly.
    Thank you.
    Kelly.

    It would help if you put aside your code, and wrote out some pseudo-code first so that you understand the steps you will need to take. for example
    get input from user
    set counter to first number entered
    while counter less than/ equal to second number
          check if number is even
               if even, add to even_sum
               else output counter, along with its square
          increment counter by one
    end while
    output sum of evensthat block, when coded, will solve 3 of the problems, the other 2 will require separate loops
    Good Luck

Maybe you are looking for