Cashier Programming HELP!
Go to solution
Solved by colonel_mortis,
Please use code tags. It's the <> button under the
and it makes the code so much more readable.
You need a default case on enter code to exit before doing total+=subt otherwise it reads from an uninitialised variable
You enter the amount tendered to an int. Change it to a double and all your problems are solved

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now