Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Try out my new program

  1. Dec 31, 2005 #1
    I created a program and would like to have some of you guys try it out to see if it works properly. How do I go about uploading the program if it is bigger than the allowed upload size? It is about 2 MB.
     
  2. jcsd
  3. Dec 31, 2005 #2

    dduardo

    User Avatar
    Staff Emeritus

    Use a third party service to host it and put the link here.
     
  4. Dec 31, 2005 #3
    Excellent idea. Here is the link:
    http://www.sendspace.com/file/c93slq

    It is a very simple program that can find the length of the sides of a right traingle by using the pythagorean theorum and by a little trigonometry. I made the program for my grandpa because he is building a barn an asked me how you calculate the length of a hypotonoose of a right triangle. He has no training in any math beyond arithmatic, so I decided to create a program where he can just put in the numbers and it will spit out the length without him having to do any math. This is the first real program I have ever made.
    Try it out and let me know if you see any problems with it. Check out some of the other files in the folder too. I put the source code in there. And there is a picture of the triangle. And I also put some simple instructions for the program in there.
     
    Last edited: Dec 31, 2005
  5. Dec 31, 2005 #4
    You actually have to look at the picture of the triangle before you use the program. It doesn't really make sense unless you refer to the picture. I am going to try to incorporate that picture into my program in a few days. I also would like for the program to draw a picure of a triangle that is proportional to the values of the triangle.
     
    Last edited: Dec 31, 2005
  6. Jan 1, 2006 #5

    dduardo

    User Avatar
    Staff Emeritus

    Hmm, I can't compile it. I did notice you misspelled "length" in one of your lines.
     
  7. Jan 1, 2006 #6
    you should just be able to open the file named "Joshuas Pythagorean Program.exe". You shouldn't have to compile anything. I already comiled it into a exe program.
     
  8. Jan 1, 2006 #7

    dduardo

    User Avatar
    Staff Emeritus

    I don't use Windows.
     
  9. Jan 1, 2006 #8
    Oh. What do you have to do to compile it with linux? Do you just copy the source code and paste it into a compiler? I used Just Basic v1.01 to compile it and I am having no trouble with it. It works fine. If there is anything I can do to get it working for you I would be happy to do it. I really want some other people to try this program before I give it to my grandpa just to make sure it works properly.
     
  10. Jan 1, 2006 #9

    DaveC426913

    User Avatar
    Gold Member

    What do I do with a .rar? I guess I don't have the right unpacking s/w.
     
  11. Jan 1, 2006 #10
    You need win RAR. I will give you a link, hold on one second.
     
  12. Jan 1, 2006 #11
  13. Jan 1, 2006 #12

    DaveC426913

    User Avatar
    Gold Member

    Program seems to work - though I have not rigourously testred the values. But I would be concerned about how "usable" it is for your grampa. That's a whole lot of boxes to type in and click to get the answer. You want to make the interface as intuitve as possible.

    I know this is your first program, are you up to some more coding?

    1] Don't ask, just provide the answer in both feet and inches. That saves one step AND gives him a choice of info.
    2] As far as he is concerned, he does not care about a, b and c. All he cares about is base, height and hypotenuse, or possibly an angle. There is no need to ask him to enter a, b or c. That's a bit more coding, but it would be worth it.
    3] Eventually (after you're more accomplished), your ideal interface will have no questions at all. It will display a triangle with some textboxes right in it. He will merely enter the values in the appropriate box by locating them visually rather than textually.
     
    Last edited: Jan 1, 2006
  14. Jan 1, 2006 #13

    dduardo

    User Avatar
    Staff Emeritus

    Just Basic is only for Windows. I thought you were using Liberty Basic which does have a Linux version. O well
     
  15. Jan 1, 2006 #14
    Oh, sorry dduardo, I was unaware that Just Basic was only for windows. Maybee you should think about switching to Windows. Just kidding.
    And hey Dave, excellent ideas. Thank you very much for the input. I think the hardest part of writting a program is figuring out how to make it easy to use and understand for someone else. At least that is the hardest part for me, but like I said this is my first real program. The only other programs I have written so far have been along the lines of the famous "HELLO WORLD" program.
     
  16. Jan 1, 2006 #15

    dduardo

    User Avatar
    Staff Emeritus

    Nothing000, perhaps you should think about porting your program to Python.

    http://www.python.org/

    You can also use pygtk if you want a frontend gui.

    http://www.pygtk.org/

    I use Python all the time. It is easy to pick up and can be used on most platforms.
     
  17. Jan 2, 2006 #16

    ranger

    User Avatar
    Gold Member

  18. Jan 2, 2006 #17

    dduardo

    User Avatar
    Staff Emeritus

    ranger, your code is a mess. :yuck:
     
    Last edited: Jan 2, 2006
  19. Jan 2, 2006 #18

    ranger

    User Avatar
    Gold Member

    Is it really that bad :biggrin:

    The guys at the site gave me some tips on cleaning up the code but I never uploaded the corrected version - mostly because I never corrected it o:)
     
  20. Jan 3, 2006 #19

    -Job-

    User Avatar
    Science Advisor

  21. Jan 3, 2006 #20
    I would have to think that this is a pretty common beginner program to make. It is easy enough for a beginer to wrap there mind around, but difficult enough to challenge them and make them learn more about programming while actaully programming.

    So my grandpa won't even look at the program. I don't really know why, but I am a little frustrated.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Try out my new program
  1. Trying something new (Replies: 2)

Loading...