|
General Details
|
|
Java
|
|
Posted 1.13 Year Ago
|
|
197 Views
|
|
Received 0 Ratings
|
|
Bill Change
Description
I am in a class that requires the use of Java to make programs. It is a basic class, but I thought I would just post all of the scripts I make for people who are new to Java or any other programming language.
This is a simple script which allows you to put in a Bill amount, say if you were eating at a restaurant, and you wanted to know how much change you will get back. So, after you enter the food bill amount, then you enter how much you pay and then it will tell you how much change you get back, in dollars, quarters, dimes, nickels and pennies.
This is a very simple script, no error logging or catch exceptions are in this script, so breaking it is very easy. Also, there are not catches for if you put in a bill amount that is higher than what you paid, so please be gentle!
Technical
Simple Java script that works on most operating systems that can run Java and/or compile it.
Source Code
Comments
| Please login to post comments. |
More "Java" Source Codes By This Author
Recently Posted "Java" Source Codes
Recently Rated "Java" Source Codes
|