Results 1 to 2 of 2
Like Tree1Likes
  • 1 Post By KevinWorkman

Thread: Java swing program

  1. #1
    Jake23 is offline Member
    Join Date
    Feb 2012
    Posts
    1
    Rep Power
    0

    Default Java swing program

    Hello, i'm learning java, but i don't understand a program that i'm supposed to do. And my teacher is not very willing to help!(I'm studying over the Internet) This is what it says:

    "Make a program that reads in 3 positive numbers(if a negative number is entered, then no more input should be possible).

    Then write out how many numbers that is bigger then 100, how many that is lower then 100 and how many that is exactly 100. Also write out how many values that has been entered.

    Also display the mean value for the numbers over 100, and the mean value for the numbers below 100."

    This is our second program that we are supposed to do. I did the first program without problems, but now i'm totally lost. How should i do? We are supposed to be working with swing. Probably i should use JOptionPane. But do i need a loop or If-statements? Any help is welcome....

    Thanks.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,016
    Rep Power
    10

    Default Re: Java swing program

    Don't waste time blaming your teacher. Plenty of people here learned how to program without the benefit of a teacher, classmates, a school (tutors, office hours, etc).

    But what have you tried? Where exactly are you stuck? Break your problem up into smaller steps and solve them one at a time. What is the absolute smallest thing you know you have to do next?
    camickr likes this.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. problems with swing example program
    By mr_sandman in forum New To Java
    Replies: 4
    Last Post: 08-19-2011, 01:23 AM
  2. Simple swing program, help please!
    By N00Bie in forum New To Java
    Replies: 5
    Last Post: 02-17-2011, 06:16 PM
  3. Replies: 1
    Last Post: 01-18-2011, 07:27 PM
  4. java swing program to send message to a mobile?
    By Manish87 in forum AWT / Swing
    Replies: 2
    Last Post: 12-05-2010, 09:09 AM
  5. code for making a java swing program a demo verson
    By fakhruddin in forum AWT / Swing
    Replies: 1
    Last Post: 11-27-2007, 09:54 PM

Posting Permissions

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