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: Creating a program

  1. #1
    Junior Member
    Join Date
    Nov 2017
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Creating a program

    Part A:

    Write the QuartsToGallons Java class that declares a named constant to hold the number of quarts in a gallon (4). Also declare a variable to represent the number of quarts needed for a painting job, and assign an appropriate value—for example, 18. Compute and display the number of gallons and quarts needed for the job. Display explanatory text with the values, for example:

    A job that needs 18 quarts requires 4 gallons plus 2 quarts.

    Part B:

    Convert the QuartsToGallons class to an interactive application. Instead of assigning a value to the number of quarts, accept the value from the user as input.

  2. #2
    Member John Joe's Avatar
    Join Date
    Jun 2017
    Posts
    130
    My Mood
    Asleep
    Thanks
    4
    Thanked 9 Times in 9 Posts

    Default Re: Creating a program

    What have you tried ?
    Whatever you are, be a good one

Similar Threads

  1. How should I start creating this program? Help
    By illegit in forum Java Theory & Questions
    Replies: 8
    Last Post: May 16th, 2013, 11:34 AM
  2. Need help with creating Program
    By apescato in forum Java Theory & Questions
    Replies: 4
    Last Post: October 20th, 2011, 08:46 PM
  3. need help creating a maze program
    By helpzor in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 2nd, 2011, 03:12 PM
  4. Creating program Blackjack - Dr.Java
    By TheUntameable in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 20th, 2010, 12:54 PM
  5. Need help creating this program
    By ixjaybeexi in forum File I/O & Other I/O Streams
    Replies: 25
    Last Post: October 19th, 2009, 08:08 AM