Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-31-2008, 04:00 PM
Member
 
Join Date: Jul 2008
Posts: 7
JavaNewbie0000 is on a distinguished road
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.


-------------------------
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-31-2008, 04:13 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,545
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
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?
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-31-2008, 05:06 PM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,223
Norm is on a distinguished road
Look at some existing code examples here on this Forum. Use Search for things that would be in a program, like: main(String[]
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removal of Homework Requests CaptainMorgan Suggestions & Feedback 14 08-03-2008 11:21 PM
thread homework integralli Threads and Synchronization 6 06-21-2008 06:34 PM
Some input on a homework alcohole4life New To Java 1 05-23-2008 06:18 PM
Help with my java servlet homework jellyfish888 Java Servlet 2 12-21-2007 07:41 PM
Homework PREREQUISITE Problem ChrisC New To Java 7 11-27-2007 07:36 AM


All times are GMT +3. The time now is 11:52 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org