need help with a program...gremlinsa help again!!!
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 27

Thread: need help with a program...gremlinsa help again!!!

  1. #1
    Join Date
    Dec 2005
    Posts
    22

    need help with a program...gremlinsa help again!!!

    Hi, I need help with a program again. I am having trouble writing it.. here are the instructions..

    The sun rises every morning and sets every night. There is a certain time during the day that is halfway in between called high noon. Your job is to write a program where you enter the times in minutes and hours for sunrise and sunset. Then you must determine when high noon is. Aumme that the data is correct, the form below shows how your data might look

    sunrise am:

    Sunset pm"

    High noon is at.....
    calculate


    If someone can help me write this please let me knwo..!!!Gremlin Sa you helped me before if you see this please help again

  2. #2
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,770

    Re: need help with a program...gremlinsa help again!!!

    I'll look into this one. Can you post the entry format and the output format IE Sunrise Time in HH:MM or HH in one textbox, MM in another??

    The calculation would be 1/2 of Time diference + Sunrise time... do I assume right - Is it given ???..

    Gremmy..
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  3. #3
    Join Date
    Dec 2005
    Posts
    22

    Re: need help with a program...gremlinsa help again!!!

    Yea the hours and minutes are in two seperate text boxes.. thank you so much.. ive been sittin here trying to do this for the past hour

  4. #4
    Join Date
    Dec 2005
    Posts
    22

    Re: need help with a program...gremlinsa help again!!!

    Gremlin.. here is the form i was using...
    Attached Files Attached Files

  5. #5
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,770

    Re: need help with a program...gremlinsa help again!!!

    Is my assumption about the Calculation correct.. or is it not given ???

    Gremmy..
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  6. #6
    Join Date
    Dec 2005
    Posts
    22

    Re: need help with a program...gremlinsa help again!!!

    The calculation was not given, but the calculation you did for me was the same one i came upw ith also..

  7. #7
    Join Date
    Dec 2005
    Posts
    22

    Re: need help with a program...gremlinsa help again!!!

    The example give was as follows

    Sunrise (am) 7:08
    Sunset (pm) 8:30

    High noon is at 1:49 pm

    (when calculated.)

  8. #8
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,770

    Re: need help with a program...gremlinsa help again!!!

    Quote Originally Posted by sharib0816
    The example give was as follows

    Sunrise (am) 7:08
    Sunset (pm) 8:30

    High noon is at 1:49 pm

    (when calculated.)
    Must the time be in Am/Pm format or can we use the 24 hour Clock ???

    Gremmy..
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  9. #9
    Join Date
    Dec 2005
    Posts
    22

    Re: need help with a program...gremlinsa help again!!!

    AM/PM format... since the answer must say whether it is am or pm for the answer

  10. #10
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,770

    Re: need help with a program...gremlinsa help again!!!

    Okay .. You Know the Drill .. Post what you got... And i will help you sort it out..

    Gremmy..
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  11. #11
    Join Date
    Dec 2005
    Posts
    22

    Re: need help with a program...gremlinsa help again!!!

    Its not much, im really stuck on what to do, but here it is...
    Attached Files Attached Files

  12. #12
    Join Date
    Dec 2005
    Posts
    22

    Re: need help with a program...gremlinsa help again!!!

    Do you have any idea on how to do this??? cause what you did for me last time was such a great help, i didnt hand in what you gave me, i changed the stuff so it was in my wording, but it worked out great.. I dont knwo how you are so good at this, but it is amazing because for you to be able to help me out like thsi you have no idea how much i appreciate it.

  13. #13
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,770

    Re: need help with a program...gremlinsa help again!!!

    Give me a few minutes to work things out..

    Post for you as soon as i have something..


    Gremmy..

    Ps.. I do know how to do this... Very simular code to the last one..
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  14. #14
    Join Date
    Dec 2005
    Posts
    22

    Re: need help with a program...gremlinsa help again!!!

    Thank you so much... ill be here.. :-)

  15. #15
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,770

    Re: need help with a program...gremlinsa help again!!!

    Quote Originally Posted by sharib0816
    Sunrise (am) 7:08
    Sunset (pm) 8:30
    High noon is at 1:49 pm
    Is this right ??? I'm getting 2:49 PM in my calculations ???

    Gremmy??
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center