Question: Java Programming Assignment #5: Why Can't We All Just Get Along? (and use the metric system) For this project you will write a program that

JavaJava Programming Assignment #5: Why Can't We All Just Get Along? (and

Programming Assignment #5: Why Can't We All Just Get Along? (and use the metric system) For this project you will write a program that will allow a user to convert one unit into another - for example, fluid Ounces to liters or feet to meters. You should ask the user to type in the unit they want to convert from, then the unit they want to convert to. If these units are compatible, you should ask for a value to convert from the old units and then display the converted value in the new units. Incompatible matches should be rejected. Some examples are below: 1/ Welcome to the Unit Converter! Welcome to the Unit Converter! Please type two units from the lists below, and then the amount of the first to convert to the second. Please type two units from the lists below, and then the amount of the first to convert to the second. "From" Choices: 11. 02, gal, oz, lb, in, it, mi "From" Choices: fl. oz, gal, oz, lb, in, ft, mi "To" Choices: ml, L, 9, kg, cm, m, kom "TO" Choices: ml, L, g, kg, cm, m, kom Convert from:04 Convert to kg Value of oz to convert:16 16.0oz is 0.45344 kg Convert from:gal Convert to: km The units gal and km are incompatible. Please try again. Functional Requirements: Make it work! Make it look reasonably nice, too. Methodological Requirements All objects, variables, classes, and methods should be given meaningful names following the usual Java naming conventions. Your code should be sufficiently commented so as to be easy to read. You are not allowed to use any form of a loop (for loops, while loops, or do/while loops), nor are you allowed to use arrays or array lists. (If you don't know what these are, that's okay! We'll talk about them in Chapters 6 and 7.) You will also be evaluated on the design and organization of your code. This doesn't mean your code has to be at a professional level, but I don't want to wade through a tangle of "it" statements haphazardly strung together. Be smart about it

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!