# HW BEGGINER HELP !

• October 11th, 2012, 12:27 PM
begginerJava
HW BEGGINER HELP !
**==**== **==**==

Write an application that prompts for and reads a double value representing a monetary amount.Then determine the fewest number of each bill and coin needed to represent that amount.Then determine the fewest number of each bill and coin needed to represent that amount,starting with the highest (assume that a ten dollar bill is the maximum size need).For example , if tbhe value entered is 47.63 (forty-seven dollars and sixty-three cents).then the program should print the equivalent amount as :

4 ten dollar bills
1 five dollar bills
2 one dollar bills
2 quarters
1 dime
0 nickles
3 pennies

Thank you,would really appreciate your SMART help.......
• October 11th, 2012, 12:30 PM
copeg
Re: HW BEGGINER HELP !
What did you try? Where are you stuck? We are not a homework service, but we will try and help if you actually show an effort.
• October 11th, 2012, 12:45 PM
begginerJava
Re: HW BEGGINER HELP !
yes , i know i understand

but it was my first day college

and the processor said that solves says gets a 5 % bonus

i only know the basics

public static void main (String args[]) {

System.out.println("Hello Java Programmers");

\\ THIS IS ALL I KNOW
\\YOUR HELP WOULD BE A BLESS FOR US
• October 11th, 2012, 03:04 PM
copeg
Re: HW BEGGINER HELP !
Break the problem down...how would you do this by hand? Write it out on paper...that's your logic/algorithm. Then convert that to code.
• April 14th, 2014, 11:46 AM
Niels van Ee
Re: HW BEGGINER HELP !
So i'm trying to help and not give the answer!
Basicly im just giving tips!
also just try to get the code you need from internet! NOT FROM ME ;P

47,92

Take the first number (4)
make that into your 10 dollarbills
int TenDollarBills = bla bla

then looking at the 7.
you can do a while loop
while (SecondDigit >= 5)
FiveDollarBills - 5

SecondDigit = Dollars

This is how I would confront it! Good luck and hope you get the 5% extra! :)
• April 14th, 2014, 11:54 AM
copeg
Re: HW BEGGINER HELP !
@Niels van Ee, please keep in mind dates the dates on threads - this one in particular is around a 1 1/2 years old, which is an eternity in internet and forum time (and in homework time, way too late to get the '5% extra')
Locking