Question: a console application that satisfies the following requirements: a method to print a welcome message on the screen: Welcome to + Your Name +

a console application that satisfies the following requirements:

  • a method to print a welcome message on the screen: "Welcome to " + Your Name + "Units Converter". (1 point)
  • a menu method that prints a menu of options on the screen corresponding to the following conversions from gallon (2 points):
    • quarts (1 gal = 4 quarts)
    • pints (1 gal = 8 pints)
    • cups (1 gal = 16 fl oz)
    • ounces (1 gal = 128 oz)
  • The main method must have a loop to allow the user to perform conversions until an option to exit the program is selected. Call menu() to get the operation chosen by the user, perform the appropriate calculation and print the result on the screen. (6 points)
  • a Javadoc-style comment at the beginning of the source code with a description of the program and your name as @author. Javadoc-syle comments for all methods (1 point)

You will be graded on correctness and style. Programs with poor indentation will be penalized heavily!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!