Question: Java Foundations Create a new program called DoubleFeature This program is going to do two things, back to back: Determine the total dollar amount of

Java Foundations

  1. Create a new program called DoubleFeature
  2. This program is going to do two things, back to back:
    1. Determine the total dollar amount of a number of coins. The user inputs how many quarters they have, how many dimes, etc etc and you output the total dollar amount
    2. Convert a fraction into a decimal number. The user inputs the numerator and denominator of the fraction and you output the decimal equivalent
      1. For this should use doubles instead of ints for your variable types.
  3. Place these two features within separate blocks within your main method. So feature 1 should be in its own block then feature 2 within a separate block NOT a sub-block!
    1. Anything that is common to both features should be moved up into the main block so that both features can use it
  4. Test your program with a bunch of different inputs to make sure it works correctly!

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!