Question: It is not unusual to create class definitions that are entirely composed of static members. These are typically for function libraries, constants, and common calculations

 It is not unusual to create class definitions that are entirely

It is not unusual to create class definitions that are entirely composed of static members. These are typically for "function" libraries, constants, and common calculations that are not associated with a particular object. 1) Create a class definition for a U.S. volume conversion class to allow conversions between teaspoons, Tablespoons, ounces, cups, pints, quarts and gallons. Include static constants for conversion ratios (e.g. QUARTS_TO_GALLON 0.25). These constants can be used in a static method for converting between the different units (e.g. convert(quarts,QUARTS TO GALLON) will multiply the constant to the input to return the number of gallons given a number of quarts as an input). Create a GUI application using JavaFX libraries to allow users to type in a volume, and select a units to convert from and a units to convert to. Upon pressing a button, the conversion results are displayed. You can use some kind of drop down list, choice box, combo box, etc. for selecting the "to" and "from" units. 2) Working in pairs or teams on projects is very common in professional development. It is important for us to get experience in working in these environments. These two java program files will be built as a team and turned in for a single grade for the students. Make sure to note all student names in comments in both java files and turn in via Canvas. You can either turn it in using one of the student's accounts, or both. Either way will result in full credit for both students. Notes: 3 teaspoons 1 Tablespoon 2 Tablespoons = 1 ounce 8 ounces 1 cup 2 cups = 1 pint 2 pints 1 quart 4 quarts = 1 gallon

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 Databases Questions!