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
- Create a new program called DoubleFeature
- This program is going to do two things, back to back:
- 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
- Convert a fraction into a decimal number. The user inputs the numerator and denominator of the fraction and you output the decimal equivalent
- For this should use doubles instead of ints for your variable types.
- 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!
- Anything that is common to both features should be moved up into the main block so that both features can use it
- 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
