Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Page 2 of 2 FirstFirst 12
Results 26 to 39 of 39

Thread: City Transportation Program

  1. #26
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: City Transportation Program

    I am waiting for your questions about the problems you are having writing your program.

  2. #27
    Junior Member
    Join Date
    Aug 2011
    Location
    Nacka, Sweden, Europe
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: City Transportation Program

    I have no problem with the program ... it is not written yet. I need help with how the code should look like.

  3. #28
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: City Transportation Program

    What specific help do you need? I have no idea what kind of program you want to write and what the program should do. Without details, it is hard to give you help.

  4. #29
    Junior Member
    Join Date
    Aug 2011
    Location
    Nacka, Sweden, Europe
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: City Transportation Program

    No, I just want to take care of ticket sales. Not the transport system. And I wonder, how do you do if you want it to be money in that account if you visit a website? I know that you need an applet to the website, but how do you do next?

  5. #30
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: City Transportation Program

    how do you do next?
    Do what? I have no idea what you want your system to do.
    Can you explain in a lot more detail?

  6. #31
    Junior Member
    Join Date
    Aug 2011
    Location
    Nacka, Sweden, Europe
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: City Transportation Program

    Oops, noticed that I made lots of errors. Okay this is what I want the program to be able to do: The program should be able to deduct money from a specific bank account, when I visit a specefik website. I understand that you need an applet for the website, but how do you write the code?

    So:

    * The program must be able to deduct money from a bank account, when I visit a website;
    -An applet is needed for the website;
    -As a web counter, but instead of showing how many views I have at home, to the benefit of as much money from the bank account which is linked to the homepage of web accounts billing (web page views).

    My question is: How should I write the code?

  7. #32
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: City Transportation Program

    Where is the bank account data being kept? Do you have a data base and a server that will keep track of the bank accounts?
    Also you need the server and data base to keep track of the number of web views.

    How should I write the code?
    I'd use a keyboard and type the code into an editor or IDE. I don't know what you mean by "how".
    The code should be written after you have a more detailed design of what the code is supposed to do.

  8. #33
    Junior Member
    Join Date
    Aug 2011
    Location
    Nacka, Sweden, Europe
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: City Transportation Program

    I have a database, a website, pang4.ath.cx. With "How should I write the code" I mean: How should the code look like?

  9. #34
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: City Transportation Program

    I haven't seen you design for the program. You need a design for what you want the program to do BEFORE you try to write any code.

  10. #35
    Junior Member
    Join Date
    Aug 2011
    Location
    Nacka, Sweden, Europe
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: City Transportation Program

    How do you mean by design?

  11. #36
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: City Transportation Program

    The common definition of design.
    Make plans for how the program is to work, what data needs to be kept in each program, what classes are needed and the steps the program should take to do its task.

  12. #37
    Junior Member
    Join Date
    Aug 2011
    Location
    Nacka, Sweden, Europe
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: City Transportation Program

    All right. But I have not received answers to my first question: Is it possible to do that when you visit a particular website, it is deducted from your bank account? If the page has an applet on it.

  13. #38
    Super Moderator Sean4u's Avatar
    Join Date
    Jul 2011
    Location
    Tavistock, UK
    Posts
    637
    Thanks
    5
    Thanked 103 Times in 93 Posts

    Default Re: City Transportation Program

    Is it possible to do that when you visit a particular website, it is deducted from your bank account? If the page has an applet on it.
    That's a strange question! If it was not possible, how would Paypal make its money? Or how would e-commerce work? It is clearly possible. If it can be done with a web page, it can almost certainly be done with an applet - but I don't know of any website that uses an applet for this purpose.

    Perhaps you could ask a more precise question? If you want to know how to make a web page that people can use to pay for a product or service, try Paypal's IPN documentation - it explains the process quite well.
    https://cms.paypal.com/us/cgi-bin/?c...admin_IPNIntro

  14. #39
    Junior Member
    Join Date
    Aug 2011
    Location
    Nacka, Sweden, Europe
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: City Transportation Program

    No, I mean not for real! The bank account is only available in Java!

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Help with class program!!! STUCK! Program not doing what I Want!!!
    By sketch_flygirl in forum What's Wrong With My Code?
    Replies: 7
    Last Post: April 4th, 2011, 07:29 AM