| | |
Cash Register Application
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
I have attached my current source code to this message. It is in .java format.
Here is a brief description of my problem:
I have a program which accepts input for a Purchase Price, an Amount Tendered, and then displays the Change Due. Also, it must display the number of dollars, quarters, dimes, nickels, and pennies. The input is complete and I can calculate the Change Due, but I cannot figure out how to calculate each piece of change individually.
Note: The output is not in the code, but I know how to properly write it, so I won't need any help with output
Thanks in advance for any help:
Also, here is the look my application is to have:
Purchase Price: $ ________ (completed)
Amount Tendered: $ ________ (completed)
Your change is: $ ________ (completed)
__ one dollar bill (s)
__ quarter (s)
__ dimes (s)
__ nickel (s)
__ penn (y/ies)
Thank you for your business. Come back soon. (completed)
Here is a brief description of my problem:
I have a program which accepts input for a Purchase Price, an Amount Tendered, and then displays the Change Due. Also, it must display the number of dollars, quarters, dimes, nickels, and pennies. The input is complete and I can calculate the Change Due, but I cannot figure out how to calculate each piece of change individually.
Note: The output is not in the code, but I know how to properly write it, so I won't need any help with output
Thanks in advance for any help:
Also, here is the look my application is to have:
Purchase Price: $ ________ (completed)
Amount Tendered: $ ________ (completed)
Your change is: $ ________ (completed)
__ one dollar bill (s)
__ quarter (s)
__ dimes (s)
__ nickel (s)
__ penn (y/ies)
Thank you for your business. Come back soon. (completed)
So all you need to do is find out how to most efficiently give change?
How do you determine what combination of coins and bills to use in a store? All you have to do is put that reasoning into code.
Say you give $1.26 in change.
How many dollars is that?
When those are gone, how many quarters are there in the leftover amount?
etc. etc. etc.
It's not hard.
How do you determine what combination of coins and bills to use in a store? All you have to do is put that reasoning into code.
Say you give $1.26 in change.
How many dollars is that?
When those are gone, how many quarters are there in the leftover amount?
etc. etc. etc.
It's not hard.
![]() |
Similar Threads
- Cash Register / c++ / loops issue (C++)
- C++ Cash register (C++)
- Register an application (VB.NET)
- cash register help..!! (C++)
- NEED Help? Cash Register modules (Computer Science)
- C++ Cash Register - Help Getting Started (C++)
- simple cash register (pos) problem - please help!! (VB.NET)
- VB cash register needed (VB.NET)
Other Threads in the Java Forum
- Previous Thread: Why is sizeof operator notin Java
- Next Thread: Help with Jtree
| Thread Tools | Search this Thread |
2dgraphics account android api apple applet application array arrays automation banking binary binarytree bluetooth chat chatprogramusingobjects class classes client code component data database derby design draw eclipse encryption error event exception fractal game givemetehcodez graphics gui html ide if_statement image inheritance input integer interface j2me java javadesktopapplications javaprojects jlabel jni jpanel jtextfield julia linux list loop map method methods midlethttpconnection mobile monitoring netbeans newbie nullpointerexception open-source oracle print printing problem program programming project property recursion reference ria scanner screen search server set size sms sort sourcelabs splash sql static stop string swing testautomation threads time tree ui unicode validation windows






