Results 1 to 7 of 7
  1. #1
    AddieM is offline Member
    Join Date
    Jun 2011
    Posts
    3
    Rep Power
    0

    Default How to convert this into a program

    I figured this out but how would I convert this into a 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
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    618
    Rep Power
    4

    Default

    It is a fine post ).
    I think here nobody don't want to take away opportunities that would yourself to find out the solve your task. BTW Do you read anythings about JOptionpane?
    Skype: petrarsentev
    http://TrackStudio.com

  3. #3
    AddieM is offline Member
    Join Date
    Jun 2011
    Posts
    3
    Rep Power
    0

    Default

    I have no idea. It's due tommorow. Please Help!

  4. #4
    AddieM is offline Member
    Join Date
    Jun 2011
    Posts
    3
    Rep Power
    0

    Default

    I mean I fugured out the logic not the program.

  5. #5
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    618
    Rep Power
    4

    Default

    So you want that anybody writes all code. Maybe you just pay on this work?
    Skype: petrarsentev
    http://TrackStudio.com

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default

    It's actually for my sixth grade science class but I want to have a program to go along with my model.
    Make a program that adds up the numbers of both the season and time.
    Do you see the inconsistency between those two sentences?

    Also, the whole thing is far too unscientific to be part of a science course. Do you take us to be as stupid as the 'top contributor' on Yahoo! answers who (maybe) fell for your ploy?

    db

  7. #7
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,562
    Rep Power
    23

Similar Threads

  1. Replies: 2
    Last Post: 04-02-2011, 12:57 PM
  2. Convert .java into a program i.e. .exe file
    By ravi1 in forum New To Java
    Replies: 33
    Last Post: 03-30-2011, 10:23 PM
  3. Convert Java program to web-app
    By carderne in forum New To Java
    Replies: 3
    Last Post: 12-08-2010, 06:10 PM
  4. Replies: 1
    Last Post: 07-02-2008, 01:58 PM
  5. Convert a program to Applet
    By carl in forum Java Applets
    Replies: 2
    Last Post: 08-09-2007, 09:33 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
  •