Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2008
    Posts
    7
    Rep Power
    0

    Default Need help with homework.

    I started summer session two weeks ago.... the Java class is 3 days a week, 4 hours a day.

    When the instructor talks, I hear the words but it goes in one ear and out the other. Im having difficulties in class, and I do not want to drop. Instead, I want to learn in this class, and understand the Java language.

    I just need help coming up with a program with this situation. I do not know exactly where to start.

    ------------------

    Time for the Olympic Results

    You are to design a Java program that will ask for input from the user and will display the Medal results from a 100 meter dash final event. There are 5 people running in the last heat of the race. You need to ask for 3 facts for each of the 5 entrants: the runners name, their country code and their race time in seconds.

    The logic of your program should determine the first(Gold), second(Silver) and third(Bronze) place of the fastest 3 and then display their information in the following format.

    Runner: Time: Country: Medal:

    Justin Gaitlin 9.85 usa Gold

    Fracis Obikwelu 9.86 por Silver

    Maurice Green 9.87 usa Bronze




    You may use any of the Input/Output methods we have discussed in class as long as the format of the output format is like what appears above between the lines.


    -------------------------

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Ok, just start with the first step pal. Simply define a class and think a way from where you start. First step is get data about users. Do you know how to do it? Any attempt you have done so far?

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default

    Look at some existing code examples here on this Forum. Use Search for things that would be in a program, like: main(String[]

Similar Threads

  1. Removal of Homework Requests
    By CaptainMorgan in forum Suggestions & Feedback
    Replies: 14
    Last Post: 08-03-2008, 09:21 PM
  2. thread homework
    By integralli in forum Threads and Synchronization
    Replies: 6
    Last Post: 06-21-2008, 04:34 PM
  3. Some input on a homework
    By alcohole4life in forum New To Java
    Replies: 1
    Last Post: 05-23-2008, 04:18 PM
  4. Help with my java servlet homework
    By jellyfish888 in forum Java Servlet
    Replies: 2
    Last Post: 12-21-2007, 05:41 PM
  5. Homework PREREQUISITE Problem
    By ChrisC in forum New To Java
    Replies: 7
    Last Post: 11-27-2007, 05:36 AM

Posting Permissions

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