#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    1
    Rep Power
    0

    Convert to JAva Program


    It's actually for my sixth grade science class but I want to have a program to go along with my model. My dad said I should use JOptionpane but I don't know what that is. thanks for any help. Please don't answer if you aren't going to help thank you.

    Environment: In an environment where it snows frequently during the winter, and rains frequently during the spring. Most people are going to work or school during 6:00am to 10:00am, and coming home during 4:00pm to 6:00pm. At noon there is a lunch rush.

    Season:
    Spring = 3
    Summer=1
    Fall=1
    Winter=5

    Time:
    6:00am to 10:00am: 5
    9:00am to 11:00am: 2
    12:00pm: 4
    12:00pm to 3:00pm: 1
    3:00pm to 6:00pm: 5
    6:00pm to 9:00pm: 2
    9:00pm to 12:00pm: 2
    Make a program that adds up the numbers of both the season and time. If the output is
    2, 3, or 4: Print Traffic is Low
    5, 6, 7: Print Traffic is Medium
    8, 9, 10: Print Traffic High
  2. #2
  3. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,696
    Rep Power
    347
    See cross post at:
    http://www.java-forums.org/new-java/45034-how-convert-into-program.html

IMN logo majestic logo threadwatch logo seochat tools logo