Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions