Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: java basic based on Gaddis text

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default java basic based on Gaddis text

    Can anyone translate this to java code, pls?

    Create a complete Java application that meets these requirements:

    1. The program has an opening comments section (using block comments) with the file name, date, your name,
    and purpose of the program. (5 pts.)
    2. Organize your program into sections for declaring variables and constants, input, processing, and output as
    much as possible. Add comments denoting these sections. (5 pts.)
    3. In the declaration section, declare all variables and constants used in the program. Use the most appropriate
    data types for all variables and constants. The Army’s qualifying time to run 2 miles for a male is 16 minutes and
    for a female is 19 minutes. Enter these times as constants in your program. (20 pts.)
    4. Make your program user-friendly by providing an opening explanatory message using JOptionPane. The program
    tests whether a male or female passes the Army running test. (10 pts.)
    5. In the input section, ask the user to enter M for a male or F for a female candidate using JOptionPane. Then ask
    the user to enter the time (in decimal minutes) for the candidate’s 2 mile run. (20 pts.)
    6. In the processing section, determine if the candidate passes the test or not. (20 pts.)
    7. In the output section, display the candidate’s gender (M or F), the candidate’s time, and the word PASS or FAIL
    as appropriate. The output should be user-friendly (that is, self-explanatory, neat, and organized). (20 pts.)


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: java basic based on Gaddis text

    What have you tried? Where are you stuck? No one on the forum will do this for you, so if you wish to receive help please post a specific question

Similar Threads

  1. Replies: 1
    Last Post: May 15th, 2013, 08:47 AM
  2. Text Based RPG Framework Questions
    By Kristler in forum Java Theory & Questions
    Replies: 0
    Last Post: December 21st, 2010, 09:39 AM
  3. beginner w/ text based RPG
    By rbread80 in forum Java Theory & Questions
    Replies: 12
    Last Post: December 4th, 2010, 02:39 PM
  4. JDBCrealm FORM based problem. But BASIC working perfectly alright!
    By salman4u in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: January 27th, 2010, 09:06 PM