subject

The Coins class was created to hold all your loose change, kind of like a piggy bank! For this exercise, you are going to simulate starting a bank with a specific number of coins, then adding to your piggy bank to bring your total to $2.12. What you need to do:
Create a Coins object that initially has 4 quarters, 3 dimes, 2 nickels, and 1 penny.
After you create the initial object, print out the total, then add coins to your bank until you have a total of 15 coins totaling 2.12.
You will need to figure out which combination gets you to the correct total with the correct number of coins!
When you are finished, call the method to print the bank count then the bank total to verify that you got the correct values.
Hint: Print out your value after you create your bank and before you add anything. You should have 1.41. Remember that Java rounds a little, so your value may vary slightly (but less than a penny).

ansver
Answers: 1

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 22.06.2019 10:00
What goes wrong in autoimmune disease?
Answers: 1
question
Advanced Placement (AP), 23.06.2019 00:30
70 ! in 2-3 paragraphs of 250-300 words, compare and contrast parallel and relative keys. give clear definitions and specific examples to support your answer.
Answers: 2
question
Advanced Placement (AP), 23.06.2019 10:40
Match each financial concept with its correct situation time value of money store of value personal disposable income consumer credit angela chooses between having $1,000 now, and investing it in a savings account so that she can have $1,050 a year from now. jane has $2,500 monthly to spend after she pays taxes david saves his money for the future so he can live comfortably in retirement lester uses a credit card to purchase a new ipad, as he cannot pay the entire amount now um. all rights reserved. there to search
Answers: 1
question
Advanced Placement (AP), 25.06.2019 23:00
If you walk up stairs,how u gonna pet yo dog? if you go to colloge,how you gonna fly? if you like school how u gonna be a person?
Answers: 2
You know the right answer?
The Coins class was created to hold all your loose change, kind of like a piggy bank! For this exerc...
Questions
question
Advanced Placement (AP), 03.12.2020 03:20
question
Geography, 03.12.2020 03:20
question
Mathematics, 03.12.2020 03:20
question
Business, 03.12.2020 03:20
question
Mathematics, 03.12.2020 03:20
Questions on the website: 13722367